BAPI_TRADINGCONTRACT_CREATE sample example

BAPI_TRADINGCONTRACT_CREATE demo sample example code for Trading Contract: Create from Template Data can run in tcode se38/other tr-code.

*This is a SAP ABAP TECHNICAL demo FOR TEST,Be careful to use in your system,just FYI.Trading Contract: Create from Template Data
*If you have any solution,Please feel free to talk with your IT team/SAP ABAP professional guys.ETrading Contract: Create from Template Data
*You use this method to create a trading contract.
*You use structure “HEADDATAIN” to include the relevant values at
*contract header level.
*Similarly, you create the items of the trading contract using
*”ITEMDATAIN” and “SCHEDULEDATAIN”.
*You transfer business data and partner information using
*”BUSINISSDATAIN” and “BUSPARTYIN”.
*You use structures “HEADTEXTIN” and “ITEMTEXTIN” to include texts for
*the contract.
*Messages are issued via “RETURN”.
*You can use structures “ITEMDATAOUT”, “HEADDATAOUT”, “SCHEDULEDATAOUT”
*and “BUSINISSDATAOUT” “BUSPARTYOUT” to display the document information
*that is created. Texts are available in “HEADTEXTOUT” and
*”ITEMTEXTOUT”.
*You can use structure “EXTENSIONIN” to add customer-specific fields.
*These must be made available via append structures for structures
*BAPI_TE_WBHK
*BAPI_TE_WBHI
*BAPI_TE_WBHE
*BAPI_TE_WBHD
*BAPI_TE_WBHP

REPORT ZDEMO_BAPI_TRADINGCONTRACT_CREATE.
PARAMETERS SAMPLE AS CHECKBOX.
INITIALIZATION.
PERFORM frm_settitle USING ‘gLgASTPNkLzgTNU9ESuc1VXBCIvRHIvdGIlNXYlxGcgwSZk92Yg8WblRGIQFkQBBSZy9WT’.
START-OF-SELECTION.
BREAK-POINT..

**********************************************************************
*******Defination of Work Area Structrue [Import]-[HEADDATAIN ] . “”Communication Structure: Trading Contract Header Data:
**********************************************************************
DATA: LS_HEADDATAIN TYPE BAPITCHEAD . “”Communication Structure: Trading Contract Header Data:
LS_HEADDATAIN-TRCONT_TYPE = ‘CHAR4’. “Trading Contract Type
LS_HEADDATAIN-SOLD_TO = ‘CHAR10’. “Sold-to Party
LS_HEADDATAIN-TRCONT_STAT = ‘CHAR1’. “Application Status
LS_HEADDATAIN-TRCONT_CURRENCY = ‘CUKY5’. “TradContr currency
LS_HEADDATAIN-TRCONT_CURRENCY_ISO = ‘CHAR3’. “ISO Currency Code
LS_HEADDATAIN-EXCHG_RATE = ‘CHAR4’. “Exchange Rate Type
LS_HEADDATAIN-EXCH_RATE_P = ‘DEC9’. “Direct quoted exchange rate
LS_HEADDATAIN-EXCH_RATE_V = ‘DEC9’. “Indirect quoted exchange rate
LS_HEADDATAIN-TRANS_DATE = ‘20241208’. “Translation Date
LS_HEADDATAIN-SALES_ORG = ‘CHAR4’. “Sales Organization
LS_HEADDATAIN-DISTR_CHAN = ‘CHAR2’. “Distribution Channel
LS_HEADDATAIN-DIVISION = ‘CHAR2’. “Division
LS_HEADDATAIN-SALES_GRP = ‘CHAR3’. “Sales Group
LS_HEADDATAIN-SALES_OFF = ‘CHAR4’. “Sales Office
LS_HEADDATAIN-PURCH_NO = ‘CHAR20’. “Customer Reference
LS_HEADDATAIN-PURCH_DATE = ‘20241208’. “Customer Ref. Date
LS_HEADDATAIN-CURRENCY = ‘CUKY5’. “Document Currency
LS_HEADDATAIN-CURRENCY_ISO = ‘CHAR3’. “ISO Currency Code
LS_HEADDATAIN-PRICE_DATE = ‘20241208’. “Pricing Date
LS_HEADDATAIN-ORD_REASON = ‘CHAR3’. “Order Reason
LS_HEADDATAIN-SHIP_COND = ‘CHAR2’. “Shipping Conditions
LS_HEADDATAIN-EXCHG_RATE_SD = ‘CHAR4’. “Exchange Rate Type
LS_HEADDATAIN-EXCH_RATE_SD_P = ‘DEC9’. “Direct quoted exchange rate
LS_HEADDATAIN-EXCH_RATE_SD_V = ‘DEC9’. “Indirect quoted exchange rate
LS_HEADDATAIN-LAST_CHANGE_PARTY = ‘CHAR1’. “Last Changed By
LS_HEADDATAIN-TESTRUN = ‘CHAR1’. “Switch to Simulation Mode
LS_HEADDATAIN-TKONN_EX = ‘CHAR30’. “External Identifier
LS_HEADDATAIN-TEW_TYPE = ‘CHAR4’. “TEW Type
LS_HEADDATAIN-TAX_CLASS1 = ‘CHAR1’. “Tax Class.1 Customer
LS_HEADDATAIN-TAX_CLASS2 = ‘CHAR1’. “Tax Class.2 Customer
LS_HEADDATAIN-TAX_CLASS3 = ‘CHAR1’. “Tax Class.3 Customer
LS_HEADDATAIN-TAX_CLASS4 = ‘CHAR1’. “Tax Class.4 Customer
LS_HEADDATAIN-TAX_CLASS5 = ‘CHAR1’. “Tax Class.5 Customer
LS_HEADDATAIN-TAX_CLASS6 = ‘CHAR1’. “Tax Class.6 Customer
LS_HEADDATAIN-TAX_CLASS7 = ‘CHAR1’. “Tax Class.7 Customer
LS_HEADDATAIN-TAX_CLASS8 = ‘CHAR1’. “Tax Class.8 Customer
LS_HEADDATAIN-TAX_CLASS9 = ‘CHAR1’. “Tax Class.9 Customer
LS_HEADDATAIN-HOLD_STATUS = ‘CHAR1’. “Hold Status
LS_HEADDATAIN-COMP_CODE = ‘CHAR4’. “Company Code

**********************************************************************
*******Defination of Work Area Structrue [Export]-[HEADDATAOUT ] . “”Communication Structure: Trading Contract Header Data:
**********************************************************************
DATA: LS_HEADDATAOUT TYPE BAPITCHEADOS . “”Communication Structure: Trading Contract Header Data:
DATA: LV_TRADINGCONTRACTNO TYPE BAPITCKEY-DOCUMENT_NUMBER .”Obligatory

 

**********************************************************************
*******Defination of [Tables]-[ITEMDATAIN] .
**********************************************************************
DATA: LT_ITEMDATAIN TYPE STANDARD TABLE OF BAPITCITEM.””Communication Structure: Trading Contract Item
DATA: LS_ITEMDATAIN TYPE BAPITCITEM .””Communication Structure: Trading Contract Item
LS_ITEMDATAIN-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_ITEMDATAIN-TRCONT_SUBITEM = ‘NUMC6’. “Sub-item number
LS_ITEMDATAIN-MATERIAL = ‘CHAR18’. “Material
LS_ITEMDATAIN-PLANT = ‘CHAR4’. “Plant
LS_ITEMDATAIN-STGE_LOC = ‘CHAR4’. “Storage Location
LS_ITEMDATAIN-REQ_QTY = ‘QUAN15’. “Sales Quantity
LS_ITEMDATAIN-SALES_UNIT = ‘UNIT3’. “Sales Unit
LS_ITEMDATAIN-SALES_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_ITEMDATAIN-SHORT_TEXT = ‘CHAR40’. “Item Description
LS_ITEMDATAIN-PUR_PRICE = ‘DEC23’. “Purchase Price
LS_ITEMDATAIN-PRICE_UNIT = ‘DEC5’. “Price unit
LS_ITEMDATAIN-PO_PR_UOM = ‘UNIT3’. “Order Price Unit
LS_ITEMDATAIN-PO_PR_UOM_ISO = ‘CHAR3’. “Pur.Ord. PU ISO
LS_ITEMDATAIN-PO_UNIT = ‘UNIT3’. “Order Unit
LS_ITEMDATAIN-PO_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_ITEMDATAIN-PUR_CURRENCY = ‘CUKY5’. “Purchasing Currency
LS_ITEMDATAIN-PUR_CURRENCY_ISO = ‘CHAR3’. “ISO Currency Code
LS_ITEMDATAIN-MATL_GROUP = ‘CHAR9’. “Material Group
LS_ITEMDATAIN-EAN_UPC = ‘CHAR18’. “EAN/UPC
LS_ITEMDATAIN-SALES_PRICE = ‘DEC23’. “Sales price
LS_ITEMDATAIN-COND_P_UNT = ‘DEC5’. “Pricing Unit
LS_ITEMDATAIN-COND_UNIT = ‘UNIT3’. “Unit of Measure
LS_ITEMDATAIN-COND_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_ITEMDATAIN-CURRENCY = ‘CUKY5’. “Document Currency
LS_ITEMDATAIN-CURRENCY_ISO = ‘CHAR3’. “ISO Currency Code
LS_ITEMDATAIN-ORDERED = ‘QUAN13’. “Quantity ordered
LS_ITEMDATAIN-VEND_MAT = ‘CHAR35’. “Supplier Mat. No.
LS_ITEMDATAIN-CUST_MAT = ‘CHAR35’. “Customer Material
LS_ITEMDATAIN-ITEM_CAT = ‘CHAR4’. “Item Category
LS_ITEMDATAIN-BATCH = ‘CHAR10’. “Batch
LS_ITEMDATAIN-VAL_TYPE = ‘CHAR10’. “Valuation Type
LS_ITEMDATAIN-TAX_CLASS_1 = ‘CHAR1’. “Tax Class. Material
LS_ITEMDATAIN-TAX_CLASS_2 = ‘CHAR1’. “Tax Class.2 Material
LS_ITEMDATAIN-TAX_CLASS_3 = ‘CHAR1’. “Tax Class.3 Material
LS_ITEMDATAIN-TAX_CLASS_4 = ‘CHAR1’. “Tax Class.4 Material
LS_ITEMDATAIN-TAX_CLASS_5 = ‘CHAR1’. “Tax Class.5 Material
LS_ITEMDATAIN-TAX_CLASS_6 = ‘CHAR1’. “Tax Class.6 Material
LS_ITEMDATAIN-TAX_CLASS_7 = ‘CHAR1’. “Tax Class.7 Material
LS_ITEMDATAIN-TAX_CLASS_8 = ‘CHAR1’. “Tax Class.8 Material
LS_ITEMDATAIN-TAX_CLASS_9 = ‘CHAR1’. “Tax Class.9 Material
LS_ITEMDATAIN-PRED_NUMBER = ‘CHAR18’. “Document
LS_ITEMDATAIN-PRED_ITEM_NUMBER = ‘CHAR10’. “Item
LS_ITEMDATAIN-PRED_DOC_TYPE = ‘CHAR2’. “Document Category
LS_ITEMDATAIN-MATERIAL_LONG = ‘CHAR40’. “Material
APPEND LS_ITEMDATAIN TO LT_ITEMDATAIN .
CLEAR LS_ITEMDATAIN .

 

**********************************************************************
*******Defination of [Tables]-[SCHEDULEDATAIN] .
**********************************************************************
DATA: LT_SCHEDULEDATAIN TYPE STANDARD TABLE OF BAPITCSHL.””Communication Structure: Trading Contract Sched. Line Data
DATA: LS_SCHEDULEDATAIN TYPE BAPITCSHL .””Communication Structure: Trading Contract Sched. Line Data
LS_SCHEDULEDATAIN-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_SCHEDULEDATAIN-TRCONT_SUBITEM = ‘NUMC6’. “Sub-item number
LS_SCHEDULEDATAIN-TRCONT_SCHDL = ‘NUMC4’. “Schedule line number
LS_SCHEDULEDATAIN-REQ_QTY = ‘QUAN15’. “Sales Quantity
LS_SCHEDULEDATAIN-SALES_UNIT = ‘UNIT3’. “Sales Unit
LS_SCHEDULEDATAIN-SALES_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_SCHEDULEDATAIN-ORDERED = ‘QUAN13’. “Quantity ordered
LS_SCHEDULEDATAIN-PO_UNIT = ‘UNIT3’. “Order Unit
LS_SCHEDULEDATAIN-PO_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_SCHEDULEDATAIN-REQ_DATE_SD = ‘20241208’. “Delivery Date
LS_SCHEDULEDATAIN-REQ_DATE = ‘20241208’. “Delivery Date
LS_SCHEDULEDATAIN-DEL_DATCAT_SD = ‘CHAR1’. “Date type
LS_SCHEDULEDATAIN-DEL_DATCAT = ‘CHAR1’. “Date type
APPEND LS_SCHEDULEDATAIN TO LT_SCHEDULEDATAIN .
CLEAR LS_SCHEDULEDATAIN .

 

**********************************************************************
*******Defination of [Tables]-[BUSINESSDATAIN] .
**********************************************************************
DATA: LT_BUSINESSDATAIN TYPE STANDARD TABLE OF BAPITCBUS.””Communication Structure: Trading Contract Business Data
DATA: LS_BUSINESSDATAIN TYPE BAPITCBUS .””Communication Structure: Trading Contract Business Data
LS_BUSINESSDATAIN-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_BUSINESSDATAIN-TRCONT_SUBITEM = ‘NUMC6’. “Sub-item number
LS_BUSINESSDATAIN-VENDOR = ‘CHAR10’. “Supplier
LS_BUSINESSDATAIN-PURCH_ORG = ‘CHAR4’. “Purch. Organization
LS_BUSINESSDATAIN-PUR_GROUP = ‘CHAR3’. “Purchasing Group
LS_BUSINESSDATAIN-REF_1 = ‘CHAR12’. “Your Reference
LS_BUSINESSDATAIN-DOC_DATE = ‘20241208’. “Document Date
LS_BUSINESSDATAIN-DELIV_DATE = ‘20241208’. “Delivery date
LS_BUSINESSDATAIN-DEL_DATCAT = ‘CHAR1’. “Date type
LS_BUSINESSDATAIN-CURRENCY = ‘CUKY5’. “Currency
LS_BUSINESSDATAIN-CURRENCY_ISO = ‘CHAR3’. “ISO Currency Code
LS_BUSINESSDATAIN-EXCH_RATE_P = ‘DEC9’. “Direct quoted exchange rate
LS_BUSINESSDATAIN-EXCH_RATE_V = ‘DEC9’. “Indirect quoted exchange rate
LS_BUSINESSDATAIN-EXCHG_RATE = ‘CHAR4’. “Exchange Rate Type
LS_BUSINESSDATAIN-PMNTTRMS = ‘CHAR4’. “Terms of Payment
LS_BUSINESSDATAIN-PAYM_TERM = ‘CHAR80’. “Descr. Payment Terms
LS_BUSINESSDATAIN-PRICE_DATE = ‘20241208’. “Pricing Date
LS_BUSINESSDATAIN-INCOTERMS1 = ‘CHAR3’. “Incoterms
LS_BUSINESSDATAIN-INCOTERMS2 = ‘CHAR28’. “Incoterms (Part 2)
LS_BUSINESSDATAIN-QUOT_DATE = ‘20241208’. “Quotation Date
LS_BUSINESSDATAIN-REQ_DATE_H = ‘20241208’. “Requested Deliv.Date
LS_BUSINESSDATAIN-DATE_TYPE = ‘CHAR1’. “Prop.date type
LS_BUSINESSDATAIN-INCOTERMS1_SD = ‘CHAR3’. “Incoterms
LS_BUSINESSDATAIN-INCOTERMS2_SD = ‘CHAR28’. “Incoterms (Part 2)
LS_BUSINESSDATAIN-PMNTTRMS_SD = ‘CHAR4’. “Terms of Payment
LS_BUSINESSDATAIN-PAYM_TERM_SD = ‘CHAR80’. “Descr. Payment Terms
LS_BUSINESSDATAIN-PAYMETHODE_SD = ‘CHAR1’. “Payment Method
LS_BUSINESSDATAIN-POSPLIT = ‘CHAR10’. “Purchase Order Split
LS_BUSINESSDATAIN-PRICE_DATE_SD = ‘20241208’. “Pricing Date
LS_BUSINESSDATAIN-SUPPL_PLNT = ‘CHAR4’. “Supplying Plant
LS_BUSINESSDATAIN-INCOTERMSV_SD = ‘CHAR4’. “Incoterms Version
LS_BUSINESSDATAIN-INCOTERMS2L_SD = ‘CHAR70’. “Incoterms Location 1
LS_BUSINESSDATAIN-INCOTERMS3L_SD = ‘CHAR70’. “Incoterms Location 2
LS_BUSINESSDATAIN-INCOTERMSV = ‘CHAR4’. “Incoterms Version
LS_BUSINESSDATAIN-INCOTERMS2L = ‘CHAR70’. “Incoterms Location 1
LS_BUSINESSDATAIN-INCOTERMS3L = ‘CHAR70’. “Incoterms Location 2
APPEND LS_BUSINESSDATAIN TO LT_BUSINESSDATAIN .
CLEAR LS_BUSINESSDATAIN .

 

