‎2006 May 31 2:49 AM
Hi everyone, does anyone have any example of upload program for VA01- Create Sales Order, and anyone able to show how can i use FM: SAVE_TEXT to upload header text and item text into VA01.
Pls help
Thanks
‎2006 May 31 4:42 AM
HI
GOOD
SAVE_TEXT
SAVE_TEXT writes a text module back to the text file or the text memory, depending on the storage mode of the corresponding text object.
You can use this module either to change existing texts or to create new texts. If you know for sure that the text is new, use the parameter INSERT to indicate this. The system then does not have to read the text first, which improves the performance of the function module.
If the lines table passed with the function module is empty, the system deletes the text from the text file.
Function call:
CALL FUNCTION 'SAVE_TEXT'
EXPORTING CLIENT = SY-MANDT
HEADER = ?...
INSERT = SPACE
SAVEMODE_DIRECT = SPACE
OWNER_SPECIFIED = SPACE
IMPORTING FUNCTION =
NEWHEADER =
TABLES LINES = ?...
EXCEPTIONS ID =
LANGUAGE =
NAME =
OBJECT =
http://help.sap.com/saphelp_40b/helpdata/ru/d6/0db8ef494511d182b70000e829fbfe/content.htm
http://help.sap.com/saphelp_40b/helpdata/en/d6/0dc169494511d182b70000e829fbfe/applet.htm
THANKS
MRUTYUN
Message was edited by: Mrutyunjaya Tripathy
‎2006 May 31 4:43 AM
Hi,
You can use the BAPI BAPI_SALESORDER_CREATEFROMDAT2 to upload the sales orders. You will have to read the file and pass the data to the function.
Also, if you want to add texts while creating the texts you can do that using the parameter <b>ORDER_TEXT STRUCTURE BAPISDTEXT OPTIONAL</b>.
If you still want to use SAVE_TEXT, you need to use these parameters
Text Name - Sales Order Number
Language EN
Text ID 0001 Form Header (This changes depending on what text you want to change)
Text object VBBK Sales Header texts
You can find the parameter details by going into the full screen mode of a existing sales order and then im the menu Go To--> Header.
The same thing applies to Item texts as well.
Regards,
Ravi
‎2006 May 31 5:31 AM
Hi !
Ther's a very fine tool in the SAP-System to import sales orders (VA01) into the system.
It's the transaction SXDA (see online docu for this).
You'll have to create a new SXDA "project" using the object type "BUS2032" and the best .... no programming has to be done !!
Regards
Rainer
Some points would be nice if that helped a bit.
‎2006 May 31 7:11 AM