cancel
Showing results for 
Search instead for 
Did you mean: 

Long text to be inserted for already maintained inspection plan through any recording

Former Member
0 Kudos

Hi,

     I have already completed maintaining inspection plan through LSMW recording.

   

     But MIC long text maintenance was not possible through that LSMW.

   

     Now Kindly suggest me how to maintain MIC long text in mass for all materials.

   

     Also for different materials Particular MIC long text is different.

   

     As the data is more, need some useful recording method.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

   I have worked on this function module with ABAPers & tested it.

   Now the problem is Long text is getting updated but it is not getting saved due to which it is not seen in display mode.

   Wht am i doing is goto QP02 manually-> particular MIC long text -> come back & -> save.

   Now it is getting saved & seen in display mode too.

   But this activity is not happening through Any of these function module.

   Kindly suggest where it is going wrong.

  

Regards,

Shravan

Former Member
0 Kudos

Hi Shravan,

For Save_Text to function properly you need to pass proper keys to this FM as suggested below.

    CONCATENATE plmk-mandt plmk-plnty plmk-plnnr plmk-plnkn

plmk-kzeinstell plmk-merknr plmk-zaehl INTO lv_tdname RESPECTING BLANKS.

    ls_header-tdobject = 'QSS'.

    ls_header-tdname = lv_tdname.

    ls_header-tdid = 'QM'.

    ls_header-tdspras = 'E'

    CALL FUNCTION 'SAVE_TEXT'

      EXPORTING

   client                = sy-mandt

        header                = ls_header

   insert                = 'X'

       savemode_direct       = 'X'

*   OWNER_SPECIFIED       = ' '

*   LOCAL_CAT             = ' '

* IMPORTING

*   FUNCTION              =

*   NEWHEADER             =

      TABLES

        lines                 =  lt_tline

EXCEPTIONS

   ID                    = 1

   LANGUAGE              = 2

   NAME                  = 3

   OBJECT                = 4

   OTHERS                = 5

              .

*-- Note that as i had previously suggested you need to read PLAS and PLPO tables first and then PLMK to create the full unique key to be passed for creation of MIC long Text.

In case of questions do revert.

BR,

Ankit.

Former Member
0 Kudos

Hi Ankit,

    I did same as you suggested but still could'nt see the long text in display mode for particular MIC's.

    Only when i go in change mode & click the particular MIC long text is visible but not saved.

    Kindly tell where am i going wrong ?

Regards,

Shravan

Former Member
0 Kudos

Hi Shravan,

Apologies for Delayed response. Did you try debugging the same and checking the run time parameters for the SAVE _TEXT? Please post your code.

BR,

Ankit.

Answers (2)

Answers (2)

former_member207800
Active Contributor
0 Kudos

Check the value of PLMK-LTEXTKZ (Inspection Characteristic Long Text Exists).

If you maintain the long text manually using these function module, you have to set this field also manually.

And refer link for text name for function module.

http://scn.sap.com/thread/3298505

Regards, DoWook KIM

Former Member
0 Kudos

Hi Shravan,

If you are talking about the Inspection Plans maintained via transaction QP01/02/03, then there is no long text at material level. At Inspection Level Long texts are maintained.

Hierarchy is,

Group -> Group Counter -> Operation -> Inspection Characteristic => If you talking about this long text then you need to associate a few tables like PLAS, PLPO, PLMK, etc and then call the FM's suggegsted by Maheswaran.

I would not advice to record and populate the long text as in that code you need to split the read data into say 72 characters or so and then proceed.

Regards,

Ankit.