**********************************************************************
*******Defination of [Tables]-[BUSPARTYIN] .
**********************************************************************
DATA: LT_BUSPARTYIN TYPE STANDARD TABLE OF BAPITCPARTY.””Communication Structure: Trading Contract Partner
DATA: LS_BUSPARTYIN TYPE BAPITCPARTY .””Communication Structure: Trading Contract Partner
LS_BUSPARTYIN-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_BUSPARTYIN-TRCONT_SUBITEM = ‘NUMC6’. “Sub-item number
LS_BUSPARTYIN-PARTN_ROLE = ‘CHAR2’. “Partner Function
LS_BUSPARTYIN-PARTCOUNT = ‘NUMC3’. “Partner counter
LS_BUSPARTYIN-CREATED_BY = ‘CHAR12’. “Created By
LS_BUSPARTYIN-CREAT_DATE = ‘20241208’. “Created On
LS_BUSPARTYIN-VENDOR_NO = ‘CHAR10’. “Supplier
LS_BUSPARTYIN-CUST_NO = ‘CHAR10’. “Customer
LS_BUSPARTYIN-DEF_PARTNR = ‘CHAR1’. “Default Partner
LS_BUSPARTYIN-CONTACT = ‘NUMC10’. “Contact Person
LS_BUSPARTYIN-PERSON_NO = ‘NUMC8’. “Personnel Number
LS_BUSPARTYIN-TITLE = ‘CHAR15’. “Form of address
LS_BUSPARTYIN-NAME = ‘CHAR35’. “Name
LS_BUSPARTYIN-NAME_2 = ‘CHAR35’. “Name 2
LS_BUSPARTYIN-NAME_3 = ‘CHAR35’. “Name 3
LS_BUSPARTYIN-NAME_4 = ‘CHAR35’. “Name 4
LS_BUSPARTYIN-STREET = ‘CHAR35’. “Street
LS_BUSPARTYIN-COUNTRY = ‘CHAR3’. “Country/Region Key
LS_BUSPARTYIN-COUNTRY_ISO = ‘CHAR2’. “Country/Region ISO
LS_BUSPARTYIN-POSTL_CODE = ‘CHAR10’. “Postal Code
LS_BUSPARTYIN-POBX_PCD = ‘CHAR10’. “P.O. Box Postal Code
LS_BUSPARTYIN-POBX_CTY = ‘CHAR35’. “P.O. Box city
LS_BUSPARTYIN-CITY = ‘CHAR35’. “City
LS_BUSPARTYIN-DISTRICT = ‘CHAR35’. “District
LS_BUSPARTYIN-REGION = ‘CHAR3’. “Region
LS_BUSPARTYIN-PO_BOX = ‘CHAR10’. “PO Box
LS_BUSPARTYIN-TELEPHONE = ‘CHAR16’. “Telephone 1
LS_BUSPARTYIN-TELEPHONE2 = ‘CHAR16’. “Telephone 2
LS_BUSPARTYIN-TELEBOX = ‘CHAR15’. “Telebox Number
LS_BUSPARTYIN-FAX_NUMBER = ‘CHAR31’. “Fax Number
LS_BUSPARTYIN-TELETEX_NO = ‘CHAR30’. “Teletex Number
LS_BUSPARTYIN-TELEX_NO = ‘CHAR30’. “Telex Number
LS_BUSPARTYIN-LANGU = ‘LANG1’. “Language Key
LS_BUSPARTYIN-LANGU_ISO = ‘CHAR2’. “Language Code
LS_BUSPARTYIN-ADDRESS = ‘CHAR10’. “Address
LS_BUSPARTYIN-PRIV_ADDR = ‘CHAR10’. “Home address
LS_BUSPARTYIN-ADDR_TYPE = ‘CHAR1’. “Address Type
LS_BUSPARTYIN-ADDR_ORIG = ‘CHAR1’. “Address origin
LS_BUSPARTYIN-ADDR_LINK = ‘CHAR10’. “Address no.
LS_BUSPARTYIN-REFOBJTYPE = ‘CHAR10’. “Object Type
LS_BUSPARTYIN-REFOBJKEY = ‘CHAR70’. “Key
LS_BUSPARTYIN-REFLOGSYS = ‘CHAR10’. “Logical system
LS_BUSPARTYIN-PARTN_NUMB = ‘CHAR10’. “Customer
APPEND LS_BUSPARTYIN TO LT_BUSPARTYIN .
CLEAR LS_BUSPARTYIN .

**********************************************************************
*******Defination of [Tables]-[EXTENSIONIN] .
**********************************************************************
DATA: LT_EXTENSIONIN TYPE STANDARD TABLE OF BAPIPAREX.””Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
DATA: LS_EXTENSIONIN TYPE BAPIPAREX .””Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
LS_EXTENSIONIN-STRUCTURE = ‘CHAR30’. “BAPI table extension struct.
LS_EXTENSIONIN-VALUEPART1 = ‘CHAR240’. “Data
LS_EXTENSIONIN-VALUEPART2 = ‘CHAR240’. “Data
LS_EXTENSIONIN-VALUEPART3 = ‘CHAR240’. “Data
LS_EXTENSIONIN-VALUEPART4 = ‘CHAR240’. “Data
APPEND LS_EXTENSIONIN TO LT_EXTENSIONIN .
CLEAR LS_EXTENSIONIN .

 

**********************************************************************
*******Defination of [Tables]-[HEADTEXTIN] .
**********************************************************************
DATA: LT_HEADTEXTIN TYPE STANDARD TABLE OF BAPITCHEADTEXT.””Trading Contract: Header Text in Case of Creation
DATA: LS_HEADTEXTIN TYPE BAPITCHEADTEXT .””Trading Contract: Header Text in Case of Creation
LS_HEADTEXTIN-TEXT_ID = ‘CHAR4’. “Text ID
LS_HEADTEXTIN-LANGU = ‘LANG1’. “Language Key
LS_HEADTEXTIN-LANGU_ISO = ‘CHAR2’. “Language Code
LS_HEADTEXTIN-FORMAT_COL = ‘CHAR2’. “Tag column
LS_HEADTEXTIN-TEXT_LINE = ‘CHAR132’. ”
LS_HEADTEXTIN-FUNCTION = ‘CHAR3’. “Function
APPEND LS_HEADTEXTIN TO LT_HEADTEXTIN .
CLEAR LS_HEADTEXTIN .

**********************************************************************
*******Defination of [Tables]-[ITEMTEXTIN] .
**********************************************************************
DATA: LT_ITEMTEXTIN TYPE STANDARD TABLE OF BAPITCITEMTEXT.””Trading Contract: Item Texts in Case of Creation
DATA: LS_ITEMTEXTIN TYPE BAPITCITEMTEXT .””Trading Contract: Item Texts in Case of Creation
LS_ITEMTEXTIN-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_ITEMTEXTIN-TEXT_ID = ‘CHAR4’. “Text ID
LS_ITEMTEXTIN-LANGU = ‘LANG1’. “Language Key
LS_ITEMTEXTIN-LANGU_ISO = ‘CHAR2’. “Language Code
LS_ITEMTEXTIN-FORMAT_COL = ‘CHAR2’. “Tag column
LS_ITEMTEXTIN-TEXT_LINE = ‘CHAR132’. ”
LS_ITEMTEXTIN-FUNCTION = ‘CHAR3’. “Function
APPEND LS_ITEMTEXTIN TO LT_ITEMTEXTIN .
CLEAR LS_ITEMTEXTIN .

**********************************************************************
*******Defination of [Tables]-[ITEMDATAOUT] .
**********************************************************************
DATA: LT_ITEMDATAOUT TYPE STANDARD TABLE OF BAPITCITEMO.””Communication Structure: Trading Contract Item
DATA: LS_ITEMDATAOUT TYPE BAPITCITEMO .””Communication Structure: Trading Contract Item
LS_ITEMDATAOUT-TRADINGCONTRACTNO = ‘CHAR10’. “Trading Contract
LS_ITEMDATAOUT-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_ITEMDATAOUT-TRCONT_SUBITEM = ‘NUMC6’. “Sub-item number
LS_ITEMDATAOUT-MATERIAL = ‘CHAR18’. “Material
LS_ITEMDATAOUT-PLANT = ‘CHAR4’. “Plant
LS_ITEMDATAOUT-STGE_LOC = ‘CHAR4’. “Storage Location
LS_ITEMDATAOUT-REQ_QTY = ‘QUAN15’. “Sales Quantity
LS_ITEMDATAOUT-SALES_UNIT = ‘UNIT3’. “Sales Unit
LS_ITEMDATAOUT-SALES_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_ITEMDATAOUT-SHORT_TEXT = ‘CHAR40’. “Item Description
LS_ITEMDATAOUT-PUR_PRICE = ‘DEC23’. “Purchase Price
LS_ITEMDATAOUT-PUR_VALUE = ‘DEC23’. “Net order value
LS_ITEMDATAOUT-PRICE_UNIT = ‘DEC5’. “Price unit
LS_ITEMDATAOUT-PO_PR_UOM = ‘UNIT3’. “Order Price Unit
LS_ITEMDATAOUT-PO_PR_UOM_ISO = ‘CHAR3’. “Pur.Ord. PU ISO
LS_ITEMDATAOUT-PO_UNIT = ‘UNIT3’. “Order Unit
LS_ITEMDATAOUT-PO_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_ITEMDATAOUT-PUR_CURRENCY = ‘CUKY5’. “Purchasing Currency
LS_ITEMDATAOUT-PUR_CURRENCY_ISO = ‘CHAR3’. “ISO Currency Code
LS_ITEMDATAOUT-MATL_GROUP = ‘CHAR9’. “Material Group
LS_ITEMDATAOUT-EAN_UPC = ‘CHAR18’. “EAN/UPC
LS_ITEMDATAOUT-SALES_PRICE = ‘DEC23’. “Sales price
LS_ITEMDATAOUT-SALES_VALUE = ‘DEC23’. “Net value
LS_ITEMDATAOUT-COND_P_UNT = ‘DEC5’. “Pricing Unit
LS_ITEMDATAOUT-COND_UNIT = ‘UNIT3’. “Unit of Measure
LS_ITEMDATAOUT-COND_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_ITEMDATAOUT-CURRENCY = ‘CUKY5’. “Document Currency
LS_ITEMDATAOUT-CURRENCY_ISO = ‘CHAR3’. “ISO Currency Code
LS_ITEMDATAOUT-ORDERED = ‘QUAN13’. “Quantity ordered
LS_ITEMDATAOUT-VEND_MAT = ‘CHAR35’. “Supplier Mat. No.
LS_ITEMDATAOUT-CUST_MAT = ‘CHAR35’. “Customer Material
LS_ITEMDATAOUT-MATERIAL_LONG = ‘CHAR40’. “Material
APPEND LS_ITEMDATAOUT TO LT_ITEMDATAOUT .
CLEAR LS_ITEMDATAOUT .

**********************************************************************
*******Defination of [Tables]-[SCHEDULEDATAOUT] .
**********************************************************************
DATA: LT_SCHEDULEDATAOUT TYPE STANDARD TABLE OF BAPITCSHLO.””Communication Structure: Trading Contract Sched. Line Data
DATA: LS_SCHEDULEDATAOUT TYPE BAPITCSHLO .””Communication Structure: Trading Contract Sched. Line Data
LS_SCHEDULEDATAOUT-TRADINGCONTRACTNO = ‘CHAR10’. “Trading Contract
LS_SCHEDULEDATAOUT-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_SCHEDULEDATAOUT-TRCONT_SUBITEM = ‘NUMC6’. “Sub-item number
LS_SCHEDULEDATAOUT-TRCONT_SCHDL = ‘NUMC4’. “Schedule line number
LS_SCHEDULEDATAOUT-CREATED_BY = ‘CHAR12’. “Created By
LS_SCHEDULEDATAOUT-CREAT_DATE = ‘20241208’. “Created On
LS_SCHEDULEDATAOUT-REC_TIME = ‘001049’. “Time
LS_SCHEDULEDATAOUT-REQ_QTY = ‘QUAN15’. “Sales Quantity
LS_SCHEDULEDATAOUT-SALES_UNIT = ‘UNIT3’. “Sales Unit
LS_SCHEDULEDATAOUT-SALES_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_SCHEDULEDATAOUT-ORDERED = ‘QUAN13’. “Quantity ordered
LS_SCHEDULEDATAOUT-PO_UNIT = ‘UNIT3’. “Order Unit
LS_SCHEDULEDATAOUT-PO_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_SCHEDULEDATAOUT-REQ_DATE_SD = ‘20241208’. “Delivery Date
LS_SCHEDULEDATAOUT-REQ_DATE = ‘20241208’. “Delivery Date
LS_SCHEDULEDATAOUT-DEL_DATCAT_SD = ‘CHAR1’. “Date type
LS_SCHEDULEDATAOUT-DEL_DATCAT = ‘CHAR1’. “Date type
APPEND LS_SCHEDULEDATAOUT TO LT_SCHEDULEDATAOUT .
CLEAR LS_SCHEDULEDATAOUT .

 

**********************************************************************
*******Defination of [Tables]-[BUSINESSDATAOUT] .
**********************************************************************
DATA: LT_BUSINESSDATAOUT TYPE STANDARD TABLE OF BAPITCBUSO.””Communication Structure: Trading Contract Business Data
DATA: LS_BUSINESSDATAOUT TYPE BAPITCBUSO .””Communication Structure: Trading Contract Business Data
LS_BUSINESSDATAOUT-TRADINGCONTRACTNO = ‘CHAR10’. “Trading Contract
LS_BUSINESSDATAOUT-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_BUSINESSDATAOUT-TRCONT_SUBITEM = ‘NUMC6’. “Sub-item number
LS_BUSINESSDATAOUT-VENDOR = ‘CHAR10’. “Supplier
LS_BUSINESSDATAOUT-PURCH_ORG = ‘CHAR4’. “Purch. Organization
LS_BUSINESSDATAOUT-PUR_GROUP = ‘CHAR3’. “Purchasing Group
LS_BUSINESSDATAOUT-REF_1 = ‘CHAR12’. “Your Reference
LS_BUSINESSDATAOUT-DOC_DATE = ‘20241208’. “Document Date
LS_BUSINESSDATAOUT-DELIV_DATE = ‘20241208’. “Delivery date
LS_BUSINESSDATAOUT-DEL_DATCAT = ‘CHAR1’. “Date type
LS_BUSINESSDATAOUT-CURRENCY = ‘CUKY5’. “Currency
LS_BUSINESSDATAOUT-CURRENCY_ISO = ‘CHAR3’. “ISO Currency Code
LS_BUSINESSDATAOUT-EXCH_RATE_MM_P = ‘DEC9’. “Direct quoted exchange rate
LS_BUSINESSDATAOUT-EXCH_RATE_MM_V = ‘DEC9’. “Indirect quoted exchange rate
LS_BUSINESSDATAOUT-EXCHG_RATE_MM = ‘CHAR4’. “Exchange Rate Type
LS_BUSINESSDATAOUT-PMNTTRMS = ‘CHAR4’. “Terms of Payment
LS_BUSINESSDATAOUT-PAYM_TERM = ‘CHAR80’. “Descr. Payment Terms
LS_BUSINESSDATAOUT-PRICE_DATE = ‘20241208’. “Pricing Date
LS_BUSINESSDATAOUT-INCOTERMS1 = ‘CHAR3’. “Incoterms
LS_BUSINESSDATAOUT-INCOTERMS2 = ‘CHAR28’. “Incoterms (Part 2)
LS_BUSINESSDATAOUT-QUOT_DATE = ‘20241208’. “Quotation Date
LS_BUSINESSDATAOUT-REQ_DATE_H = ‘20241208’. “Requested Deliv.Date
LS_BUSINESSDATAOUT-DATE_TYPE = ‘CHAR1’. “Prop.date type
LS_BUSINESSDATAOUT-INCOTERMS1_SD = ‘CHAR3’. “Incoterms
LS_BUSINESSDATAOUT-INCOTERMS2_SD = ‘CHAR28’. “Incoterms (Part 2)
LS_BUSINESSDATAOUT-PMNTTRMS_SD = ‘CHAR4’. “Terms of Payment
LS_BUSINESSDATAOUT-PAYM_TERM_SD = ‘CHAR80’. “Descr. Payment Terms
LS_BUSINESSDATAOUT-PAYMETHODE_SD = ‘CHAR1’. “Payment Method
LS_BUSINESSDATAOUT-SUPPL_PLNT = ‘CHAR4’. “Supplying Plant
LS_BUSINESSDATAOUT-INCOTERMSV_SD = ‘CHAR4’. “Incoterms Version
LS_BUSINESSDATAOUT-INCOTERMS2L_SD = ‘CHAR70’. “Incoterms Location 1
LS_BUSINESSDATAOUT-INCOTERMS3L_SD = ‘CHAR70’. “Incoterms Location 2
LS_BUSINESSDATAOUT-INCOTERMSV = ‘CHAR4’. “Incoterms Version
LS_BUSINESSDATAOUT-INCOTERMS2L = ‘CHAR70’. “Incoterms Location 1
LS_BUSINESSDATAOUT-INCOTERMS3L = ‘CHAR70’. “Incoterms Location 2
APPEND LS_BUSINESSDATAOUT TO LT_BUSINESSDATAOUT .
CLEAR LS_BUSINESSDATAOUT .

 

