Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Upload program for VA01.

Former Member
0 Likes
1,012

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

4 REPLIES 4
Read only

Former Member
0 Likes
734

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

Read only

Former Member
0 Likes
734

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

Read only

Former Member
0 Likes
734

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.

Read only

Former Member
0 Likes
734

Hi Rayblur,

Check these links.

Cheers,

Susmitha.

Dont forget to reward points for useful answers.