cancel
Showing results for 
Search instead for 
Did you mean: 

EXIT_SAPLIWP3_001 and EXIT_SAPLIWP3_002

danny_roussel4
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member217722
Participant
0 Kudos

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.

peter_atkin
Active Contributor
0 Kudos

Danny,

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

PeteA