‎2007 Dec 06 11:36 AM
Hi All,
I've recorded VA01 transaction through SHDB to create sales order and
I've input fields in second screen
sold to party
ship to party
po number
material number
quantity
item text.
First 5 fields are Ok..but in recording item text is not recording..
to enter item text I've followed these steps VA01.
goto ---> Item --> texts . here I entered item text and saved
But in recording I can't see this text value..
Any suggestions please.....
‎2007 Dec 06 11:45 AM
Hi!
Goto ---> Item --> texts. Here you can see a button below the text field, called Details.
Click on it, it will call the text editor.
Here you can enter your text and it will apeear in the recording also.
Regards
Tamá
‎2007 Dec 06 11:45 AM
Hi!
Goto ---> Item --> texts. Here you can see a button below the text field, called Details.
Click on it, it will call the text editor.
Here you can enter your text and it will apeear in the recording also.
Regards
Tamá
‎2007 Dec 06 11:53 AM
‎2007 Dec 06 12:16 PM
Text cannot be uploaded through nornal BDC recording.
Steps to upload text:
- Upload the data using BDC recording except text.
- Using BDCMSGCOLL capture the document number created
- Form the object ID with the document number and item numbers.
- Call FM CREATE_TEXT and pass the object ID and corresponding text to the FM
Sample Code
*Populating table for Create_Text with the values from input table and message tab(BDCMSGCOLL)
============================================================
loop at int_itab where kunnr = int_itab-kunnr.
read table messtab with key msgnr = '311'.
int_itab2-kunnr = int_itab-kunnr.
int_itab2-text = int_itab-text.
int_itab2-posnr = int_itab-posnr.
int_itab2-msgv2 = messtab-msgv2.
append int_itab2.
endloop.
Save Text using CREATE_TEXT
=========================
form save_text .
loop at int_itab2.
t_lines-tdline = int_itab2-text.
t_lines-tdformat = '*'.
append t_lines.
fid = 'ZI06'.
fobject = 'VBBP'.
flanguage = sy-langu.
if int_itab2-posnr lt 100.
concatenate '00' int_itab2-msgv2 int_itab2-posnr into fname.
else.
concatenate '00' int_itab2-msgv2 '000' int_itab2-posnr into fname.
endif.
call function 'CREATE_TEXT'
exporting
fid = fid
flanguage = flanguage
fname = fname
fobject = fobject
save_direct = 'X'
fformat = '*'
tables
flines = t_lines
exceptions
no_init = 1
no_save = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
refresh t_lines.
endloop.
endform. " SAVE_TEXT
If you want to know the OBJECT ID, OBJECT NAME, and FNAME for your purpose,
-Goto VA01/VA02/VA03
- Go to item text screen
- At the bottom of text editor, you details button.Click on that.
- On the next screen click GOTO->HEADER
- Here you can see the Text name, Text ID, Text Object
- Text name is usually the combination of Order no. and Item no.