Application Development 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: 

Bom Long text updattion problem

Former Member
0 Kudos

Hi,

I am developing the report wirh BOM Long text.

When aalready BOM long text is there , if i want to edit the text i am using edit_text and save_text function module

and editing the BOM long text.

if there is no BOM Text, if i want to add new text, i am using same function module and it is not working properly.

if i use same function module edit_text and save_text, it is updating only 40 charaacter text.

Please any one have idea how to resolve?

Regards,

udupi

3 REPLIES 3

gouravkumar64
Active Contributor
0 Kudos

You can try with create_text

call function 'CREATE_TEXT'

  exporting

    fid               = 'LTXT'

    flanguage         = sy-langu

    fname             = '000000001000067910'

    fobject           = 'EQUI'

    SAVE_DIRECT       = 'X'

  •   FFORMAT           = '*'

  tables    flines            = fline

  • 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.

or can try with

CSAP_MAT_BOM_MAINTAIN

Gourav

0 Kudos

Hi Gaurav,

Thanks for your reply.

I tries to ue the create_text, but it is not opening editor to me.

if the user execute the program, if the BOM long text not maintained in the program,

i want to open the editor and user want to enter the text.

Regards,

udupi

Former Member
0 Kudos

Hi,

Guess you are filling the following header parameters correctly.

tdname - Key of BOM material

tdid - table name

tdobject - object name

tdspras - language

If you are inserting new long text then the parameter 'INSERT' should be checked.