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: 

Data Not updating on me22n screen after save.

Former Member
0 Kudos
1,144

Hi Experts,

I have added custom field EKKO-zzlprio with F4 help while saving the PO the value of this field is updating in EKKO table but updated value is not showing on screen after save.

After debugging it shows the changed value but directly it is showing previous value.Please help me with the problem.Thanks in advance.

12 REPLIES 12

Juwin
Active Contributor
0 Kudos
264

Which BADI/ Exit/ Enhancement are you using to populate this custom field?

Thanks,

Juwin

Former Member
0 Kudos
264

Hi Juwin,

I am using following exits:

EXIT_SAPMM06E_006  -->  LXM06F36

EXIT_SAPMM06E_007  -->  LXM06F38

EXIT_SAPMM06E_008  -->  LXM06F37.

Thanks.

Juwin
Active Contributor
0 Kudos
264

In EXIT_SAPMM06E_008, what are the values being passed back to the caller? Are you populating  E_CI_UPDATE field?

Thanks,

Juwin

Former Member
0 Kudos
264

Hi ,

Following code is written there:

IF sy-tcode EQ 'ME21N' OR sy-tcode EQ 'ME22N' OR sy-tcode EQ 'ME23N' .

  

      ekko_ci-zzlprio =  ekko-zzlprio.

ENDIF.

No, I am not populating E_CI_UPDATE field.

Juwin
Active Contributor
0 Kudos
264

You have to populate that flag field E_CI_UPDATE as X, so that calling program knows you have updated the Zfield. Kindly populate this field as X and try again.

Thanks,

Juwin

Former Member
0 Kudos
264

Hi,

Please explain me clearly where and how this should be updated.Thanks!

Juwin
Active Contributor
0 Kudos
264

You may use:

IF sy-tcode EQ 'ME21N' OR sy-tcode EQ 'ME22N' OR sy-tcode EQ 'ME23N' .

 

      ekko_ci-zzlprio =  ekko-zzlprio.

      E_CI_UPDATE  = 'X'.

ENDIF.

Former Member
0 Kudos
264

Hi ,

I had tried that but when i create any PO using ME21n and after save if i navigate to display the next PO, it was asking me for saving blank PO.That's why i removed that code.

Juwin
Active Contributor
0 Kudos
264

Ok, for that, try this way:

IF sy-tcode EQ 'ME21N' OR sy-tcode EQ 'ME22N' OR sy-tcode EQ 'ME23N' .

if ekko_ci-zzlprio <> ekko-zzlprio.

      ekko_ci-zzlprio =  ekko-zzlprio.

      E_CI_UPDATE  = 'X'.

endif.

ENDIF.

Former Member
0 Kudos
264

Hi,

I tried it's not working, do you have any other solution. Please help.

Former Member
0 Kudos
264

Hi Bhoomika,

In the Exit EXIT_SAPMM06E_008, Have you updated the field like below:

e_ci_ekko-zzlprio = ekko_ci-zzlprio.

In the User Exit EXIT_SAPMM06E_006,

ekko_ci-zzlprio = I_ekko-zzlprio.

Please try above.

Thanks and Regards,

Vinay Mutt