SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Create inquiry BAPI_INQUIRY_CREATEFROMDATA



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> SD
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Sat Nov 10, 2007 6:49 pm    Post subject: Create inquiry BAPI_INQUIRY_CREATEFROMDATA Reply with quote

Code:
WA_HEADER-DOC_TYPE = 'ZIN'.
WA_HEADER-SALES_ORG = 'A101'.
WA_HEADER-DISTR_CHAN = 'DS'.
WA_HEADER-DIVISION = 'VR'.
WA_HEADER-REQ_DATE_H = ZDATUM.
WA_HEADER-PURCH_DATE = ZDATUM.
WA_HEADER-PRICE_DATE = ZDATUM.

wa_item_in-ITM_NUMBER = 1.
WA_ITEM_IN-PO_ITM_NO = 1.
WA_ITEM_IN-MATERIAL = 'VGPCH12'.
WA_ITEM_IN-BILL_DATE = ZITMDATE.
* wa_item_in-plant = zplant.
WA_ITEM_IN-TARGET_QTY = 200000.
WA_ITEM_IN-TARGET_QU = 'EA'.
WA_ITEM_IN-REQ_QTY = 2000000.
WA_ITEM_IN-SALES_UNIT = 'EA'.
WA_ITEM_IN-ITEM_CATEG = 'TAN'.
WA_ITEM_IN-REQ_DATE = ZITMDATE.

WA_ITEM_IN-COND_TYPE = 'ZD17'.
WA_ITEM_IN-COND_VALUE = '500.00'.
* wa_item_in-cond_p_unt = 2000.
* wa_item_in-cond_d_unt = 'EA'.
WA_ITEM_IN-PURCH_DATE = ZITMDATE.
WA_ITEM_IN-PURCH_NO_S = 'D1200001'.
* wa_item_in-cond_val1 = '200'.
* wa_item_in-currency = 'INR'.
wa_item_in-COND_CURR = 'INR'.
APPEND WA_ITEM_IN.

WA_PARTNERS-PARTN_ROLE = 'AG'.
WA_PARTNERS-PARTN_NUMB = 'A010186'.
APPEND WA_PARTNERS.

*******
CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA'
EXPORTING
ORDER_HEADER_IN = WA_HEADER
IMPORTING
SALESDOCUMENT = ZSALESDOCUMENT
SOLD_TO_PARTY = ZSOLD_TO_PARTY
SHIP_TO_PARTY = ZSHIP_TO_PARTY
BILLING_PARTY = ZBILLING_PARTY
RETURN = ZRETURN
TABLES
ORDER_ITEMS_IN = WA_ITEM_IN
ORDER_PARTNERS = WA_PARTNERS
ORDER_ITEMS_OUT = ZORDER_ITEMS_OUT
ORDER_CFGS_REF = ORDER_CFGS_REF
ORDER_CFGS_INST = ORDER_CFGS_INST
ORDER_CFGS_PART_OF = ORDER_CFGS_PART_OF
ORDER_CFGS_VALUE = ORDER_CFGS_VALUE
EXCEPTIONS
OTHERS = 1.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> SD All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.