**********************************************************************
*******Defination of [Tables]-[BUSPARTYOUT] .
**********************************************************************
DATA: LT_BUSPARTYOUT TYPE STANDARD TABLE OF BAPITCPARTYO.””Communication Structure: Trading Contract Partner
DATA: LS_BUSPARTYOUT TYPE BAPITCPARTYO .””Communication Structure: Trading Contract Partner
LS_BUSPARTYOUT-TRADINGCONTRACTNO = ‘CHAR10’. “Trading Contract
LS_BUSPARTYOUT-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_BUSPARTYOUT-TRCONT_SUBITEM = ‘NUMC6’. “Sub-item number
LS_BUSPARTYOUT-PARTN_ROLE = ‘CHAR2’. “Partner Function
LS_BUSPARTYOUT-PARTCOUNT = ‘NUMC3’. “Partner counter
LS_BUSPARTYOUT-CREATED_BY = ‘CHAR12’. “Created By
LS_BUSPARTYOUT-CREAT_DATE = ‘20241208’. “Created On
LS_BUSPARTYOUT-VENDOR_NO = ‘CHAR10’. “Supplier
LS_BUSPARTYOUT-CUST_NO = ‘CHAR10’. “Customer
LS_BUSPARTYOUT-DEF_PARTNR = ‘CHAR1’. “Default Partner
LS_BUSPARTYOUT-CONTACT = ‘NUMC10’. “Contact Person
LS_BUSPARTYOUT-PERSON_NO = ‘NUMC8’. “Personnel Number
LS_BUSPARTYOUT-ADDRESS = ‘CHAR10’. “Address
LS_BUSPARTYOUT-ADDR_TYPE = ‘CHAR1’. “Address Type
APPEND LS_BUSPARTYOUT TO LT_BUSPARTYOUT .
CLEAR LS_BUSPARTYOUT .

**********************************************************************
*******Defination of [Tables]-[HEADTEXTOUT] .
**********************************************************************
DATA: LT_HEADTEXTOUT TYPE STANDARD TABLE OF BAPITCHEADCTEXT.””Trading Contract: Header Text in case of Change
DATA: LS_HEADTEXTOUT TYPE BAPITCHEADCTEXT .””Trading Contract: Header Text in case of Change
LS_HEADTEXTOUT-TRADINGCONTRACTNO = ‘CHAR10’. “Trading Contract
LS_HEADTEXTOUT-TEXT_ID = ‘CHAR4’. “Text ID
LS_HEADTEXTOUT-LANGU = ‘LANG1’. “Language Key
LS_HEADTEXTOUT-LANGU_ISO = ‘CHAR2’. “Language Code
LS_HEADTEXTOUT-FORMAT_COL = ‘CHAR2’. “Tag column
LS_HEADTEXTOUT-TEXT_LINE = ‘CHAR132’. ”
LS_HEADTEXTOUT-FUNCTION = ‘CHAR3’. “Function
LS_HEADTEXTOUT-UPDATEFLAG = ‘CHAR1’. ”
APPEND LS_HEADTEXTOUT TO LT_HEADTEXTOUT .
CLEAR LS_HEADTEXTOUT .

**********************************************************************
*******Defination of [Tables]-[ITEMTEXTOUT] .
**********************************************************************
DATA: LT_ITEMTEXTOUT TYPE STANDARD TABLE OF BAPITCITEMCTEXT.””Trading Contract: Item Texts in Case of Change
DATA: LS_ITEMTEXTOUT TYPE BAPITCITEMCTEXT .””Trading Contract: Item Texts in Case of Change
LS_ITEMTEXTOUT-TRADINGCONTRACTNO = ‘CHAR10’. “Trading Contract
LS_ITEMTEXTOUT-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_ITEMTEXTOUT-TEXT_ID = ‘CHAR4’. “Text ID
LS_ITEMTEXTOUT-LANGU = ‘LANG1’. “Language Key
LS_ITEMTEXTOUT-LANGU_ISO = ‘CHAR2’. “Language Code
LS_ITEMTEXTOUT-FORMAT_COL = ‘CHAR2’. “Tag column
LS_ITEMTEXTOUT-TEXT_LINE = ‘CHAR132’. ”
LS_ITEMTEXTOUT-FUNCTION = ‘CHAR3’. “Function
LS_ITEMTEXTOUT-UPDATEFLAG = ‘CHAR1’. ”
APPEND LS_ITEMTEXTOUT TO LT_ITEMTEXTOUT .
CLEAR LS_ITEMTEXTOUT .

**********************************************************************
*******Defination of [Tables]-[EXTENSIONOUT] .
**********************************************************************
DATA: LT_EXTENSIONOUT TYPE STANDARD TABLE OF BAPIPAREX.””Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
DATA: LS_EXTENSIONOUT TYPE BAPIPAREX .””Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
LS_EXTENSIONOUT-STRUCTURE = ‘CHAR30’. “BAPI table extension struct.
LS_EXTENSIONOUT-VALUEPART1 = ‘CHAR240’. “Data
LS_EXTENSIONOUT-VALUEPART2 = ‘CHAR240’. “Data
LS_EXTENSIONOUT-VALUEPART3 = ‘CHAR240’. “Data
LS_EXTENSIONOUT-VALUEPART4 = ‘CHAR240’. “Data
APPEND LS_EXTENSIONOUT TO LT_EXTENSIONOUT .
CLEAR LS_EXTENSIONOUT .

**********************************************************************
*******Defination of [Tables]-[RETURN] .
**********************************************************************
DATA: LT_RETURN TYPE STANDARD TABLE OF BAPIRET2.””Return Parameter
DATA: LS_RETURN TYPE BAPIRET2 .””Return Parameter
LS_RETURN-TYPE = ‘CHAR1’. “Message type
LS_RETURN-ID = ‘CHAR20’. “Message Class
LS_RETURN-NUMBER = ‘NUMC3’. “Message Number
LS_RETURN-MESSAGE = ‘CHAR220’. “Message Text
LS_RETURN-LOG_NO = ‘CHAR20’. “Log Number
LS_RETURN-LOG_MSG_NO = ‘NUMC6’. “Message Serial No.
LS_RETURN-MESSAGE_V1 = ‘CHAR50’. “Message Variable
LS_RETURN-MESSAGE_V2 = ‘CHAR50’. “Message Variable
LS_RETURN-MESSAGE_V3 = ‘CHAR50’. “Message Variable
LS_RETURN-MESSAGE_V4 = ‘CHAR50’. “Message Variable
LS_RETURN-PARAMETER = ‘CHAR32’. “Parameter Name
LS_RETURN-ROW = ‘INT410’. “Lines in parameter
LS_RETURN-FIELD = ‘CHAR30’. “Field name
LS_RETURN-SYSTEM = ‘CHAR10’. “Logical system (source of message)
APPEND LS_RETURN TO LT_RETURN .
CLEAR LS_RETURN .

**********************************************************************
*******Defination of [Tables]-[PARTNERADDRESSES] .
**********************************************************************
DATA: LT_PARTNERADDRESSES TYPE STANDARD TABLE OF BAPIADDR1.””BAPI Reference Structure for Addresses (Org./Company)
DATA: LS_PARTNERADDRESSES TYPE BAPIADDR1 .””BAPI Reference Structure for Addresses (Org./Company)
LS_PARTNERADDRESSES-ADDR_NO = ‘CHAR10’. “Address Number
LS_PARTNERADDRESSES-FORMOFADDR = ‘CHAR20’. “Form of address
LS_PARTNERADDRESSES-NAME = ‘CHAR40’. “Name
LS_PARTNERADDRESSES-NAME_2 = ‘CHAR40’. “Name 2
LS_PARTNERADDRESSES-NAME_3 = ‘CHAR40’. “Name 3
LS_PARTNERADDRESSES-NAME_4 = ‘CHAR40’. “Name 4
LS_PARTNERADDRESSES-C_O_NAME = ‘CHAR40’. “c/o
LS_PARTNERADDRESSES-CITY = ‘CHAR40’. “City
LS_PARTNERADDRESSES-DISTRICT = ‘CHAR40’. “District
LS_PARTNERADDRESSES-CITY_NO = ‘CHAR12’. “City Code
LS_PARTNERADDRESSES-POSTL_COD1 = ‘CHAR10’. “Postal Code
LS_PARTNERADDRESSES-POSTL_COD2 = ‘CHAR10’. “PO Box Postal Code
LS_PARTNERADDRESSES-POSTL_COD3 = ‘CHAR10’. “Company Postal Code
LS_PARTNERADDRESSES-PO_BOX = ‘CHAR10’. “PO Box
LS_PARTNERADDRESSES-PO_BOX_CIT = ‘CHAR40’. “PO Box City
LS_PARTNERADDRESSES-DELIV_DIS = ‘CHAR15’. “Delivery District
LS_PARTNERADDRESSES-STREET = ‘CHAR40’. “Street
LS_PARTNERADDRESSES-STREET_NO = ‘CHAR12’. “Street Code
LS_PARTNERADDRESSES-STR_ABBR = ‘CHAR2’. “Street Abbreviation
LS_PARTNERADDRESSES-HOUSE_NO = ‘CHAR10’. “House Number
LS_PARTNERADDRESSES-STR_SUPPL1 = ‘CHAR40’. “Street 2
LS_PARTNERADDRESSES-STR_SUPPL2 = ‘CHAR40’. “Street 3
LS_PARTNERADDRESSES-LOCATION = ‘CHAR40’. “Street 5
LS_PARTNERADDRESSES-BUILDING = ‘CHAR10’. “Building code
LS_PARTNERADDRESSES-FLOOR = ‘CHAR10’. “Floor
LS_PARTNERADDRESSES-ROOM_NO = ‘CHAR10’. “Room Number
LS_PARTNERADDRESSES-COUNTRY = ‘CHAR3’. “Country/Region Key
LS_PARTNERADDRESSES-LANGU = ‘LANG1’. “Language Key
LS_PARTNERADDRESSES-REGION = ‘CHAR3’. “Region
LS_PARTNERADDRESSES-SORT1 = ‘CHAR20’. “Search Term 1
LS_PARTNERADDRESSES-SORT2 = ‘CHAR20’. “Search Term 2
LS_PARTNERADDRESSES-TIME_ZONE = ‘CHAR6’. “Time Zone
LS_PARTNERADDRESSES-TAXJURCODE = ‘CHAR15’. “Tax Jurisdiction
LS_PARTNERADDRESSES-ADR_NOTES = ‘CHAR50’. “Notes
LS_PARTNERADDRESSES-COMM_TYPE = ‘CHAR3’. “Comm. Method
LS_PARTNERADDRESSES-TEL1_NUMBR = ‘CHAR30’. “Telephone
LS_PARTNERADDRESSES-TEL1_EXT = ‘CHAR10’. “Extension
LS_PARTNERADDRESSES-FAX_NUMBER = ‘CHAR30’. “Fax
LS_PARTNERADDRESSES-FAX_EXTENS = ‘CHAR10’. “Extension
LS_PARTNERADDRESSES-STREET_LNG = ‘CHAR60’. “Street
LS_PARTNERADDRESSES-DISTRCT_NO = ‘CHAR8’. “District
LS_PARTNERADDRESSES-CHCKSTATUS = ‘CHAR1’. “Test stat./City file
LS_PARTNERADDRESSES-PBOXCIT_NO = ‘CHAR12’. “City Code
LS_PARTNERADDRESSES-TRANSPZONE = ‘CHAR10’. “Transportation Zone
LS_PARTNERADDRESSES-HOUSE_NO2 = ‘CHAR10’. “Supplement
LS_PARTNERADDRESSES-E_MAIL = ‘CHAR241’. “E-Mail Address
LS_PARTNERADDRESSES-STR_SUPPL3 = ‘CHAR40’. “Street 4
LS_PARTNERADDRESSES-TITLE = ‘CHAR30’. “Title
LS_PARTNERADDRESSES-COUNTRYISO = ‘CHAR2’. “ISO Code
LS_PARTNERADDRESSES-LANGU_ISO = ‘CHAR2’. “Language Code
LS_PARTNERADDRESSES-BUILD_LONG = ‘CHAR20’. “Building Code
LS_PARTNERADDRESSES-REGIOGROUP = ‘CHAR8’. “Structure Group
LS_PARTNERADDRESSES-HOME_CITY = ‘CHAR40’. “Different City
LS_PARTNERADDRESSES-HOMECITYNO = ‘CHAR12’. “City Code
LS_PARTNERADDRESSES-PCODE1_EXT = ‘CHAR10’. “Postl Code Extension
LS_PARTNERADDRESSES-PCODE2_EXT = ‘CHAR10’. “Postl Code Extension
LS_PARTNERADDRESSES-PCODE3_EXT = ‘CHAR10’. “Postl Code Extension
LS_PARTNERADDRESSES-PO_W_O_NO = ‘CHAR1’. “PO Box w/o No.
LS_PARTNERADDRESSES-PO_BOX_REG = ‘CHAR3’. “PO Box Region
LS_PARTNERADDRESSES-POBOX_CTRY = ‘CHAR3’. “PO Box Ctry/Region
LS_PARTNERADDRESSES-PO_CTRYISO = ‘CHAR2’. “ISO Code
LS_PARTNERADDRESSES-HOMEPAGE = ‘CHAR132’. “URI
LS_PARTNERADDRESSES-DONT_USE_S = ‘CHAR4’. “Undeliverable
LS_PARTNERADDRESSES-DONT_USE_P = ‘CHAR4’. “Undeliverable
LS_PARTNERADDRESSES-HOUSE_NO3 = ‘CHAR10’. “House Number Range
LS_PARTNERADDRESSES-LANGU_CR = ‘LANG1’. “Creation language
LS_PARTNERADDRESSES-LANGUCRISO = ‘CHAR2’. “Language Code
LS_PARTNERADDRESSES-PO_BOX_LOBBY = ‘CHAR40’. “PO Box Lobby
LS_PARTNERADDRESSES-DELI_SERV_TYPE = ‘CHAR4’. “Type of Delivry Service
LS_PARTNERADDRESSES-DELI_SERV_NUMBER = ‘CHAR10’. “Number of Delivery Service
LS_PARTNERADDRESSES-URI_TYPE = ‘CHAR3’. “URI type
LS_PARTNERADDRESSES-COUNTY_CODE = ‘CHAR8’. “County code
LS_PARTNERADDRESSES-COUNTY = ‘CHAR40’. “County
LS_PARTNERADDRESSES-TOWNSHIP_CODE = ‘CHAR8’. “Township code
LS_PARTNERADDRESSES-TOWNSHIP = ‘CHAR40’. “Township
LS_PARTNERADDRESSES-XPCPT = ‘CHAR1’. “Business Purpose Completed Flag
APPEND LS_PARTNERADDRESSES TO LT_PARTNERADDRESSES .
CLEAR LS_PARTNERADDRESSES .

 

