cancel
Showing results for 
Search instead for 
Did you mean: 

IItem texts in VL01N

former_member182371
Active Contributor
0 Kudos
382

Hi,

is there a way by means of a CALL TRANSACTION to add items texts in transaction VL01N?

After doing the recording in SHDB there is now way to insert a text at item level (as far as i know).

Best regards.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182371
Active Contributor
0 Kudos

Hi Ravi,

my problem is that once the delivery is created the program automatically prints a sapscript but without the item texts.

Best regards.

former_member181962
Active Contributor
0 Kudos

Hi,

What you can do is to change the dispatch option for the output type(SAPSCRIPT Priniting), to some other option like send periodically with background job insteda of send immediately at the time of saving, and then submit the program rsnast00 with the object key as the delivery created. This way you can trigger the output after the creation of the texts and not immediately after the save delivery step.

Regards,

Ravi

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can achieve this in two ways.

(1) Using BDC

You can Populate the Item level Text in VL01N by writting the BDC code to sequencially go to the desired text. You have to record this by using the arrow buttons in the text control.

(2) All the texts will be stored in the memory id 'SAPLSTXD'. You have to import the text contents from this memory id.

Best Regards,

Vijay

former_member182371
Active Contributor
0 Kudos

Hi Ravi,

My present flow is as follows:

1.- a delivery is created throuqh VL01N

2.- with this delivery number and item number (e.g. 10)

i use FM SAVE_TEXT.

So when the delivery is created the sapscript does not show the item text and the user has to reprint the sapcript in order to get the item texts.

Now the user wants to obtain the delivery and the item texts when the delivery is printed first.

is there a way to achieve this?

Best regards.

former_member188685
Active Contributor
0 Kudos

hi calsadillo,

once delivery is created with that deleivery and item update the long text using <b>SAVE_TEXT</b> FM.

after call transaction you will check the sy-subrc , if sy-subrc = 0 , you can update the long text.

Regards

vijay

former_member181962
Active Contributor
0 Kudos

Hi Calsadillo,

YOu cannot save item texts or any texts using call transaction method

YOu have to use SAVE_TEXT function module to do the same.

Sample Usage:

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

HEADER = HTHEADER

  • INSERT = 'X'

SAVEMODE_DIRECT = 'X'

IMPORTING

NEWHEADER = HTHEADER

TABLES

LINES = HTLINES.

EXCEPTIONS

ID = 01

LANGUAGE = 02

NAME = 03

OBJECT = 04.

REgards,

Ravi