Posts

Showing posts with the label FM Read_Text

BAPI for material storage location Add

 We can add material storage location plant wise using third party app or web. BAPI names : BAPI_MATERIAL_MAINTAINDATA_RT Import parameters: HEADDATA: Material Tables: STORAGELOCATIONDATA: Material: Plant: STGE_LOC:   STORAGELOCATIONDATAX: Material: Plant: STGE_LOC:   use below code after completing steps. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.        

Use of FM Read_Text

 In SAP we use Function Module to get the desire value maintaining different parameters. Usually we need to call FM when value directly not in a table. In FM we need to pass ID, Object, Name. Here ID mean where from it reads. Object : which object of text to be read. Name : Which name f text to be read. In below I share a demo code with you.Suppose here name = Client number +Inspection Lot Number+L, so we need to concatenate both of them and keep them in a variable. DATA :  CON  LIKE  THEAD - TDNAME  . DATA :  CON1  TYPE  STRING  . L_D  =  'L' .   CONCATENATE  SY - MANDT WA - PRUEFLOS  INTO  CON1 . CONCATENATE  CON1 L_D  INTO  CON . DATA :  I_LINE  TYPE  STANDARD  TABLE  OF  TLINE ,         W_LINE  LIKE  LINE  OF  I_LINE .    CALL  FUNCTION  'READ_TEXT'  ...