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

Adding Long text to a Operation through CA02 Transaction

Former Member
0 Likes
598

Hi All,

I am loading the operations from a local file,for each operation that is posted to the transaction CA02 by using the BDC Call transaction method for that posted operation i am loading a long text by using SAVE_TEXT function module. I am unable to load the long text for the particular operation which is posted, i am checking the latest operations from the table PLPO.

I am attaching the following part of the code.

-


call transaction 'CA02' using bdcdata mode 'A' update 'S'

messages into messtab.

if sy-subrc = 0.

clear bdcdata.

refresh bdcdata.

commit work.

wait up to 2 seconds.

perform get_error_msg.

  • Operation Long Text

if not i_input-ltext is initial.

perform operation_longtext.

endif.

endif.

form operation_longtext.

|

|

select single plnkn

zaehl from plpo

into (wa_plnkn, wa_zaehl)

where plnty = 'N'

and plnnr = i_input-plnnr (i_input = local file itab)

and vornr = i_input-vornr.

|

|

|

SAVE_TEXT....

endform.

-


I am unable to get the current operation that is saved by the BDC.

Could you please help me out on this issue.

Thanx in advance.

Suresh

Hi All,

I am loading the operations from a local file,for each operation that is posted to the transaction CA02 by using the BDC Call transaction method for that posted operation i am loading a long text by using SAVE_TEXT function module. I am unable to load the long text for the particular operation which is posted, i am checking the latest operations from the table PLPO.

I am attaching the following part of the code.

-


call transaction 'CA02' using bdcdata mode 'A' update 'S'

messages into messtab.

if sy-subrc = 0.

clear bdcdata.

refresh bdcdata.

commit work.

wait up to 2 seconds.

perform get_error_msg.

  • Operation Long Text

if not i_input-ltext is initial.

perform operation_longtext.

endif.

endif.

form operation_longtext.

|

|

select single plnkn

zaehl from plpo

into (wa_plnkn, wa_zaehl)

where plnty = 'N'

and plnnr = i_input-plnnr (i_input = local file itab)

and vornr = i_input-vornr.

|

|

|

SAVE_TEXT....

endform.

-


I am unable to get the current operation that is saved by the BDC.

Could you please help me out on this issue.

Thanx in advance.

Suresh

1 REPLY 1
Read only

Former Member
0 Likes
489

Hi,

This might sound very stupid, even then i have a doubt.

Have u appended zero's to the field PLNNR and VORNR before doing the select query, otherwise as we know the select will fail.

You also have to select the valid VORNR from the table PLAS, and then use PLNKN and VORNR.