Skip to Content
0

EXIT_SAPLIWP3_001 and EXIT_SAPLIWP3_002

Apr 04, 2017 at 02:11 PM

78

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Peter Atkin Apr 05, 2017 at 07:11 AM
0

Danny,

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

PeteA

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 25, 2017 at 12:02 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded