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

Problem with QM certification text in PR creation..

former_member213450
Participant
0 Likes
888

when i am creating the Purchase Req.,QM certification text(maintaing in Ztable for each material) of the material should be populated under item detail.
for this i have implemented the BADI ME_PROCESS_REQ_CUST (post method).I have used the following FM for doing this.

    ls_header-tdobject = 'EBAN'.
    ls_header-tdname = l_tname.
    ls_header-tdid = 'A92'.
    ls_header-tdspras = sy-langu.


    call function 'SAVE_TEXT'
      exporting
        header          = ls_header
        insert          = ' '
        savemode_direct = 'X'
      importing
        newheader       = ls_newheader
      tables
        lines           = lit_tlines
      exceptions
        id              = 1
        language        = 2
        name            = 3
        object          = 4
        others          = 5.

the problem here is some times the Text is not populating for the same material in differnt PRs.
for example if i have created 3 PRs with same material(ex:12345).
in any one of those two PRs the text is populating and in one PR the text is missing.

this problem is only in some times, remaining time the text is POpulating for all the PRs.

when i am creating the Purchase Req.,QM certification text(maintaing in Ztable for each material) of the material should be populated under item detail.
for this i have implemented the BADI ME_PROCESS_REQ_CUST (post method).I have used the following FM for doing this.

    ls_header-tdobject = 'EBAN'.
    ls_header-tdname = l_tname.
    ls_header-tdid = 'A92'.
    ls_header-tdspras = sy-langu.


    call function 'SAVE_TEXT'
      exporting
        header          = ls_header
        insert          = ' '
        savemode_direct = 'X'
      importing
        newheader       = ls_newheader
      tables
        lines           = lit_tlines
      exceptions
        id              = 1
        language        = 2
        name            = 3
        object          = 4
        others          = 5.

the problem here is some times the Text is not populating for the same material in differnt PRs.
for example if i have created 3 PRs with same material(ex:12345).
in any one of those two PRs the text is populating and in one PR the text is missing.

this problem is only in some times, remaining time the text is POpulating for all the PRs.

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
852

Did you try to use method SET_TEXT of interface IF_LONGTEXTS_MM on IM_HEADER in the POST method and not the generic text FM ?

Regards,

Raymond

Read only

0 Likes
852

hi Raymond,

thank you for your reply.

the text should populate in the line item not in the header item.when i am trying with above method it displaying message "Text type B91 does not exist - entry will be ignored". any other way..?


Read only

0 Likes
852

For item and not header, then get "list" of items with method GET_ITEMS (often only one record)  those item in internal table received also support the methods of interface IF_LONGTEXTS_MM.

Regards,

Raymond