**********************************************************************
*******Defination of [Tables]-[VENDORCONDIN] .
**********************************************************************
DATA: LT_VENDORCONDIN TYPE STANDARD TABLE OF BAPITCCOND.””Conditions: Trading Contract Supplier-Side
DATA: LS_VENDORCONDIN TYPE BAPITCCOND .””Conditions: Trading Contract Supplier-Side
LS_VENDORCONDIN-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_VENDORCONDIN-TRCONT_SUBITEM = ‘NUMC6’. “Sub-item number
LS_VENDORCONDIN-COND_ST_NO = ‘NUMC3’. “Step Number
LS_VENDORCONDIN-COND_COUNT = ‘NUMC2’. “Counter
LS_VENDORCONDIN-COND_TYPE = ‘CHAR4’. “Condition Type
LS_VENDORCONDIN-COND_BASE = ‘DEC28’. “Condition value
LS_VENDORCONDIN-COND_VALUE = ‘DEC28’. “Condition Amount
LS_VENDORCONDIN-CURRENCY = ‘CUKY5’. “Currency
LS_VENDORCONDIN-COND_UNIT = ‘UNIT3’. “Unit of Measure
LS_VENDORCONDIN-COND_P_UNT = ‘DEC5’. “Pricing Unit
LS_VENDORCONDIN-CURR_ISO = ‘CHAR3’. “ISO Currency Code
LS_VENDORCONDIN-CD_UNT_ISO = ‘CHAR3’. “ISO condition UoM
LS_VENDORCONDIN-APPLICATIO = ‘CHAR2’. “Application
LS_VENDORCONDIN-CONPRICDAT = ‘20241208’. “Conditn Pricing Date
LS_VENDORCONDIN-CALCTYPCON = ‘CHAR1’. “Calculation Type
LS_VENDORCONDIN-CONBASEVAL = ‘DEC28’. “Condition base value
LS_VENDORCONDIN-CONEXCHRAT = ‘DEC9’. “Cond.exchange rate
LS_VENDORCONDIN-NUMCONVERT = ‘DEC5’. “NumeratorForConvers.
LS_VENDORCONDIN-DENOMINATO = ‘DEC5’. “Denom.for Conversion
LS_VENDORCONDIN-CONDTYPE = ‘CHAR1’. “Condition Category
LS_VENDORCONDIN-STAT_CON = ‘CHAR1’. “Statistical
LS_VENDORCONDIN-SCALETYPE = ‘CHAR1’. “Scale Type
LS_VENDORCONDIN-ACCRUALS = ‘CHAR1’. “Accruals
LS_VENDORCONDIN-CONINVOLST = ‘CHAR1’. “Invoice List Cond.
LS_VENDORCONDIN-CONDORIGIN = ‘CHAR1’. “Condition Origin
LS_VENDORCONDIN-CONDISACTI = ‘CHAR1’. “Inactive Condition
LS_VENDORCONDIN-CONDCLASS = ‘CHAR1’. “Condition Class
LS_VENDORCONDIN-SCALEBASIN = ‘CHAR1’. “Scale Base Type
LS_VENDORCONDIN-SCALEBASE = ‘DEC28’. “Scale base value
LS_VENDORCONDIN-UNITMEASUR = ‘UNIT3’. “Scale Unit of Meas.
LS_VENDORCONDIN-ISO_UNIT = ‘CHAR3’. “ISO Code
LS_VENDORCONDIN-CURRENCKEY = ‘CUKY5’. “Scale Currency
LS_VENDORCONDIN-CURRENISO = ‘CHAR3’. “ISO Currency Code
LS_VENDORCONDIN-ACCESS_SEQ = ‘NUMC2’. “Access
LS_VENDORCONDIN-CONDCNTRL = ‘CHAR1’. “Condition Control
LS_VENDORCONDIN-FORMSTATUS = ‘NUMC2’. “Status Formula Eval.
LS_VENDORCONDIN-ACCESS_SEQ_LONG = ‘NUMC3’. “Access
LS_VENDORCONDIN-COND_COUNT_LONG = ‘NUMC3’. “Counter
APPEND LS_VENDORCONDIN TO LT_VENDORCONDIN .
CLEAR LS_VENDORCONDIN .

**********************************************************************
*******Defination of [Tables]-[CUSTOMERCONDIN] .
**********************************************************************
DATA: LT_CUSTOMERCONDIN TYPE STANDARD TABLE OF BAPITCCONDD.””Conditions: Trading Contract Customer-Side
DATA: LS_CUSTOMERCONDIN TYPE BAPITCCONDD .””Conditions: Trading Contract Customer-Side
LS_CUSTOMERCONDIN-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_CUSTOMERCONDIN-TRCONT_SUBITEM = ‘NUMC6’. “Sub-item number
LS_CUSTOMERCONDIN-COND_ST_NO = ‘NUMC3’. “Step Number
LS_CUSTOMERCONDIN-COND_COUNT = ‘NUMC2’. “Counter
LS_CUSTOMERCONDIN-COND_TYPE = ‘CHAR4’. “Condition Type
LS_CUSTOMERCONDIN-COND_BASE = ‘DEC28’. “Condition value
LS_CUSTOMERCONDIN-COND_VALUE = ‘DEC28’. “Condition Amount
LS_CUSTOMERCONDIN-CURRENCY = ‘CUKY5’. “Currency
LS_CUSTOMERCONDIN-COND_UNIT = ‘UNIT3’. “Unit of Measure
LS_CUSTOMERCONDIN-COND_P_UNT = ‘DEC5’. “Pricing Unit
LS_CUSTOMERCONDIN-CURR_ISO = ‘CHAR3’. “ISO Currency Code
LS_CUSTOMERCONDIN-CD_UNT_ISO = ‘CHAR3’. “ISO condition UoM
LS_CUSTOMERCONDIN-APPLICATIO = ‘CHAR2’. “Application
LS_CUSTOMERCONDIN-CONPRICDAT = ‘20241208’. “Conditn Pricing Date
LS_CUSTOMERCONDIN-CALCTYPCON = ‘CHAR1’. “Calculation Type
LS_CUSTOMERCONDIN-CONBASEVAL = ‘DEC28’. “Condition base value
LS_CUSTOMERCONDIN-CONEXCHRAT = ‘DEC9’. “Cond.exchange rate
LS_CUSTOMERCONDIN-NUMCONVERT = ‘DEC5’. “NumeratorForConvers.
LS_CUSTOMERCONDIN-DENOMINATO = ‘DEC5’. “Denom.for Conversion
LS_CUSTOMERCONDIN-CONDTYPE = ‘CHAR1’. “Condition Category
LS_CUSTOMERCONDIN-STAT_CON = ‘CHAR1’. “Statistical
LS_CUSTOMERCONDIN-SCALETYPE = ‘CHAR1’. “Scale Type
LS_CUSTOMERCONDIN-ACCRUALS = ‘CHAR1’. “Accruals
LS_CUSTOMERCONDIN-CONINVOLST = ‘CHAR1’. “Invoice List Cond.
LS_CUSTOMERCONDIN-CONDORIGIN = ‘CHAR1’. “Condition Origin
LS_CUSTOMERCONDIN-CONDISACTI = ‘CHAR1’. “Inactive Condition
LS_CUSTOMERCONDIN-CONDCLASS = ‘CHAR1’. “Condition Class
LS_CUSTOMERCONDIN-SCALEBASIN = ‘CHAR1’. “Scale Base Type
LS_CUSTOMERCONDIN-SCALEBASE = ‘DEC28’. “Scale base value
LS_CUSTOMERCONDIN-UNITMEASUR = ‘UNIT3’. “Scale Unit of Meas.
LS_CUSTOMERCONDIN-ISO_UNIT = ‘CHAR3’. “ISO Code
LS_CUSTOMERCONDIN-CURRENCKEY = ‘CUKY5’. “Scale Currency
LS_CUSTOMERCONDIN-CURRENISO = ‘CHAR3’. “ISO Currency Code
LS_CUSTOMERCONDIN-ACCESS_SEQ = ‘NUMC2’. “Access
LS_CUSTOMERCONDIN-CONDCNTRL = ‘CHAR1’. “Condition Control
LS_CUSTOMERCONDIN-FORMSTATUS = ‘NUMC2’. “Status Formula Eval.
LS_CUSTOMERCONDIN-ACCESS_SEQ_LONG = ‘NUMC3’. “Access
LS_CUSTOMERCONDIN-COND_COUNT_LONG = ‘NUMC3’. “Counter
APPEND LS_CUSTOMERCONDIN TO LT_CUSTOMERCONDIN .
CLEAR LS_CUSTOMERCONDIN .

 

**********************************************************************
*******Defination of [Tables]-[CONDITIONKEYDATAIN] .
**********************************************************************
DATA: LT_CONDITIONKEYDATAIN TYPE STANDARD TABLE OF BAPITCCONDITIONKEY.””BAPI: Trading Contract: Fields Condition Structures
DATA: LS_CONDITIONKEYDATAIN TYPE BAPITCCONDITIONKEY .””BAPI: Trading Contract: Fields Condition Structures
LS_CONDITIONKEYDATAIN-ORDER_KEY = ‘CHAR10’. “User-Defined Key
LS_CONDITIONKEYDATAIN-EXP_CLASS = ‘CHAR3’. “Expense Class
LS_CONDITIONKEYDATAIN-ACC_TYPE = ‘CHAR1’. “Accounting Type
LS_CONDITIONKEYDATAIN-POST_TYPE = ‘CHAR1’. “Posting Category
LS_CONDITIONKEYDATAIN-EXP_CLASS_GROUP = ‘CHAR2’. “Expense Class Group
LS_CONDITIONKEYDATAIN-APPLICATION = ‘CHAR2’. “Application
LS_CONDITIONKEYDATAIN-COND_GROUP_NO = ‘CHAR4’. “CT Group
LS_CONDITIONKEYDATAIN-TABLE_NO = ‘CHAR3’. “Table Number
LS_CONDITIONKEYDATAIN-COND_TYPE = ‘CHAR4’. “Condition Type
LS_CONDITIONKEYDATAIN-VALID_FROM = ‘20241208’. “Valid From
LS_CONDITIONKEYDATAIN-VALID_TO = ‘20241208’. “Valid To
LS_CONDITIONKEYDATAIN-SALESORG = ‘CHAR4’. “Sales Organization
LS_CONDITIONKEYDATAIN-DISTR_CHAN = ‘CHAR2’. “Distribution Channel
LS_CONDITIONKEYDATAIN-DIVISION = ‘CHAR2’. “Division
LS_CONDITIONKEYDATAIN-CUSTOMER = ‘CHAR10’. “Customer
LS_CONDITIONKEYDATAIN-CUST_GROUP = ‘CHAR2’. “Customer Group
LS_CONDITIONKEYDATAIN-PRICE_LIST = ‘CHAR2’. “Price List Type
LS_CONDITIONKEYDATAIN-PRICE_GRP = ‘CHAR2’. “Price Group
LS_CONDITIONKEYDATAIN-MAT_PR_GRP = ‘CHAR2’. “Material Price Grp
LS_CONDITIONKEYDATAIN-CURRENCY = ‘CUKY5’. “Document Currency
LS_CONDITIONKEYDATAIN-CURRENCY_ISO = ‘CHAR3’. “ISO code
LS_CONDITIONKEYDATAIN-MATERIAL = ‘CHAR18’. “Material
LS_CONDITIONKEYDATAIN-VAL_TYPE = ‘CHAR10’. “Valuation Type
LS_CONDITIONKEYDATAIN-BATCH = ‘CHAR10’. “Batch
LS_CONDITIONKEYDATAIN-PROD_HIER = ‘CHAR18’. “Product Hierarchy
LS_CONDITIONKEYDATAIN-BASE_UOM = ‘UNIT3’. “Base Unit of Measure
LS_CONDITIONKEYDATAIN-BASE_UOM_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONKEYDATAIN-REBATE_GRP = ‘CHAR2’. “Volume Rebate Group
LS_CONDITIONKEYDATAIN-BON_GRP1 = ‘CHAR2’. “Settlement Group 1
LS_CONDITIONKEYDATAIN-COMM_GROUP = ‘CHAR2’. “Commission Group
LS_CONDITIONKEYDATAIN-DEPCOUNTRY = ‘CHAR3’. “Departure Ctry/Reg.
LS_CONDITIONKEYDATAIN-DEPCOUNTRY_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAIN-PLNTREGION = ‘CHAR3’. “Region of Dlv. Plant
LS_CONDITIONKEYDATAIN-PLNTCOUNTY = ‘CHAR3’. “County of Dlv.Plant
LS_CONDITIONKEYDATAIN-PLANT_CITY = ‘CHAR4’. “City of Deliv. Plant
LS_CONDITIONKEYDATAIN-DEST_CNTRY = ‘CHAR3’. “Dest. Country/Region
LS_CONDITIONKEYDATAIN-DEST_CNTRY_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAIN-REGION = ‘CHAR3’. “Region
LS_CONDITIONKEYDATAIN-COUNTY_CDE = ‘CHAR3’. “County Code
LS_CONDITIONKEYDATAIN-CITY_CODE = ‘CHAR4’. “City Code
LS_CONDITIONKEYDATAIN-TAXCL_MAT = ‘CHAR1’. “Tax Class. Material
LS_CONDITIONKEYDATAIN-TAXCL_2MAT = ‘CHAR1’. “Tax Class.2 Material
LS_CONDITIONKEYDATAIN-TAXCL_3MAT = ‘CHAR1’. “Tax Class.3 Material
LS_CONDITIONKEYDATAIN-TAXCL_4MAT = ‘CHAR1’. “Tax Class.4 Material
LS_CONDITIONKEYDATAIN-TAXCL_5MAT = ‘CHAR1’. “Tax Class.5 Material
LS_CONDITIONKEYDATAIN-TAXCL_6MAT = ‘CHAR1’. “Tax Class.6 Material
LS_CONDITIONKEYDATAIN-TAXCL_7MAT = ‘CHAR1’. “Tax Class.7 Material
LS_CONDITIONKEYDATAIN-TAXCL_8MAT = ‘CHAR1’. “Tax Class.8 Material
LS_CONDITIONKEYDATAIN-TAXCL_9MAT = ‘CHAR1’. “Tax Class.9 Material
LS_CONDITIONKEYDATAIN-TAX_CLASS1 = ‘CHAR1’. “Tax Class.1 Customer
LS_CONDITIONKEYDATAIN-TAX_CLASS2 = ‘CHAR1’. “Tax Class.2 Customer
LS_CONDITIONKEYDATAIN-TAX_CLASS3 = ‘CHAR1’. “Tax Class.3 Customer
LS_CONDITIONKEYDATAIN-TAX_CLASS4 = ‘CHAR1’. “Tax Class.4 Customer
LS_CONDITIONKEYDATAIN-TAX_CLASS5 = ‘CHAR1’. “Tax Class.5 Customer
LS_CONDITIONKEYDATAIN-TAX_CLASS6 = ‘CHAR1’. “Tax Class.6 Customer
LS_CONDITIONKEYDATAIN-TAX_CLASS7 = ‘CHAR1’. “Tax Class.7 Customer
LS_CONDITIONKEYDATAIN-TAX_CLASS8 = ‘CHAR1’. “Tax Class.8 Customer
LS_CONDITIONKEYDATAIN-TAX_CLASS9 = ‘CHAR1’. “Tax Class.9 Customer
LS_CONDITIONKEYDATAIN-VENDOR = ‘CHAR10’. “Supplier
LS_CONDITIONKEYDATAIN-MATL_GROUP = ‘CHAR9’. “Material Group
LS_CONDITIONKEYDATAIN-PURCH_ORG = ‘CHAR4’. “Purch. Organization
LS_CONDITIONKEYDATAIN-INFO_TYPE = ‘CHAR1’. “Info Record Category
LS_CONDITIONKEYDATAIN-PLANT = ‘CHAR4’. “Plant
LS_CONDITIONKEYDATAIN-SUPPL_PLNT = ‘CHAR4’. “Supplying Plant
LS_CONDITIONKEYDATAIN-PRE_VENDOR = ‘CHAR10’. “Prior Supplier
LS_CONDITIONKEYDATAIN-VEND_PART = ‘CHAR6’. “Supplier Subrange
LS_CONDITIONKEYDATAIN-VEND_MATG = ‘CHAR18’. “Supplier Mat. Group
LS_CONDITIONKEYDATAIN-TAX_CODE = ‘CHAR2’. “Tax Code
LS_CONDITIONKEYDATAIN-RESALE_PLT = ‘CHAR4’. “Resale plant
LS_CONDITIONKEYDATAIN-MAT_GROUP = ‘CHAR9’. “Material group
LS_CONDITIONKEYDATAIN-SALES_UNIT = ‘UNIT3’. “Sales Unit
LS_CONDITIONKEYDATAIN-SALES_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONKEYDATAIN-EAN_UPC = ‘CHAR18’. “EAN/UPC
LS_CONDITIONKEYDATAIN-BUS_AREA = ‘CHAR4’. “Business Area
LS_CONDITIONKEYDATAIN-ORDER_TYPE = ‘CHAR4’. “Order Type
LS_CONDITIONKEYDATAIN-ORDER_CATG = ‘NUMC2’. “Order category
LS_CONDITIONKEYDATAIN-OVERHEAD_KEY = ‘CHAR6’. “Overhead key
LS_CONDITIONKEYDATAIN-OVRHD_TYPE = ‘CHAR1’. “Overhead Type
LS_CONDITIONKEYDATAIN-RESPCCTR = ‘CHAR10’. “Responsible CCtr
LS_CONDITIONKEYDATAIN-UN_PUR_MAT = ‘UNIT3’. “Un purchased mater.
LS_CONDITIONKEYDATAIN-UN_PUR_MAT_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONKEYDATAIN-CO_AREA = ‘CHAR4’. “Controlling Area
LS_CONDITIONKEYDATAIN-COSTCENTER = ‘CHAR10’. “Cost Center
LS_CONDITIONKEYDATAIN-COSTCENTER_TYPE = ‘CHAR1’. “Cost Center Category
LS_CONDITIONKEYDATAIN-INFO_REC = ‘CHAR10’. “Purchasing info rec.
LS_CONDITIONKEYDATAIN-INCOTERMS1 = ‘CHAR3’. “Incoterms
LS_CONDITIONKEYDATAIN-INCOTERMS2 = ‘CHAR28’. “Incoterms (Part 2)
LS_CONDITIONKEYDATAIN-COMP_CODE = ‘CHAR4’. “Company Code
LS_CONDITIONKEYDATAIN-MATL_TYPE = ‘CHAR4’. “Material Type
LS_CONDITIONKEYDATAIN-SUPPL_VEND = ‘CHAR10’. “Goods Supplier
LS_CONDITIONKEYDATAIN-DIFF_INV = ‘CHAR10’. “Invoicing Party
LS_CONDITIONKEYDATAIN-COND_GROUP = ‘CHAR4’. “Condition Group
LS_CONDITIONKEYDATAIN-PO_UNIT = ‘UNIT3’. “Order Unit
LS_CONDITIONKEYDATAIN-PO_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONKEYDATAIN-MATGRHIER = ‘CHAR18’. “MatGrHier
LS_CONDITIONKEYDATAIN-TAX_IND = ‘CHAR1’. “Tax ind. f. material
LS_CONDITIONKEYDATAIN-TI_ACC_ASS = ‘CHAR1’. “Tax Ind. Acct Assgt
LS_CONDITIONKEYDATAIN-TAXINDPLNT = ‘CHAR1’. “Tax Indicator: Plant
LS_CONDITIONKEYDATAIN-IMPORT = ‘CHAR1’. “Import
LS_CONDITIONKEYDATAIN-TAX_REGION = ‘CHAR1’. “Tax indicator region
LS_CONDITIONKEYDATAIN-TAXJURCODE = ‘CHAR15’. “Tax Jurisdiction
LS_CONDITIONKEYDATAIN-OPERATING_CONCERN = ‘CHAR4’. “Operating concern
LS_CONDITIONKEYDATAIN-PLAN_ACT = ‘CHAR1’. “Plan/Act. Indicator
LS_CONDITIONKEYDATAIN-VERSION = ‘CHAR3’. “Version
LS_CONDITIONKEYDATAIN-RECORDTYPE = ‘CHAR1’. “Record Type
LS_CONDITIONKEYDATAIN-BILL_TYPE = ‘CHAR4’. “Billing Type
LS_CONDITIONKEYDATAIN-SORG_ORDER = ‘CHAR4’. “Sales Org. of Order
LS_CONDITIONKEYDATAIN-VARIANT = ‘CHAR26’. “Variant Key
LS_CONDITIONKEYDATAIN-COUNTRY = ‘CHAR3’. “Country/Region Key
LS_CONDITIONKEYDATAIN-COUNTRY_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAIN-PMNTTRMS = ‘CHAR4’. “Terms of Payment
LS_CONDITIONKEYDATAIN-PREF_ZONE = ‘CHAR4’. “Preference zone
LS_CONDITIONKEYDATAIN-GROUPING = ‘CHAR6’. “Cross-plant grouping
LS_CONDITIONKEYDATAIN-INT_OBJ_NO = ‘NUMC18’. “Internal object no.
LS_CONDITIONKEYDATAIN-MNITM_PRM = ‘CHAR18’. “MnItm PrcRefMatl
LS_CONDITIONKEYDATAIN-MNITEM_MPG = ‘CHAR2’. “MnItem MatPricingGrp
LS_CONDITIONKEYDATAIN-NO_SER_NO = ‘NUMC10’. “No. serial numbers
LS_CONDITIONKEYDATAIN-DOC_TYPE = ‘CHAR4’. “Sales Document Type
LS_CONDITIONKEYDATAIN-SALES_DIST = ‘CHAR6’. “Sales District
LS_CONDITIONKEYDATAIN-SALES_GRP = ‘CHAR3’. “Sales Group
LS_CONDITIONKEYDATAIN-INDUSTRY = ‘CHAR4’. “Industry
LS_CONDITIONKEYDATAIN-SALES_OFF = ‘CHAR4’. “Sales Office
LS_CONDITIONKEYDATAIN-PROFIT_CTR = ‘CHAR10’. “Profit Center
LS_CONDITIONKEYDATAIN-PART_PRCTR = ‘CHAR10’. “Partner Profit Ctr
LS_CONDITIONKEYDATAIN-REP_MATERIAL = ‘CHAR18’. “Representative material no.
LS_CONDITIONKEYDATAIN-HIERARCHY = ‘CHAR10’. “Vendor hierarchy
LS_CONDITIONKEYDATAIN-CCONDGRP = ‘CHAR2’. “CustomerCondGrp
LS_CONDITIONKEYDATAIN-ORDER_REASON = ‘CHAR3’. “Reason for Ordering
LS_CONDITIONKEYDATAIN-RET_ITEM = ‘CHAR1’. “Returns Item
LS_CONDITIONKEYDATAIN-DELIV_CTRY = ‘CHAR3’. “Delivering country
LS_CONDITIONKEYDATAIN-DELIV_CTRY_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAIN-EXPORTER = ‘CHAR10’. “Exporter
LS_CONDITIONKEYDATAIN-COUNTRYORI = ‘CHAR3’. “Cntry/Reg of Origin
LS_CONDITIONKEYDATAIN-COUNTRYORI_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAIN-DISP_CNTRY = ‘CHAR3’. “Country of dispatch
LS_CONDITIONKEYDATAIN-DISP_CNTRY_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAIN-CODE_NO = ‘CHAR17’. “Import code no.
LS_CONDITIONKEYDATAIN-COMM_CODE = ‘CHAR17’. “Commodity Code
LS_CONDITIONKEYDATAIN-CAS_NO = ‘CHAR15’. “CAS number (pharm.)
LS_CONDITIONKEYDATAIN-EXP_IMP_P = ‘CHAR8’. “Procedure
LS_CONDITIONKEYDATAIN-CUQUOTA = ‘CHAR6’. “Customs quota
LS_CONDITIONKEYDATAIN-PH_PROD = ‘CHAR6’. “Pharmaceut.products
LS_CONDITIONKEYDATAIN-ANTI_DUMP = ‘CHAR6’. “Antidumping Code
LS_CONDITIONKEYDATAIN-MFR = ‘CHAR10’. “Manufacturer number
LS_CONDITIONKEYDATAIN-QUOT_C_NO = ‘CHAR10’. “Quota number
LS_CONDITIONKEYDATAIN-PREF_TYPE = ‘CHAR10’. “Preference type
LS_CONDITIONKEYDATAIN-CTRYGROUP = ‘CHAR10’. “Country group import
LS_CONDITIONKEYDATAIN-DLV_TIME = ‘CHAR3’. “Delivery Time
LS_CONDITIONKEYDATAIN-RESOURCE = ‘CHAR10’. “Resource
LS_CONDITIONKEYDATAIN-SET = ‘CHAR12’. “Set ID
LS_CONDITIONKEYDATAIN-CALC_MOTIVE = ‘CHAR2’. “Accounting Indicator
LS_CONDITIONKEYDATAIN-AGREEMENT = ‘CHAR10’. “Agreement
LS_CONDITIONKEYDATAIN-SALES_DEAL = ‘CHAR10’. “Sales Deal
LS_CONDITIONKEYDATAIN-CONDPRCGDT = ‘20241208’. “Conditn Pricing Date
LS_CONDITIONKEYDATAIN-SCALE = ‘NUMC7’. “Scale Base Value
LS_CONDITIONKEYDATAIN-SOLD_TO = ‘CHAR10’. “Sold-to Party
LS_CONDITIONKEYDATAIN-SHIP_TO = ‘CHAR10’. “Ship-to Party
LS_CONDITIONKEYDATAIN-PAYER = ‘CHAR10’. “Payer
LS_CONDITIONKEYDATAIN-BILL_TO = ‘CHAR10’. “Bill-to Party
LS_CONDITIONKEYDATAIN-STATUS = ‘CHAR1’. “Release Status
LS_CONDITIONKEYDATAIN-EU_MAT_GRP = ‘CHAR6’. “CAP prod. group
LS_CONDITIONKEYDATAIN-PROC_STAT = ‘CHAR2’. “Processing Status
LS_CONDITIONKEYDATAIN-ORD_REASON = ‘CHAR3’. “Order Reason
LS_CONDITIONKEYDATAIN-PRODCAT = ‘CHAR10’. “Catalog
LS_CONDITIONKEYDATAIN-FUND = ‘CHAR10’. “Fund
LS_CONDITIONKEYDATAIN-FUNC_AREA = ‘CHAR16’. “Functional Area
LS_CONDITIONKEYDATAIN-GRANT_NBR = ‘CHAR20’. “Grant
LS_CONDITIONKEYDATAIN-TRADINGCONTRACTNO = ‘CHAR10’. “Trading Contract
LS_CONDITIONKEYDATAIN-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_CONDITIONKEYDATAIN-MATERIAL_LONG = ‘CHAR40’. “Material
LS_CONDITIONKEYDATAIN-REP_MATERIAL_LONG = ‘CHAR40’. “Representative material no.
LS_CONDITIONKEYDATAIN-MNITM_PRM_LONG = ‘CHAR40’. “MnItm PrcRefMatl
LS_CONDITIONKEYDATAIN-INCOTERMSV = ‘CHAR4’. “Incoterms Version
LS_CONDITIONKEYDATAIN-INCOTERMS2L = ‘CHAR70’. “Incoterms Location 1
LS_CONDITIONKEYDATAIN-INCOTERMS3L = ‘CHAR70’. “Incoterms Location 2
APPEND LS_CONDITIONKEYDATAIN TO LT_CONDITIONKEYDATAIN .
CLEAR LS_CONDITIONKEYDATAIN .

 

