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

how to save text

Former Member
0 Likes
1,173

Hi All,

i want to create a delivery order (vl01n) through bdc with text like truck number,transport number.how can i insert text to these field .

Hi All,

i want to create a delivery order (vl01n) through bdc with text like truck number,transport number.how can i insert text to these field .

6 REPLIES 6
Read only

Former Member
0 Likes
1,119

after creating delivery from BDC.

you can use function module

SAVE_TEXT

SAPscript: Save text

The function module writes a text module to the text file or text memory, depending on the specific text object.

The module can be used to change existing texts and to create new texts. If it is clear that it is a new text, this can be specified via the parameter INSERT. The result is better performance as a test read is not performed.

CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
        header = text_header
      TABLES
        lines  = text_lines.
  ENDIF.

CALL FUNCTION 'COMMIT_TEXT'."after save_text it is mandatory for commit work

Amit.

Read only

Former Member
0 Likes
1,119

Hi Madhavi,

Use the function module SAVE_TEXT.

Check this thread for sample code:

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
1,119

hi,

what are the input parameters to be given to save_text function.

Read only

Former Member
0 Likes
1,119

Hi,

if you did recording for Tcode VL01 n, then your client team wont accept that.

First check out , you cannot Record VL01n t code, as i t is enjoy Transaction. You hav to go for BAPI.

Revrt back,

regards,

Naveen

Read only

Former Member
0 Likes
1,119
Read only

Former Member
0 Likes
1,119

Hi All,

can u please tell me the BAPI that can be used to create delivery order with text fields(like truck no ...).