03-19-2013 9:49 AM
Dear All,
I'm creating sales order through -- /AFS/BAPI_SALESORD_CREATEFDATA -- BAPI , but i'm not able find the field business header data. Actually while creating manually i'm able to enter the data but through BAPI not able to find through which field i've to pass the data. I tried to pass the data through "ORDER_HEADER_IN" table but its not appearing..
Please find the attachment.
kindly help me..
Regards,
Krishna
03-19-2013 10:10 AM
Hi Krishna,
Use BAPI 'BAPI_SALESORDER_CREATEFROMDAT1' for creation of sales order where u can pass all header values for creation of SO. For more details check in SE37 for the BAPI FM.
Regards,
Amol P
03-19-2013 10:24 AM
Hi Amol ,
that BAPI contains Sales header & item data, but actually what i require is in VA01 screen Business data / Texts here i want to pass the data. for these pls guide the path..
Rgds,
Krishna
03-19-2013 10:20 AM
Hello,
Lots of threads available for this . Please search before posting.
Thanks,
Abhijit
03-19-2013 10:30 AM
Dear Abhijit,
i didn't find any thread for this bapi-/AFS/BAPI_SALESORD_CREATEFDATA , through this bapi we can pass the data byusing the "ORDER_HEADER_IN" this table only , here i'm passing the data its not appearing.
can you having any related to this post pls share the links..
Regards,
Krishna
03-19-2013 11:20 AM
Hello Krishna, the Business data you are looking for is in ORDER_ITEMS_OUT table. Check it.
03-19-2013 11:47 AM
Hello Krishna,
I'm sorry.. I have not see the AFS part otherwise you should have BAPI_SALESORDER_CREATEFROMDAT2.
Thanks,
Abhijit
03-19-2013 1:00 PM
Hi Sumanth,
like that table(ORDER_ITEMS_OUT) is not present in that bapi..
Rgds,
krishna
03-19-2013 11:11 AM
Hello Krishna,
I am not sure I understood you problem, but when using /AFS/BAPI_SALESORD_CREATEFDATA you should;
As far as you put this data the bapi works fine.
Let us know if this helps solve your problem!
07-16-2013 5:54 AM
hi krishna,
i saw your dicussion's for '/AFS/BAPI_SALESORD_CREATEFDATA',
facing probelm for passing data to bapi,
can u help as this needs to be done in very short span of time.
Thanks & Regards,
Sudheer.M
07-16-2013 11:58 AM
Hi Sudheer,
TEXT-TEXT_ID = '0001'. " Header Text.
* TEXT-ITM_NUMBER = L_CNTR.
TEXT-LANGU = 'EN'.
TEXT-TEXT_LINE = WA_DATA1-TEXT_LINE."'BAPISDTEXT'.
APPEND TEXT.
CALL FUNCTION '/AFS/BAPI_SALESORD_CREATEFDATA'
EXPORTING
* SALESDOCUMENTIN =
ORDER_HEADER_IN = V_VA01_HEADER
* ORDER_HEADER_INX = ORDER_HEADER_INX
IMPORTING
SALESDOCUMENT = SALESDOCUMENT
TABLES
RETURN = IT_RETURN2
ORDER_ITEMS_IN = IT_VA01_ITEMS
ORDER_ITEMS_INX = ORDER_ITEMS_INX
ORDER_SCHEDULES_IN = IT_VA01_SCHDS
* ORDER_SCHEDULES_INX =
ORDER_PARTNERS = IT_VA01_PARTN
ORDER_CONDITIONS_IN = COND
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
ORDER_CCARD = IT_BAPICCARD[]
ORDER_TEXT = TEXT
* ORDER_KEYS =
EXTENSIONIN = BAPIPAREX
* PARTNERADDRESSES = BAPIADDR1
Pass the order text as a header then you will get the data there.
Thanks & regards,
Krishna
.