Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

value of custom fields disappear

former_member581430
Participant
0 Kudos

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?

8 REPLIES 8

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

hi raymond

im not declaring anything in the top for my requirement

0 Kudos

Where are those fields declared in the exit function group, if answer is nowhere, that answers your question.

0 Kudos

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?

0 Kudos

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

0 Kudos

Ok, it was "Are the fields cleared in a PBO module" ^^

Regards,

Raymond