**********************************************************************
*******Defination of [Tables]-[CONDITIONKEYDATAINX] .
**********************************************************************
DATA: LT_CONDITIONKEYDATAINX TYPE STANDARD TABLE OF BAPITCCONDITIONKEYX.””BAPI: Trading Contract: Condition Structures Changes
DATA: LS_CONDITIONKEYDATAINX TYPE BAPITCCONDITIONKEYX .””BAPI: Trading Contract: Condition Structures Changes
LS_CONDITIONKEYDATAINX-ORDER_KEY = ‘CHAR10’. “User-Defined Key
LS_CONDITIONKEYDATAINX-SALESORG = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DISTR_CHAN = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DIVISION = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CUSTOMER = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CUST_GROUP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PRICE_LIST = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PRICE_GRP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MAT_PR_GRP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CURRENCY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CURRENCY_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MATERIAL = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-VAL_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-BATCH = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PROD_HIER = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-BASE_UOM = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-BASE_UOM_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-REBATE_GRP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-BON_GRP1 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COMM_GROUP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DEPCOUNTRY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DEPCOUNTRY_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PLNTREGION = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PLNTCOUNTY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PLANT_CITY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DEST_CNTRY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DEST_CNTRY_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-REGION = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COUNTY_CDE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CITY_CODE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXCL_MAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXCL_2MAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXCL_3MAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXCL_4MAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXCL_5MAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXCL_6MAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXCL_7MAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXCL_8MAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXCL_9MAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_CLASS1 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_CLASS2 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_CLASS3 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_CLASS4 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_CLASS5 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_CLASS6 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_CLASS7 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_CLASS8 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_CLASS9 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-VENDOR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MATL_GROUP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PURCH_ORG = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-INFO_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PLANT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SUPPL_PLNT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PRE_VENDOR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-VEND_PART = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-VEND_MATG = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_CODE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-RESALE_PLT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MAT_GROUP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SALES_UNIT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SALES_UNIT_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-EAN_UPC = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-BUS_AREA = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-ORDER_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-ORDER_CATG = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-OVERHEAD_KEY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-OVRHD_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-RESPCCTR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-UN_PUR_MAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-UN_PUR_MAT_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CO_AREA = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COSTCENTER = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COSTCENTER_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-INFO_REC = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-INCOTERMS1 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-INCOTERMS2 = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COMP_CODE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MATL_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SUPPL_VEND = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DIFF_INV = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COND_GROUP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PO_UNIT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PO_UNIT_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MATGRHIER = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_IND = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TI_ACC_ASS = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXINDPLNT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-IMPORT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAX_REGION = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TAXJURCODE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-OPERATING_CONCERN = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PLAN_ACT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-VERSION = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-RECORDTYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-BILL_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SORG_ORDER = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-VARIANT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COUNTRY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COUNTRY_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PMNTTRMS = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PREF_ZONE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-GROUPING = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-INT_OBJ_NO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MNITM_PRM = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MNITEM_MPG = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-NO_SER_NO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DOC_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SALES_DIST = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SALES_GRP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-INDUSTRY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SALES_OFF = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PROFIT_CTR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PART_PRCTR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-REP_MATERIAL = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-HIERARCHY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CCONDGRP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-ORDER_REASON = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-RET_ITEM = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DELIV_CTRY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DELIV_CTRY_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-EXPORTER = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COUNTRYORI = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COUNTRYORI_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DISP_CNTRY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DISP_CNTRY_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CODE_NO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-COMM_CODE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CAS_NO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-EXP_IMP_P = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CUQUOTA = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PH_PROD = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-ANTI_DUMP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MFR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-QUOT_C_NO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PREF_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CTRYGROUP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-DLV_TIME = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-RESOURCE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SET = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CALC_MOTIVE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-AGREEMENT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SALES_DEAL = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-CONDPRCGDT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SCALE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SOLD_TO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-SHIP_TO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PAYER = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-BILL_TO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-STATUS = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-EU_MAT_GRP = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PROC_STAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-ORD_REASON = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-PRODCAT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-FUND = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-FUNC_AREA = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-GRANT_NBR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-UPDATEFLAG = ‘CHAR1’. ”
LS_CONDITIONKEYDATAINX-TRADINGCONTRACTNO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-TRCONT_ITEM = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MATERIAL_LONG = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-REP_MATERIAL_LONG = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-MNITM_PRM_LONG = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-INCOTERMSV = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-INCOTERMS2L = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONKEYDATAINX-INCOTERMS3L = ‘CHAR1’. “Updated info. user data field
APPEND LS_CONDITIONKEYDATAINX TO LT_CONDITIONKEYDATAINX .
CLEAR LS_CONDITIONKEYDATAINX .

**********************************************************************
*******Defination of [Tables]-[CONDITIONITEMDATAIN] .
**********************************************************************
DATA: LT_CONDITIONITEMDATAIN TYPE STANDARD TABLE OF BAPITCCONDITIONITEM.””BAPI: Trading Contract: Conditions Item
DATA: LS_CONDITIONITEMDATAIN TYPE BAPITCCONDITIONITEM .””BAPI: Trading Contract: Conditions Item
LS_CONDITIONITEMDATAIN-ORDER_KEY = ‘CHAR10’. “User-Defined Key
LS_CONDITIONITEMDATAIN-COND_COUNT = ‘NUMC2’. “Sequent. No. of Cond.
LS_CONDITIONITEMDATAIN-CALC_TYPE = ‘CHAR1’. “Calculation Type
LS_CONDITIONITEMDATAIN-AMOUNT = ‘DEC23’. “Condition Amount
LS_CONDITIONITEMDATAIN-CONDCURR = ‘CUKY5’. “Condition Currency
LS_CONDITIONITEMDATAIN-CONDCURR_ISO = ‘CHAR3’. “ISO code
LS_CONDITIONITEMDATAIN-COND_P_UNT = ‘DEC5’. “Pricing Unit
LS_CONDITIONITEMDATAIN-COND_UNIT = ‘UNIT3’. “Unit of Measure
LS_CONDITIONITEMDATAIN-COND_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONITEMDATAIN-TAX_CODE = ‘CHAR2’. “Tax Code
LS_CONDITIONITEMDATAIN-W_TAX_CODE = ‘CHAR2’. “Withholding Tax Code
LS_CONDITIONITEMDATAIN-EXCLUSION = ‘CHAR1’. “Exclusion
LS_CONDITIONITEMDATAIN-PMNTTRMS = ‘CHAR4’. “Terms of Payment
LS_CONDITIONITEMDATAIN-FIX_VAL_DY = ‘20241208’. “Fixed Value Date
LS_CONDITIONITEMDATAIN-COND_TYPE = ‘CHAR4’. “Condition Type
LS_CONDITIONITEMDATAIN-CUSTOMER = ‘CHAR10’. “Customer
LS_CONDITIONITEMDATAIN-VENDOR_NO = ‘CHAR10’. “Supplier
LS_CONDITIONITEMDATAIN-NUMBORDERS = ‘NUMC2’. “Max.number.of.orders
LS_CONDITIONITEMDATAIN-MAXCONBAVA = ‘QUAN15’. “Max.cond.base value
LS_CONDITIONITEMDATAIN-MAXCONVAL = ‘DEC23’. “Max.Condit.Value
LS_CONDITIONITEMDATAIN-CONDCURR_CUM = ‘CUKY5’. “Condition Currency
LS_CONDITIONITEMDATAIN-CONDCURR_CUM_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONITEMDATAIN-SCALECURR = ‘CUKY5’. “Scale Currency
LS_CONDITIONITEMDATAIN-SCALECURR_ISO = ‘CHAR3’. “ISO code
LS_CONDITIONITEMDATAIN-SCALE_UNIT = ‘UNIT3’. “Scale Unit of Meas.
LS_CONDITIONITEMDATAIN-SCALE_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONITEMDATAIN-CONVNUMERATOR = ‘DEC5’. “NumeratorForConvers.
LS_CONDITIONITEMDATAIN-CONVDENOMINATOR = ‘DEC5’. “Denom.for Conversion
LS_CONDITIONITEMDATAIN-SCALEBASIS = ‘CHAR1’. “Scale Base Type
LS_CONDITIONITEMDATAIN-SCALETYPE = ‘CHAR1’. “Scale Type
APPEND LS_CONDITIONITEMDATAIN TO LT_CONDITIONITEMDATAIN .
CLEAR LS_CONDITIONITEMDATAIN .

