on 04-04-2017 3:11 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Danny,
Try tagging this post with "ABAP" and you should get a better resonse.
PeteA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.