Skip to Content

EXIT_SAPLIWP3_001 and EXIT_SAPLIWP3_002

Hi,

I did activate smod IPRM0003, added a custom field to structue MPOS (STCI_MPOS), field PERNR.

In EXIT_SAPLIWP3_002 I am able to retrieve the filled in value from the screen, and store in MPOS.

However in EXIT_SAPLIWP3_001 I have the correct value from the MPOS database in STCI_MPOS_IMP-PERNR, but I don't know how to transfer the value to the screen-field.

Any help is welcome!

Danny

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 05, 2017 at 07:11 AM

    Danny,

    Try tagging this post with "ABAP" and you should get a better resonse.

    PeteA

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 25, 2017 at 12:02 PM

    Hi,

    Please find below procedure .

    Implement two exits and generate includes.

    design screen as per requirement. and give field names with ref to table (in module pool programming ).

    Here I have chosen ITOB as table ,(you can take MPOS also. its depended on requirement) (only one field i have designed).

    Code in EXIT_SAPLIWP3_001 ( DATABASE TO SAP SCREEN)

    TABLES itob.

    DATA:ls_mpos TYPE mpos.

    IF sap_impos_imp-tidnr IS NOT INITIAL.

    itob-tidnr = sap_impos_imp-tidnr.

    endif.

    Code in EXIT_SAPLIWP3_002 (SAP SCREEN TO DATABASE)

    stci_mpos_exp-tidnr = itob-tidnr.

    stci_mpos_exp-dummx = 'X'.

    IN PBO of custom screen,

    IF sy-tcode EQ 'IP03'.

    LOOP AT SCREEN.

    screen-input = 0.

    MODIFY SCREEN.

    ENDLOOP.

    Also refer for starting steps from SMOD Documentation and ( archive.sap.com/discussions/thread/1672609 ).

    Thanks,

    Mithun Chakravarthi.

    Add comment
    10|10000 characters needed characters exceeded