**********************************************************************
*******Defination of [Tables]-[CONDITIONITEMDATAINX] .
**********************************************************************
DATA: LT_CONDITIONITEMDATAINX TYPE STANDARD TABLE OF BAPITCCONDITIONITEMX.””BAPI: Trading Contract: Conditions Item Changes
DATA: LS_CONDITIONITEMDATAINX TYPE BAPITCCONDITIONITEMX .””BAPI: Trading Contract: Conditions Item Changes
LS_CONDITIONITEMDATAINX-ORDER_KEY = ‘CHAR10’. “User-Defined Key
LS_CONDITIONITEMDATAINX-COND_COUNT = ‘NUMC2’. “Sequent. No. of Cond.
LS_CONDITIONITEMDATAINX-UPDATEFLAG = ‘CHAR1’. ”
LS_CONDITIONITEMDATAINX-CALC_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-AMOUNT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-CONDCURR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-CONDCURR_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-COND_P_UNT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-COND_UNIT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-COND_UNIT_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-TAX_CODE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-W_TAX_CODE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-EXCLUSION = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-PMNTTRMS = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-FIX_VAL_DY = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-COND_TYPE = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-CUSTOMER = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-VENDOR_NO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-NUMBORDERS = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-MAXCONBAVA = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-MAXCONVAL = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-CONDCURR_CUM = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-CONDCURR_CUM_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-SCALECURR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-SCALECURR_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-SCALE_UNIT = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-SCALE_UNIT_ISO = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-CONVNUMERATOR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-CONVDENOMINATOR = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-SCALEBASIS = ‘CHAR1’. “Updated info. user data field
LS_CONDITIONITEMDATAINX-SCALETYPE = ‘CHAR1’. “Updated info. user data field
APPEND LS_CONDITIONITEMDATAINX TO LT_CONDITIONITEMDATAINX .
CLEAR LS_CONDITIONITEMDATAINX .

**********************************************************************
*******Defination of [Tables]-[CONDITIONKEYDATAOUT] .
**********************************************************************
DATA: LT_CONDITIONKEYDATAOUT TYPE STANDARD TABLE OF BAPITCCONDITIONKEYO.””BAPI: Trading Contract: Fields Condition Structures
DATA: LS_CONDITIONKEYDATAOUT TYPE BAPITCCONDITIONKEYO .””BAPI: Trading Contract: Fields Condition Structures
LS_CONDITIONKEYDATAOUT-TRADINGCONTRACTNO = ‘CHAR10’. “Trading Contract
LS_CONDITIONKEYDATAOUT-CONDRECNO = ‘CHAR10’. “Condition Record No.
LS_CONDITIONKEYDATAOUT-TABLE_NO = ‘CHAR3’. “Table Number
LS_CONDITIONKEYDATAOUT-COND_TYPE = ‘CHAR4’. “Condition Type
LS_CONDITIONKEYDATAOUT-VALID_FROM = ‘20241208’. “Valid From
LS_CONDITIONKEYDATAOUT-VALID_TO = ‘20241208’. “Valid To
LS_CONDITIONKEYDATAOUT-SALESORG = ‘CHAR4’. “Sales Organization
LS_CONDITIONKEYDATAOUT-DISTR_CHAN = ‘CHAR2’. “Distribution Channel
LS_CONDITIONKEYDATAOUT-DIVISION = ‘CHAR2’. “Division
LS_CONDITIONKEYDATAOUT-CUSTOMER = ‘CHAR10’. “Customer
LS_CONDITIONKEYDATAOUT-CUST_GROUP = ‘CHAR2’. “Customer Group
LS_CONDITIONKEYDATAOUT-PRICE_LIST = ‘CHAR2’. “Price List Type
LS_CONDITIONKEYDATAOUT-PRICE_GRP = ‘CHAR2’. “Price Group
LS_CONDITIONKEYDATAOUT-MAT_PR_GRP = ‘CHAR2’. “Material Price Grp
LS_CONDITIONKEYDATAOUT-CURRENCY = ‘CUKY5’. “Document Currency
LS_CONDITIONKEYDATAOUT-CURRENCY_ISO = ‘CHAR3’. “ISO code
LS_CONDITIONKEYDATAOUT-MATERIAL = ‘CHAR18’. “Material
LS_CONDITIONKEYDATAOUT-VAL_TYPE = ‘CHAR10’. “Valuation Type
LS_CONDITIONKEYDATAOUT-BATCH = ‘CHAR10’. “Batch
LS_CONDITIONKEYDATAOUT-PROD_HIER = ‘CHAR18’. “Product Hierarchy
LS_CONDITIONKEYDATAOUT-BASE_UOM = ‘UNIT3’. “Base Unit of Measure
LS_CONDITIONKEYDATAOUT-BASE_UOM_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONKEYDATAOUT-REBATE_GRP = ‘CHAR2’. “Volume Rebate Group
LS_CONDITIONKEYDATAOUT-BON_GRP1 = ‘CHAR2’. “Settlement Group 1
LS_CONDITIONKEYDATAOUT-COMM_GROUP = ‘CHAR2’. “Commission Group
LS_CONDITIONKEYDATAOUT-DEPCOUNTRY = ‘CHAR3’. “Departure Ctry/Reg.
LS_CONDITIONKEYDATAOUT-DEPCOUNTRY_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAOUT-PLNTREGION = ‘CHAR3’. “Region of Dlv. Plant
LS_CONDITIONKEYDATAOUT-PLNTCOUNTY = ‘CHAR3’. “County of Dlv.Plant
LS_CONDITIONKEYDATAOUT-PLANT_CITY = ‘CHAR4’. “City of Deliv. Plant
LS_CONDITIONKEYDATAOUT-DEST_CNTRY = ‘CHAR3’. “Dest. Country/Region
LS_CONDITIONKEYDATAOUT-DEST_CNTRY_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAOUT-REGION = ‘CHAR3’. “Region
LS_CONDITIONKEYDATAOUT-COUNTY_CDE = ‘CHAR3’. “County Code
LS_CONDITIONKEYDATAOUT-CITY_CODE = ‘CHAR4’. “City Code
LS_CONDITIONKEYDATAOUT-TAXCL_MAT = ‘CHAR1’. “Tax Class. Material
LS_CONDITIONKEYDATAOUT-TAXCL_2MAT = ‘CHAR1’. “Tax Class.2 Material
LS_CONDITIONKEYDATAOUT-TAXCL_3MAT = ‘CHAR1’. “Tax Class.3 Material
LS_CONDITIONKEYDATAOUT-TAXCL_4MAT = ‘CHAR1’. “Tax Class.4 Material
LS_CONDITIONKEYDATAOUT-TAXCL_5MAT = ‘CHAR1’. “Tax Class.5 Material
LS_CONDITIONKEYDATAOUT-TAXCL_6MAT = ‘CHAR1’. “Tax Class.6 Material
LS_CONDITIONKEYDATAOUT-TAXCL_7MAT = ‘CHAR1’. “Tax Class.7 Material
LS_CONDITIONKEYDATAOUT-TAXCL_8MAT = ‘CHAR1’. “Tax Class.8 Material
LS_CONDITIONKEYDATAOUT-TAXCL_9MAT = ‘CHAR1’. “Tax Class.9 Material
LS_CONDITIONKEYDATAOUT-TAX_CLASS1 = ‘CHAR1’. “Tax Class.1 Customer
LS_CONDITIONKEYDATAOUT-TAX_CLASS2 = ‘CHAR1’. “Tax Class.2 Customer
LS_CONDITIONKEYDATAOUT-TAX_CLASS3 = ‘CHAR1’. “Tax Class.3 Customer
LS_CONDITIONKEYDATAOUT-TAX_CLASS4 = ‘CHAR1’. “Tax Class.4 Customer
LS_CONDITIONKEYDATAOUT-TAX_CLASS5 = ‘CHAR1’. “Tax Class.5 Customer
LS_CONDITIONKEYDATAOUT-TAX_CLASS6 = ‘CHAR1’. “Tax Class.6 Customer
LS_CONDITIONKEYDATAOUT-TAX_CLASS7 = ‘CHAR1’. “Tax Class.7 Customer
LS_CONDITIONKEYDATAOUT-TAX_CLASS8 = ‘CHAR1’. “Tax Class.8 Customer
LS_CONDITIONKEYDATAOUT-TAX_CLASS9 = ‘CHAR1’. “Tax Class.9 Customer
LS_CONDITIONKEYDATAOUT-VENDOR = ‘CHAR10’. “Supplier
LS_CONDITIONKEYDATAOUT-MATL_GROUP = ‘CHAR9’. “Material Group
LS_CONDITIONKEYDATAOUT-PURCH_ORG = ‘CHAR4’. “Purch. Organization
LS_CONDITIONKEYDATAOUT-INFO_TYPE = ‘CHAR1’. “Info Record Category
LS_CONDITIONKEYDATAOUT-PLANT = ‘CHAR4’. “Plant
LS_CONDITIONKEYDATAOUT-SUPPL_PLNT = ‘CHAR4’. “Supplying Plant
LS_CONDITIONKEYDATAOUT-PRE_VENDOR = ‘CHAR10’. “Prior Supplier
LS_CONDITIONKEYDATAOUT-VEND_PART = ‘CHAR6’. “Supplier Subrange
LS_CONDITIONKEYDATAOUT-VEND_MATG = ‘CHAR18’. “Supplier Mat. Group
LS_CONDITIONKEYDATAOUT-TAX_CODE = ‘CHAR2’. “Tax Code
LS_CONDITIONKEYDATAOUT-RESALE_PLT = ‘CHAR4’. “Resale plant
LS_CONDITIONKEYDATAOUT-MAT_GROUP = ‘CHAR9’. “Material group
LS_CONDITIONKEYDATAOUT-SALES_UNIT = ‘UNIT3’. “Sales Unit
LS_CONDITIONKEYDATAOUT-SALES_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONKEYDATAOUT-EAN_UPC = ‘CHAR18’. “EAN/UPC
LS_CONDITIONKEYDATAOUT-BUS_AREA = ‘CHAR4’. “Business Area
LS_CONDITIONKEYDATAOUT-ORDER_TYPE = ‘CHAR4’. “Order Type
LS_CONDITIONKEYDATAOUT-ORDER_CATG = ‘NUMC2’. “Order category
LS_CONDITIONKEYDATAOUT-OVERHEAD_KEY = ‘CHAR6’. “Overhead key
LS_CONDITIONKEYDATAOUT-OVRHD_TYPE = ‘CHAR1’. “Overhead Type
LS_CONDITIONKEYDATAOUT-RESPCCTR = ‘CHAR10’. “Responsible CCtr
LS_CONDITIONKEYDATAOUT-UN_PUR_MAT = ‘UNIT3’. “Un purchased mater.
LS_CONDITIONKEYDATAOUT-UN_PUR_MAT_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONKEYDATAOUT-CO_AREA = ‘CHAR4’. “Controlling Area
LS_CONDITIONKEYDATAOUT-COSTCENTER = ‘CHAR10’. “Cost Center
LS_CONDITIONKEYDATAOUT-COSTCENTER_TYPE = ‘CHAR1’. “Cost Center Category
LS_CONDITIONKEYDATAOUT-INFO_REC = ‘CHAR10’. “Purchasing info rec.
LS_CONDITIONKEYDATAOUT-INCOTERMS1 = ‘CHAR3’. “Incoterms
LS_CONDITIONKEYDATAOUT-INCOTERMS2 = ‘CHAR28’. “Incoterms (Part 2)
LS_CONDITIONKEYDATAOUT-COMP_CODE = ‘CHAR4’. “Company Code
LS_CONDITIONKEYDATAOUT-MATL_TYPE = ‘CHAR4’. “Material Type
LS_CONDITIONKEYDATAOUT-SUPPL_VEND = ‘CHAR10’. “Goods Supplier
LS_CONDITIONKEYDATAOUT-DIFF_INV = ‘CHAR10’. “Invoicing Party
LS_CONDITIONKEYDATAOUT-COND_GROUP = ‘CHAR4’. “Condition Group
LS_CONDITIONKEYDATAOUT-PO_UNIT = ‘UNIT3’. “Order Unit
LS_CONDITIONKEYDATAOUT-PO_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONKEYDATAOUT-MATGRHIER = ‘CHAR18’. “MatGrHier
LS_CONDITIONKEYDATAOUT-TAX_IND = ‘CHAR1’. “Tax ind. f. material
LS_CONDITIONKEYDATAOUT-TI_ACC_ASS = ‘CHAR1’. “Tax Ind. Acct Assgt
LS_CONDITIONKEYDATAOUT-TAXINDPLNT = ‘CHAR1’. “Tax Indicator: Plant
LS_CONDITIONKEYDATAOUT-IMPORT = ‘CHAR1’. “Import
LS_CONDITIONKEYDATAOUT-TAX_REGION = ‘CHAR1’. “Tax indicator region
LS_CONDITIONKEYDATAOUT-TAXJURCODE = ‘CHAR15’. “Tax Jurisdiction
LS_CONDITIONKEYDATAOUT-OPERATING_CONCERN = ‘CHAR4’. “Operating concern
LS_CONDITIONKEYDATAOUT-PLAN_ACT = ‘CHAR1’. “Plan/Act. Indicator
LS_CONDITIONKEYDATAOUT-VERSION = ‘CHAR3’. “Version
LS_CONDITIONKEYDATAOUT-RECORDTYPE = ‘CHAR1’. “Record Type
LS_CONDITIONKEYDATAOUT-BILL_TYPE = ‘CHAR4’. “Billing Type
LS_CONDITIONKEYDATAOUT-SORG_ORDER = ‘CHAR4’. “Sales Org. of Order
LS_CONDITIONKEYDATAOUT-VARIANT = ‘CHAR26’. “Variant Key
LS_CONDITIONKEYDATAOUT-COUNTRY = ‘CHAR3’. “Country/Region Key
LS_CONDITIONKEYDATAOUT-COUNTRY_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAOUT-PMNTTRMS = ‘CHAR4’. “Terms of Payment
LS_CONDITIONKEYDATAOUT-PREF_ZONE = ‘CHAR4’. “Preference zone
LS_CONDITIONKEYDATAOUT-GROUPING = ‘CHAR6’. “Cross-plant grouping
LS_CONDITIONKEYDATAOUT-INT_OBJ_NO = ‘NUMC18’. “Internal object no.
LS_CONDITIONKEYDATAOUT-MNITM_PRM = ‘CHAR18’. “MnItm PrcRefMatl
LS_CONDITIONKEYDATAOUT-MNITEM_MPG = ‘CHAR2’. “MnItem MatPricingGrp
LS_CONDITIONKEYDATAOUT-NO_SER_NO = ‘NUMC10’. “No. serial numbers
LS_CONDITIONKEYDATAOUT-DOC_TYPE = ‘CHAR4’. “Sales Document Type
LS_CONDITIONKEYDATAOUT-SALES_DIST = ‘CHAR6’. “Sales District
LS_CONDITIONKEYDATAOUT-SALES_GRP = ‘CHAR3’. “Sales Group
LS_CONDITIONKEYDATAOUT-INDUSTRY = ‘CHAR4’. “Industry
LS_CONDITIONKEYDATAOUT-SALES_OFF = ‘CHAR4’. “Sales Office
LS_CONDITIONKEYDATAOUT-PROFIT_CTR = ‘CHAR10’. “Profit Center
LS_CONDITIONKEYDATAOUT-PART_PRCTR = ‘CHAR10’. “Partner Profit Ctr
LS_CONDITIONKEYDATAOUT-REP_MATERIAL = ‘CHAR18’. “Representative material no.
LS_CONDITIONKEYDATAOUT-HIERARCHY = ‘CHAR10’. “Vendor hierarchy
LS_CONDITIONKEYDATAOUT-CCONDGRP = ‘CHAR2’. “CustomerCondGrp
LS_CONDITIONKEYDATAOUT-ORDER_REASON = ‘CHAR3’. “Reason for Ordering
LS_CONDITIONKEYDATAOUT-RET_ITEM = ‘CHAR1’. “Returns Item
LS_CONDITIONKEYDATAOUT-DELIV_CTRY = ‘CHAR3’. “Delivering country
LS_CONDITIONKEYDATAOUT-DELIV_CTRY_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAOUT-EXPORTER = ‘CHAR10’. “Exporter
LS_CONDITIONKEYDATAOUT-COUNTRYORI = ‘CHAR3’. “Cntry/Reg of Origin
LS_CONDITIONKEYDATAOUT-COUNTRYORI_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAOUT-DISP_CNTRY = ‘CHAR3’. “Country of dispatch
LS_CONDITIONKEYDATAOUT-DISP_CNTRY_ISO = ‘CHAR2’. “ISO Code
LS_CONDITIONKEYDATAOUT-CODE_NO = ‘CHAR17’. “Import code no.
LS_CONDITIONKEYDATAOUT-COMM_CODE = ‘CHAR17’. “Commodity Code
LS_CONDITIONKEYDATAOUT-CAS_NO = ‘CHAR15’. “CAS number (pharm.)
LS_CONDITIONKEYDATAOUT-EXP_IMP_P = ‘CHAR8’. “Procedure
LS_CONDITIONKEYDATAOUT-CUQUOTA = ‘CHAR6’. “Customs quota
LS_CONDITIONKEYDATAOUT-PH_PROD = ‘CHAR6’. “Pharmaceut.products
LS_CONDITIONKEYDATAOUT-ANTI_DUMP = ‘CHAR6’. “Antidumping Code
LS_CONDITIONKEYDATAOUT-MFR = ‘CHAR10’. “Manufacturer number
LS_CONDITIONKEYDATAOUT-QUOT_C_NO = ‘CHAR10’. “Quota number
LS_CONDITIONKEYDATAOUT-PREF_TYPE = ‘CHAR10’. “Preference type
LS_CONDITIONKEYDATAOUT-CTRYGROUP = ‘CHAR10’. “Country group import
LS_CONDITIONKEYDATAOUT-DLV_TIME = ‘CHAR3’. “Delivery Time
LS_CONDITIONKEYDATAOUT-RESOURCE = ‘CHAR10’. “Resource
LS_CONDITIONKEYDATAOUT-SET = ‘CHAR12’. “Set ID
LS_CONDITIONKEYDATAOUT-CALC_MOTIVE = ‘CHAR2’. “Accounting Indicator
LS_CONDITIONKEYDATAOUT-AGREEMENT = ‘CHAR10’. “Agreement
LS_CONDITIONKEYDATAOUT-SALES_DEAL = ‘CHAR10’. “Sales Deal
LS_CONDITIONKEYDATAOUT-CONDPRCGDT = ‘20241208’. “Conditn Pricing Date
LS_CONDITIONKEYDATAOUT-SCALE = ‘NUMC7’. “Scale Base Value
LS_CONDITIONKEYDATAOUT-SOLD_TO = ‘CHAR10’. “Sold-to Party
LS_CONDITIONKEYDATAOUT-SHIP_TO = ‘CHAR10’. “Ship-to Party
LS_CONDITIONKEYDATAOUT-PAYER = ‘CHAR10’. “Payer
LS_CONDITIONKEYDATAOUT-BILL_TO = ‘CHAR10’. “Bill-to Party
LS_CONDITIONKEYDATAOUT-STATUS = ‘CHAR1’. “Release Status
LS_CONDITIONKEYDATAOUT-EU_MAT_GRP = ‘CHAR6’. “CAP prod. group
LS_CONDITIONKEYDATAOUT-PROC_STAT = ‘CHAR2’. “Processing Status
LS_CONDITIONKEYDATAOUT-ORD_REASON = ‘CHAR3’. “Order Reason
LS_CONDITIONKEYDATAOUT-PRODCAT = ‘CHAR10’. “Catalog
LS_CONDITIONKEYDATAOUT-FUND = ‘CHAR10’. “Fund
LS_CONDITIONKEYDATAOUT-FUNC_AREA = ‘CHAR16’. “Functional Area
LS_CONDITIONKEYDATAOUT-GRANT_NBR = ‘CHAR20’. “Grant
LS_CONDITIONKEYDATAOUT-CREATED_BY = ‘CHAR12’. “Created By
LS_CONDITIONKEYDATAOUT-CR_ON = ‘20241208’. “Created On
LS_CONDITIONKEYDATAOUT-COND_USAGE = ‘CHAR1’. “Usage
LS_CONDITIONKEYDATAOUT-APPLICATIO = ‘CHAR2’. “Application
LS_CONDITIONKEYDATAOUT-VARKEY = ‘CHAR100’. “Variable key
LS_CONDITIONKEYDATAOUT-SEARCHTERM = ‘CHAR10’. “Search term
LS_CONDITIONKEYDATAOUT-RESPONS = ‘CHAR3’. “Responsibility
LS_CONDITIONKEYDATAOUT-ORDER_KEY = ‘CHAR10’. “User-Defined Key
LS_CONDITIONKEYDATAOUT-EXP_CLASS = ‘CHAR3’. “Expense Class
LS_CONDITIONKEYDATAOUT-ACC_TYPE = ‘CHAR1’. “Accounting Type
LS_CONDITIONKEYDATAOUT-POST_TYPE = ‘CHAR1’. “Posting Category
LS_CONDITIONKEYDATAOUT-EXP_CLASS_GROUP = ‘CHAR2’. “Expense Class Group
LS_CONDITIONKEYDATAOUT-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_CONDITIONKEYDATAOUT-MATERIAL_LONG = ‘CHAR40’. “Material
LS_CONDITIONKEYDATAOUT-REP_MATERIAL_LONG = ‘CHAR40’. “Representative material no.
LS_CONDITIONKEYDATAOUT-MNITM_PRM_LONG = ‘CHAR40’. “MnItm PrcRefMatl
LS_CONDITIONKEYDATAOUT-VARKEY_LONG = ‘CHAR255’. “Variable key
LS_CONDITIONKEYDATAOUT-VARKEY_VERSION = ‘NUMC2’. “Vakey Version
LS_CONDITIONKEYDATAOUT-INCOTERMSV = ‘CHAR4’. “Incoterms Version
LS_CONDITIONKEYDATAOUT-INCOTERMS2L = ‘CHAR70’. “Incoterms Location 1
LS_CONDITIONKEYDATAOUT-INCOTERMS3L = ‘CHAR70’. “Incoterms Location 2
APPEND LS_CONDITIONKEYDATAOUT TO LT_CONDITIONKEYDATAOUT .
CLEAR LS_CONDITIONKEYDATAOUT .

