Application Development and Automation 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: 
Read only

Screen Exit MIRO

Former Member
0 Likes
975

Hi

I have used as BADI MRM_ITEM_CUSTFIELDS to design custom tab. I have written code in METHOD....ENDMETHOD which is triggering. I am getting value in screen field variable through debugging. But not appearing in screen field.

But if i pass hard coded value for screen field in PBO, its populating in screen field. I have used SET PARAMETER ID, IMPORT & EXPORT values to store the value in PBO. But its not working.

Hi

I have used as BADI MRM_ITEM_CUSTFIELDS to design custom tab. I have written code in METHOD....ENDMETHOD which is triggering. I am getting value in screen field variable through debugging. But not appearing in screen field.

But if i pass hard coded value for screen field in PBO, its populating in screen field. I have used SET PARAMETER ID, IMPORT & EXPORT values to store the value in PBO. But its not working.

4 REPLIES 4
Read only

former_member182371
Active Contributor
0 Likes
731

Hi,

have a look at this thread:

in the documentation of this badi it says:

If you wish to save customers' own fields to the database, you must attach these fields in an APPEND structure to the corresponding database table (RSEG, RBDRSEG, RBMA). For G/L account lines, add an APPEND structure with the customer's own fields to the structure COBL_MRM. The customer's own fields then also exist in the database table RBCO.

Please do have a look at example implementation WKA_ITEM_CUSTFIELDS in transaction SE19

Best regards.

Edited by: Pablo Casamayor on Oct 27, 2008 8:20 AM

Read only

Former Member
0 Likes
731

Please paste your code so we can have a better look at it.

Read only

0 Likes
731

Hi

data: l_zsdper type zsdper,

l_ebeln type ebeln,

wa_drseg like line of it_drseg,

mmcr_drseg type drseg.

" IT_drseg is an intenal table which is an importing parameter.

loop at it_drseg into wa_drseg.

l_ebeln = wa_drseg-ebeln.

endloop.

select single zsdper

from ekko

into l_zsdper

where ebeln eq l_ebeln.

if sy-subrc eq 0.

move l_zsdper to mmcr_drseg-zsdper.

" mmcr_drseg-zsdper is my screen field which is getting value throhgh debugging.

endif.

in PBO " If i pass hard code value, its displaying in screen.

move 15 to mmcr_drseg-zsdper.

Read only

0 Likes
731

hello

Have you resolved your problem??