Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8678

Re: update the 'short text' field in Basic data2 tab in BATCH . t code (msc2n)

$
0
0

Hi Manju,

 

Please use the material for conversion exit ( it should be 18 chars)

 

Text name :   Material + plant + batch

text ID : VERM

Text Object: CHARGE

 

can you try!

 

Please check the piece of code from standard Msc2n! how to update the text:

 

Include : LCHRGI02

 

   PERFORM create_new_text.

 

  txhead_str-tdspras = dfbatch-spras.
   CALL FUNCTION 'INIT_TEXT'
     EXPORTING
       id       = txhead_str-tdid
       language = txhead_str-tdspras
       name     = txhead_str-tdname
       object   = txhead_str-tdobject
     IMPORTING
       header   = thead
     TABLES
       lines    = txt_lines
     EXCEPTIONS
       OTHERS   = 99.
   IF NOT sy-subrc IS INITIAL.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno       "#EC *
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
   ENDIF.

   CLEAR txt_lines.
   txt_inlines-tdformat = '*'.
   txt_inlines-tdline = dfbatch-kztxt.
   APPEND txt_inlines TO txt_inlines.
   APPEND txt_inlines TO txt_lines.
   CALL FUNCTION 'SAVE_TEXT'
     EXPORTING
       header    = thead
     IMPORTING
       function  = txt_funct
       newheader = thead
     TABLES
       lines     = txt_lines
     EXCEPTIONS
       OTHERS    = 99.


Viewing all articles
Browse latest Browse all 8678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>