06-07-2011 1:32 PM
hi everybody
I have added five custom fields on PO screen
I have added some validations in the PAI and PBO modules for the fields.
Actually four custom fields zzsec1 zzsec2 zzcurr1 zzcur2 depend on the custom field zzsl.
I have even added code in EXIT_SAPMM06E_016 and EXIT_SAPMM06E_018
but the problem is the four fields are getting cleared on the screen but in background the table ekpo is properly populated
with the values in the custom fields
But the field zzsl is not getting cleared.
Any suggestions how i can tackle this issue?
06-07-2011 1:49 PM
I have even added code in EXIT_SAPMM06E_016 and EXIT_SAPMM06E_018
In fact you must add code there.
Minimal code should look like
* include ZXM06TOP
DATA: ekko LIKE ekko, " Header
ekpo LIKE ekpo, " Item
aktyp type c, " A=display, V=change H=create
no_screen type c. " do not display
* include ZXM06U41 (EXIT_SAPMM06E_016)
no_screen = i_no_screen.
ekko = i_ekko.
ekpo = i_ekpo.
ekpo_ci = i_ci_ekpo.
aktyp = i_aktyp.
* include ZXM06U40 (EXIT_SAPMM06E_018)
IF NOT e_ci_ekpo = ekpo_ci
AND aktyp NE 'A'.
e_ci_ekpo = ekpo_ci.
e_ci_update = 'X'.
ENDIF.
* Also code in PBO/PAI of dynpro where field names look like ekpo_ci-zzxxxx,
* at least check aktyp in PBO / LOOP AT SCREEN to disable input in display mode
Regards,
Raymond
06-07-2011 2:01 PM
i did that
as im saying only four fields are not getting displayed on the screen when i press 'Enter'
The one field is getting displayed properly
06-07-2011 2:37 PM
Check :
- Are the field names the same in dynpro and in the top include of the exit function group
- Are the fields referencing ddic structure
- Are the fields cleared in a PBO module
Regards,
Raymond
06-07-2011 2:48 PM
hi raymond
im not declaring anything in the top for my requirement
06-07-2011 3:03 PM
Where are those fields declared in the exit function group, if answer is nowhere, that answers your question.
06-07-2011 3:09 PM
hi raymond
the fields are designed in the screen and these fields have been added to the structure EKPO_CI
so no need to declare them in the top, right?
06-07-2011 3:17 PM
i found it
i disabled the fields in the PBO but i did not put any condition
so everytime, its clearing the fields
thanks for your answers
06-07-2011 3:32 PM
Ok, it was "Are the fields cleared in a PBO module" ^^
Regards,
Raymond