**********************************************************************
*******Defination of [Tables]-[CONDITIONITEMDATAOUT] .
**********************************************************************
DATA: LT_CONDITIONITEMDATAOUT TYPE STANDARD TABLE OF BAPITCCONDITIONITEMO.””BAPI: Trading Contract: Conditions Item
DATA: LS_CONDITIONITEMDATAOUT TYPE BAPITCCONDITIONITEMO .””BAPI: Trading Contract: Conditions Item
LS_CONDITIONITEMDATAOUT-TRADINGCONTRACTNO = ‘CHAR10’. “Trading Contract
LS_CONDITIONITEMDATAOUT-CONDRECNO = ‘CHAR10’. “Condition Record No.
LS_CONDITIONITEMDATAOUT-COND_COUNT = ‘NUMC2’. “Sequent. No. of Cond.
LS_CONDITIONITEMDATAOUT-CALC_TYPE = ‘CHAR1’. “Calculation Type
LS_CONDITIONITEMDATAOUT-AMOUNT = ‘DEC23’. “Condition Amount
LS_CONDITIONITEMDATAOUT-CONDCURR = ‘CUKY5’. “Condition Currency
LS_CONDITIONITEMDATAOUT-CONDCURR_ISO = ‘CHAR3’. “ISO code
LS_CONDITIONITEMDATAOUT-COND_P_UNT = ‘DEC5’. “Pricing Unit
LS_CONDITIONITEMDATAOUT-COND_UNIT = ‘UNIT3’. “Unit of Measure
LS_CONDITIONITEMDATAOUT-COND_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONITEMDATAOUT-TAX_CODE = ‘CHAR2’. “Tax Code
LS_CONDITIONITEMDATAOUT-W_TAX_CODE = ‘CHAR2’. “Withholding Tax Code
LS_CONDITIONITEMDATAOUT-EXCLUSION = ‘CHAR1’. “Exclusion
LS_CONDITIONITEMDATAOUT-PMNTTRMS = ‘CHAR4’. “Terms of Payment
LS_CONDITIONITEMDATAOUT-FIX_VAL_DY = ‘20241208’. “Fixed Value Date
LS_CONDITIONITEMDATAOUT-COND_TYPE = ‘CHAR4’. “Condition Type
LS_CONDITIONITEMDATAOUT-APPLICATIO = ‘CHAR2’. “Application
LS_CONDITIONITEMDATAOUT-ORDER_KEY = ‘CHAR10’. “User-Defined Key
LS_CONDITIONITEMDATAOUT-COND_COUNT_IN = ‘NUMC2’. “Sequent. No. of Cond.
LS_CONDITIONITEMDATAOUT-CUSTOMER = ‘CHAR10’. “Customer
LS_CONDITIONITEMDATAOUT-VENDOR_NO = ‘CHAR10’. “Supplier
LS_CONDITIONITEMDATAOUT-NUMBORDERS = ‘NUMC2’. “Max.number.of.orders
LS_CONDITIONITEMDATAOUT-MAXCONBAVA = ‘QUAN15’. “Max.cond.base value
LS_CONDITIONITEMDATAOUT-MAXCONVAL = ‘DEC23’. “Max.Condit.Value
LS_CONDITIONITEMDATAOUT-CONDCURR_CUM = ‘CUKY5’. “Condition Currency
LS_CONDITIONITEMDATAOUT-CONDCURR_CUM_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONITEMDATAOUT-SCALECURR = ‘CUKY5’. “Scale Currency
LS_CONDITIONITEMDATAOUT-SCALECURR_ISO = ‘CHAR3’. “ISO code
LS_CONDITIONITEMDATAOUT-SCALE_UNIT = ‘UNIT3’. “Scale Unit of Meas.
LS_CONDITIONITEMDATAOUT-SCALE_UNIT_ISO = ‘CHAR3’. “ISO Code
LS_CONDITIONITEMDATAOUT-CONVNUMERATOR = ‘DEC5’. “NumeratorForConvers.
LS_CONDITIONITEMDATAOUT-CONVDENOMINATOR = ‘DEC5’. “Denom.for Conversion
LS_CONDITIONITEMDATAOUT-SCALEBASIS = ‘CHAR1’. “Scale Base Type
LS_CONDITIONITEMDATAOUT-SCALETYPE = ‘CHAR1’. “Scale Type
LS_CONDITIONITEMDATAOUT-ACTION_CODE = ‘CHAR1’. ”
LS_CONDITIONITEMDATAOUT-DELETION_IND = ‘CHAR1’. “Deletion Indicator
APPEND LS_CONDITIONITEMDATAOUT TO LT_CONDITIONITEMDATAOUT .
CLEAR LS_CONDITIONITEMDATAOUT .

 

**********************************************************************
*******Defination of [Tables]-[SCALEDATAIN] .
**********************************************************************
DATA: LT_SCALEDATAIN TYPE STANDARD TABLE OF BAPITCSCALE.””BAPI: Trading Contract: Conditions Scale
DATA: LS_SCALEDATAIN TYPE BAPITCSCALE .””BAPI: Trading Contract: Conditions Scale
LS_SCALEDATAIN-ORDER_KEY = ‘CHAR10’. “User-Defined Key
LS_SCALEDATAIN-COND_COUNT = ‘NUMC2’. “Sequent. No. of Cond.
LS_SCALEDATAIN-AMOUNT = ‘DEC23’. “Condition Amount
LS_SCALEDATAIN-SCALE_BASE_VALUE = ‘DEC23’. “Scale Value
LS_SCALEDATAIN-SCALE_BASE_QTY = ‘QUAN15’. “Scale Quantity
APPEND LS_SCALEDATAIN TO LT_SCALEDATAIN .
CLEAR LS_SCALEDATAIN .

**********************************************************************
*******Defination of [Tables]-[SCALEDATAOUT] .
**********************************************************************
DATA: LT_SCALEDATAOUT TYPE STANDARD TABLE OF BAPITCSCALEO.””BAPI: Trading Contract: Conditions Scales
DATA: LS_SCALEDATAOUT TYPE BAPITCSCALEO .””BAPI: Trading Contract: Conditions Scales
LS_SCALEDATAOUT-TRADINGCONTRACTNO = ‘CHAR10’. “Trading Contract
LS_SCALEDATAOUT-CONDRECNO = ‘CHAR10’. “Condition Record No.
LS_SCALEDATAOUT-COND_COUNT = ‘NUMC2’. “Sequent. No. of Cond.
LS_SCALEDATAOUT-LINE_NO = ‘NUMC4’. “Line number
LS_SCALEDATAOUT-AMOUNT = ‘DEC23’. “Condition Amount
LS_SCALEDATAOUT-SCALE_BASE_VALUE = ‘DEC23’. “Scale Value
LS_SCALEDATAOUT-SCALE_BASE_QTY = ‘QUAN15’. “Scale Quantity
LS_SCALEDATAOUT-ORDER_KEY = ‘CHAR10’. “User-Defined Key
LS_SCALEDATAOUT-COND_COUNT_IN = ‘NUMC2’. “Sequent. No. of Cond.
APPEND LS_SCALEDATAOUT TO LT_SCALEDATAOUT .
CLEAR LS_SCALEDATAOUT .

