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

Bdc for vf02 using FM save_text

aniket_gautam
Participant
0 Likes
1,177

Hi, frnds.. i have to upload date from excel sheet to tcode vf02.

my fields are Billing document(vbeln) and there is a header text tab in that  i have to upload text GRN no and GRN DATE

through excel sheet

HOw to do this using FM SAVE_TEXT.

KINDLY HELP AND and provide  code if possible.

thanx u

Hi, frnds.. i have to upload date from excel sheet to tcode vf02.

my fields are Billing document(vbeln) and there is a header text tab in that  i have to upload text GRN no and GRN DATE

through excel sheet

HOw to do this using FM SAVE_TEXT.

KINDLY HELP AND and provide  code if possible.

thanx u

3 REPLIES 3
Read only

former_member193464
Contributor
0 Likes
864

Try using this in your BDC program before calling transaction VF02

THEAD-TDOBJECT = ‘VBBK’.

THEAD-TDID = ’0002′.

THEAD-TDSPRAS = SY-LANGU.

THEAD-TDNAME = ’your vbeln′. 

* Lines
TLINE-TDFORMAT = ‘*’.
TLINE-TDLINE = ‘data from the excel’.
APPEND TLINE.

CALL FUNCTION ‘SAVE_TEXT’
EXPORTING
HEADER = THEAD
SAVEMODE_DIRECT = ‘X’
TABLES
LINES = TLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
IF SY-SUBRC = 0.
WRITE: / ‘Successful’.
COMMIT WORK.
ENDIF.

Read only

aniket_gautam
Participant
0 Likes
864

Thanx Maverick its working now

Read only

0 Likes
864

your welcome...
just close the thread...