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

PO text

Former Member
0 Likes
396

Hi ,

i am trying to load long text ( , purchase order text ) in MM01 , i would appreciate if some one can give me sample code of that.I am uisng BDC program.

Thanks.

Raghu

2 REPLIES 2
Read only

Former Member
0 Likes
362

Hi,

Use the FM Create_text.

Regards,

Read only

Former Member
0 Likes
362

Use SAVE_TEXT FM :

data t_long like tline occurs 0 with header line.

constants : c_tdformat type tline-tdformat value '*',"Tag column

c_tdid type thead-tdid value 'PLPO'. " Text ID

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

CLIENT = SY-MANDT

HEADER = t_header

SAVEMODE_DIRECT = 'X'

  • OWNER_SPECIFIED = ' '

  • LOCAL_CAT = ' '

  • IMPORTING

  • FUNCTION =

  • NEWHEADER =

TABLES

LINES = t_long

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

OBJECT = 4

OTHERS = 5

.

Thanks

Seshu