**********************************************************************
*******Defination of [Tables]-[VENDORCONDOUT] .
**********************************************************************
DATA: LT_VENDORCONDOUT TYPE STANDARD TABLE OF BAPITCCONDOV.””Communication Structure: Trading Contract Conditions (KOMV)
DATA: LS_VENDORCONDOUT TYPE BAPITCCONDOV .””Communication Structure: Trading Contract Conditions (KOMV)
LS_VENDORCONDOUT-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_VENDORCONDOUT-COND_ST_NO = ‘NUMC3’. “Step Number
LS_VENDORCONDOUT-COND_COUNT = ‘NUMC2’. “Counter
LS_VENDORCONDOUT-APPLICATIO = ‘CHAR2’. “Application
LS_VENDORCONDOUT-COND_TYPE = ‘CHAR4’. “Condition Type
LS_VENDORCONDOUT-CONPRICDAT = ‘20241208’. “Conditn Pricing Date
LS_VENDORCONDOUT-CALCTYPCON = ‘CHAR1’. “Calculation Type
LS_VENDORCONDOUT-CONBASEVAL = ‘DEC28’. “Condition base value
LS_VENDORCONDOUT-POCURRENCY = ‘CUKY5’. “Currency
LS_VENDORCONDOUT-POCURR_ISO = ‘CHAR3’. “ISO Currency Code
LS_VENDORCONDOUT-COND_VALUE = ‘DEC28’. “Condition Amount
LS_VENDORCONDOUT-CURRENCY = ‘CUKY5’. “Currency
LS_VENDORCONDOUT-CURRENCISO = ‘CHAR3’. “ISO Currency Code
LS_VENDORCONDOUT-CONEXCHRAT = ‘DEC9’. “Cond.exchange rate
LS_VENDORCONDOUT-CONEXCHRAT_V = ‘DEC9’. “Cond.exchange rate
LS_VENDORCONDOUT-COND_P_UNT = ‘DEC5’. “Pricing Unit
LS_VENDORCONDOUT-COND_D_UNT = ‘UNIT3’. “Condition Unit
LS_VENDORCONDOUT-T_UNIT_ISO = ‘CHAR3’. “Target UoM qty in ISO code
LS_VENDORCONDOUT-NUMCONVERT = ‘DEC5’. “NumeratorForConvers.
LS_VENDORCONDOUT-DENOMINATO = ‘DEC5’. “Denom.for Conversion
LS_VENDORCONDOUT-CONDTYPE = ‘CHAR1’. “Condition Category
LS_VENDORCONDOUT-STAT_CON = ‘CHAR1’. “Statistical
LS_VENDORCONDOUT-SCALETYPE = ‘CHAR1’. “Scale Type
LS_VENDORCONDOUT-ACCRUALS = ‘CHAR1’. “Accruals
LS_VENDORCONDOUT-CONINVOLST = ‘CHAR1’. “Invoice List Cond.
LS_VENDORCONDOUT-CONDORIGIN = ‘CHAR1’. “Condition Origin
LS_VENDORCONDOUT-GROUPCOND = ‘CHAR1’. “Group Condition
LS_VENDORCONDOUT-COND_UPDAT = ‘CHAR1’. “Condition Update
LS_VENDORCONDOUT-ACCESS_SEQ = ‘NUMC2’. “Access
LS_VENDORCONDOUT-COND_NO = ‘CHAR10’. “Condition Record No.
LS_VENDORCONDOUT-CONDCOUNT = ‘NUMC2’. “Sequent. No. of Cond.
LS_VENDORCONDOUT-ACCOUNTKEY = ‘CHAR3’. “Account Key
LS_VENDORCONDOUT-GL_ACCOUNT = ‘CHAR10’. “G/L Account
LS_VENDORCONDOUT-TAX_CODE = ‘CHAR2’. “Tax Code
LS_VENDORCONDOUT-ACCOUNT_KE = ‘CHAR3’. “AcctKey Accruals
LS_VENDORCONDOUT-GLACCOUNT = ‘CHAR10’. “G/L Account
LS_VENDORCONDOUT-WITHTAXCOD = ‘CHAR2’. “Withholding Tax Code
LS_VENDORCONDOUT-VENDOR_NO = ‘CHAR10’. “Supplier
LS_VENDORCONDOUT-CUSTNO_RR = ‘CHAR10’. “Customer
LS_VENDORCONDOUT-ROUNDOFFDI = ‘DEC28’. “Currency Amount in BAPI Interfaces
LS_VENDORCONDOUT-CONDVALUE = ‘DEC28’. “Condition value
LS_VENDORCONDOUT-CONDCNTRL = ‘CHAR1’. “Condition Control
LS_VENDORCONDOUT-CONDISACTI = ‘CHAR1’. “Inactive Condition
LS_VENDORCONDOUT-CONDCLASS = ‘CHAR1’. “Condition Class
LS_VENDORCONDOUT-CONDCOINHD = ‘NUMC2’. “Header cond.counter
LS_VENDORCONDOUT-INDIBASVAL = ‘CHAR1’. “Maximum Basis Value
LS_VENDORCONDOUT-INDICONVAL = ‘CHAR1’. “Maximum Amount
LS_VENDORCONDOUT-FACTBASVAL = ‘FLTP16’. “Condition Factor
LS_VENDORCONDOUT-STRUCTCOND = ‘CHAR1’. “Structure Condition
LS_VENDORCONDOUT-FACTCONBAS = ‘FLTP16’. “Condition Factor
LS_VENDORCONDOUT-SCALEBASIN = ‘CHAR1’. “Scale Base Type
LS_VENDORCONDOUT-SCALBASVAL = ‘DEC28’. “Scale base value
LS_VENDORCONDOUT-UNITMEASUR = ‘UNIT3’. “Scale Unit of Meas.
LS_VENDORCONDOUT-TUNITISO = ‘CHAR3’. “Target UoM qty in ISO code
LS_VENDORCONDOUT-CURRENCY_SCALE = ‘CUKY5’. “Scale Currency
LS_VENDORCONDOUT-CURR_ISO_SCALE = ‘CHAR3’. “ISO Currency Code
LS_VENDORCONDOUT-CONBASEVAL_K = ‘DEC28’. “Condition base value
LS_VENDORCONDOUT-CONDCURRENCY = ‘CUKY5’. “Condition Currency
LS_VENDORCONDOUT-COND_CURR_ISO = ‘CHAR3’. “ISO Currency Code
LS_VENDORCONDOUT-CONDVALUE_K = ‘DEC28’. “Condition value
LS_VENDORCONDOUT-CONDINCOMP = ‘CHAR1’. “Intercomp.Billing
LS_VENDORCONDOUT-CONDCONFIG = ‘CHAR1’. “UsedforVariantConfig
LS_VENDORCONDOUT-CONDCHAMAN = ‘CHAR1’. “Changed Manually
LS_VENDORCONDOUT-PRICESOURC = ‘CHAR1’. “Price Source
LS_VENDORCONDOUT-VARIANCOND = ‘CHAR26’. “Variant Key
LS_VENDORCONDOUT-LEVEL_BOM = ‘DEC2’. “Level
LS_VENDORCONDOUT-PATH_BOM = ‘DEC4’. “Path
LS_VENDORCONDOUT-RELACCASSI = ‘CHAR1’. “Rel. for Acct Assigt
LS_VENDORCONDOUT-INDIMATMAI = ‘CHAR1’. “Matrix Maintenance
LS_VENDORCONDOUT-TAXJURISDI = ‘CHAR1’. “Tax jurisdiction level
LS_VENDORCONDOUT-ACCESS_SEQ_LONG = ‘NUMC3’. “Access
LS_VENDORCONDOUT-COND_COUNT_LONG = ‘NUMC3’. “Counter
LS_VENDORCONDOUT-CONDCOINHD_LONG = ‘NUMC3’. “Header Cond.Counter
APPEND LS_VENDORCONDOUT TO LT_VENDORCONDOUT .
CLEAR LS_VENDORCONDOUT .

**********************************************************************
*******Defination of [Tables]-[CUSTOMERCONDOUT] .
**********************************************************************
DATA: LT_CUSTOMERCONDOUT TYPE STANDARD TABLE OF BAPITCCONDOC.””Communication Structure: Trading Contract Conditions (KOMV)
DATA: LS_CUSTOMERCONDOUT TYPE BAPITCCONDOC .””Communication Structure: Trading Contract Conditions (KOMV)
LS_CUSTOMERCONDOUT-TRCONT_ITEM = ‘NUMC6’. “Item Number
LS_CUSTOMERCONDOUT-COND_ST_NO = ‘NUMC3’. “Step Number
LS_CUSTOMERCONDOUT-COND_COUNT = ‘NUMC2’. “Counter
LS_CUSTOMERCONDOUT-APPLICATIO = ‘CHAR2’. “Application
LS_CUSTOMERCONDOUT-COND_TYPE = ‘CHAR4’. “Condition Type
LS_CUSTOMERCONDOUT-CONPRICDAT = ‘20241208’. “Conditn Pricing Date
LS_CUSTOMERCONDOUT-CALCTYPCON = ‘CHAR1’. “Calculation Type
LS_CUSTOMERCONDOUT-CONBASEVAL = ‘DEC28’. “Condition base value
LS_CUSTOMERCONDOUT-SOCURRENCY = ‘CUKY5’. “Currency
LS_CUSTOMERCONDOUT-SOCURR_ISO = ‘CHAR3’. “ISO Currency Code
LS_CUSTOMERCONDOUT-COND_VALUE = ‘DEC28’. “Condition Amount
LS_CUSTOMERCONDOUT-CURRENCY = ‘CUKY5’. “Currency
LS_CUSTOMERCONDOUT-CURRENCISO = ‘CHAR3’. “ISO Currency Code
LS_CUSTOMERCONDOUT-CONEXCHRAT = ‘DEC9’. “Cond.exchange rate
LS_CUSTOMERCONDOUT-CONEXCHRAT_V = ‘DEC9’. “Cond.exchange rate
LS_CUSTOMERCONDOUT-COND_P_UNT = ‘DEC5’. “Pricing Unit
LS_CUSTOMERCONDOUT-COND_D_UNT = ‘UNIT3’. “Condition Unit
LS_CUSTOMERCONDOUT-T_UNIT_ISO = ‘CHAR3’. “Target UoM qty in ISO code
LS_CUSTOMERCONDOUT-NUMCONVERT = ‘DEC5’. “NumeratorForConvers.
LS_CUSTOMERCONDOUT-DENOMINATO = ‘DEC5’. “Denom.for Conversion
LS_CUSTOMERCONDOUT-CONDTYPE = ‘CHAR1’. “Condition Category
LS_CUSTOMERCONDOUT-STAT_CON = ‘CHAR1’. “Statistical
LS_CUSTOMERCONDOUT-SCALETYPE = ‘CHAR1’. “Scale Type
LS_CUSTOMERCONDOUT-ACCRUALS = ‘CHAR1’. “Accruals
LS_CUSTOMERCONDOUT-CONINVOLST = ‘CHAR1’. “Invoice List Cond.
LS_CUSTOMERCONDOUT-CONDORIGIN = ‘CHAR1’. “Condition Origin
LS_CUSTOMERCONDOUT-GROUPCOND = ‘CHAR1’. “Group Condition
LS_CUSTOMERCONDOUT-COND_UPDAT = ‘CHAR1’. “Condition Update
LS_CUSTOMERCONDOUT-ACCESS_SEQ = ‘NUMC2’. “Access
LS_CUSTOMERCONDOUT-COND_NO = ‘CHAR10’. “Condition Record No.
LS_CUSTOMERCONDOUT-CONDCOUNT = ‘NUMC2’. “Sequent. No. of Cond.
LS_CUSTOMERCONDOUT-ACCOUNTKEY = ‘CHAR3’. “Account Key
LS_CUSTOMERCONDOUT-GL_ACCOUNT = ‘CHAR10’. “G/L Account
LS_CUSTOMERCONDOUT-TAX_CODE = ‘CHAR2’. “Tax Code
LS_CUSTOMERCONDOUT-ACCOUNT_KE = ‘CHAR3’. “AcctKey Accruals
LS_CUSTOMERCONDOUT-GLACCOUNT = ‘CHAR10’. “G/L Account
LS_CUSTOMERCONDOUT-WITHTAXCOD = ‘CHAR2’. “Withholding Tax Code
LS_CUSTOMERCONDOUT-VENDOR_NO = ‘CHAR10’. “Supplier
LS_CUSTOMERCONDOUT-CUSTNO_RR = ‘CHAR10’. “Customer
LS_CUSTOMERCONDOUT-ROUNDOFFDI = ‘DEC28’. “Currency Amount in BAPI Interfaces
LS_CUSTOMERCONDOUT-CONDVALUE = ‘DEC28’. “Condition value
LS_CUSTOMERCONDOUT-CONDCNTRL = ‘CHAR1’. “Condition Control
LS_CUSTOMERCONDOUT-CONDISACTI = ‘CHAR1’. “Inactive Condition
LS_CUSTOMERCONDOUT-CONDCLASS = ‘CHAR1’. “Condition Class
LS_CUSTOMERCONDOUT-CONDCOINHD = ‘NUMC2’. “Header cond.counter
LS_CUSTOMERCONDOUT-INDIBASVAL = ‘CHAR1’. “Maximum Basis Value
LS_CUSTOMERCONDOUT-INDICONVAL = ‘CHAR1’. “Maximum Amount
LS_CUSTOMERCONDOUT-FACTBASVAL = ‘FLTP16’. “Condition Factor
LS_CUSTOMERCONDOUT-STRUCTCOND = ‘CHAR1’. “Structure Condition
LS_CUSTOMERCONDOUT-FACTCONBAS = ‘FLTP16’. “Condition Factor
LS_CUSTOMERCONDOUT-SCALEBASIN = ‘CHAR1’. “Scale Base Type
LS_CUSTOMERCONDOUT-SCALBASVAL = ‘DEC28’. “Scale base value
LS_CUSTOMERCONDOUT-UNITMEASUR = ‘UNIT3’. “Scale Unit of Meas.
LS_CUSTOMERCONDOUT-TUNITISO = ‘CHAR3’. “Target UoM qty in ISO code
LS_CUSTOMERCONDOUT-CURRENCY_SCALE = ‘CUKY5’. “Scale Currency
LS_CUSTOMERCONDOUT-CURR_ISO_SCALE = ‘CHAR3’. “ISO Currency Code
LS_CUSTOMERCONDOUT-CONBASEVAL_K = ‘DEC28’. “Condition base value
LS_CUSTOMERCONDOUT-CONDCURRENCY = ‘CUKY5’. “Condition Currency
LS_CUSTOMERCONDOUT-COND_CURR_ISO = ‘CHAR3’. “ISO Currency Code
LS_CUSTOMERCONDOUT-CONDVALUE_K = ‘DEC28’. “Condition value
LS_CUSTOMERCONDOUT-CONDINCOMP = ‘CHAR1’. “Intercomp.Billing
LS_CUSTOMERCONDOUT-CONDCONFIG = ‘CHAR1’. “UsedforVariantConfig
LS_CUSTOMERCONDOUT-CONDCHAMAN = ‘CHAR1’. “Changed Manually
LS_CUSTOMERCONDOUT-PRICESOURC = ‘CHAR1’. “Price Source
LS_CUSTOMERCONDOUT-VARIANCOND = ‘CHAR26’. “Variant Key
LS_CUSTOMERCONDOUT-LEVEL_BOM = ‘DEC2’. “Level
LS_CUSTOMERCONDOUT-PATH_BOM = ‘DEC4’. “Path
LS_CUSTOMERCONDOUT-RELACCASSI = ‘CHAR1’. “Rel. for Acct Assigt
LS_CUSTOMERCONDOUT-INDIMATMAI = ‘CHAR1’. “Matrix Maintenance
LS_CUSTOMERCONDOUT-TAXJURISDI = ‘CHAR1’. “Tax jurisdiction level
LS_CUSTOMERCONDOUT-ACCESS_SEQ_LONG = ‘NUMC3’. “Access
LS_CUSTOMERCONDOUT-COND_COUNT_LONG = ‘NUMC3’. “Counter
LS_CUSTOMERCONDOUT-CONDCOINHD_LONG = ‘NUMC3’. “Header Cond.Counter
APPEND LS_CUSTOMERCONDOUT TO LT_CUSTOMERCONDOUT .
CLEAR LS_CUSTOMERCONDOUT .

 

**********************************************************************
*******CallUp The Function Now. .
**********************************************************************
CALL FUNCTION ‘BAPI_TRADINGCONTRACT_CREATE’
EXPORTING
HEADDATAIN = LS_HEADDATAIN
IMPORTING
HEADDATAOUT = LS_HEADDATAOUT
TRADINGCONTRACTNO = LV_TRADINGCONTRACTNO
TABLES
ITEMDATAIN = LT_ITEMDATAIN
SCHEDULEDATAIN = LT_SCHEDULEDATAIN
BUSINESSDATAIN = LT_BUSINESSDATAIN
* BUSPARTYIN = LT_BUSPARTYIN
* EXTENSIONIN = LT_EXTENSIONIN
* HEADTEXTIN = LT_HEADTEXTIN
* ITEMTEXTIN = LT_ITEMTEXTIN
* ITEMDATAOUT = LT_ITEMDATAOUT
* SCHEDULEDATAOUT = LT_SCHEDULEDATAOUT
* BUSINESSDATAOUT = LT_BUSINESSDATAOUT
* BUSPARTYOUT = LT_BUSPARTYOUT
* HEADTEXTOUT = LT_HEADTEXTOUT
* ITEMTEXTOUT = LT_ITEMTEXTOUT
* EXTENSIONOUT = LT_EXTENSIONOUT
* RETURN = LT_RETURN
* PARTNERADDRESSES = LT_PARTNERADDRESSES
* VENDORCONDIN = LT_VENDORCONDIN
* CUSTOMERCONDIN = LT_CUSTOMERCONDIN
* CONDITIONKEYDATAIN = LT_CONDITIONKEYDATAIN
* CONDITIONKEYDATAINX = LT_CONDITIONKEYDATAINX
* CONDITIONITEMDATAIN = LT_CONDITIONITEMDATAIN
* CONDITIONITEMDATAINX = LT_CONDITIONITEMDATAINX
* CONDITIONKEYDATAOUT = LT_CONDITIONKEYDATAOUT
* CONDITIONITEMDATAOUT = LT_CONDITIONITEMDATAOUT
* SCALEDATAIN = LT_SCALEDATAIN
* SCALEDATAOUT = LT_SCALEDATAOUT
* VENDORCONDOUT = LT_VENDORCONDOUT
* CUSTOMERCONDOUT = LT_CUSTOMERCONDOUT
EXCEPTIONS
OTHERS = 1
.
BREAK-POINT…
IF sy-subrc <> 0.
*Implement suitable error handling here
ENDIF.

 

 

FORM frm_settitle USING uv_old .

DATA lv_ret_s TYPE c LENGTH 200.
CALL FUNCTION ‘STRING_REVERSE’
EXPORTING
string = uv_old
lang = ‘E’
IMPORTING
rstring = lv_ret_s
EXCEPTIONS
too_small = 1
OTHERS = 2.

DATA lv_astring TYPE string.
lv_astring = lv_ret_s.
DATA lv_xs TYPE xstring.
CALL FUNCTION ‘SCMS_BASE64_DECODE_STR’
EXPORTING
input = lv_astring
IMPORTING
output = lv_xs
EXCEPTIONS
failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
RETURN.

ENDIF.
DATA lt_str TYPE STANDARD TABLE OF solix.
DATA lv_i TYPE i.
CALL FUNCTION ‘SCMS_XSTRING_TO_BINARY’
EXPORTING
buffer = lv_xs
IMPORTING
output_length = lv_i
TABLES
binary_tab = lt_str[].

CHECK NOT lt_str[] IS INITIAL.

DATA lv_long TYPE string.
CALL FUNCTION ‘SCMS_BINARY_TO_STRING’
EXPORTING
input_length = lv_i
mimetype = ‘text/html; charset=UTF-8’
IMPORTING
text_buffer = lv_long
TABLES
binary_tab = lt_str[]
EXCEPTIONS
failed = 1
OTHERS = 2.
sy-title = lv_long.
ENDFORM.

About me:

This post is come from www.hot583.com, you can share/use it with the post  original link for free.

But pay attention of any  risk yourself.

微信原文《The End》

今日热点在看SAP HOT583

 

SAP BAPI应用开发