2008 Oct 25 9:49 AM
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.
2008 Oct 25 10:38 AM
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
2008 Oct 25 10:39 AM
2008 Oct 25 11:56 AM
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.
2012 May 28 5:14 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |