cancel
Showing results for 
Search instead for 
Did you mean: 

Post good receipt BADI on Public cloud - Addition of Batch and characteristic in Custom fields

StarDev
Participant
0 Kudos
255

Hello Experts,

I have a scenario where i need to display some extra fields in the APP- Material document overview. I need to display batch and characteristics details in the item page. The std fields are not available in the adapt UI mode.

We tried to create 2 custom fields for the same and added it in Adapt UI. The fields are coming now but I am not able to fill values into in during the runtime since its all CDS views and SEGW odata service. I dont have any point to fill it during runtime during display of items.

So to fill the two custom fields We tried to implement the BADI -MMIM_MODIFY_MATERIAL_DOCUMENT_ITEM  which gets called from Post good receipt app. The user enters the PO and batch and characteristics details in the screen whcih we need to show on the Material document overview APP.

But this BADI does not have any parameters which can read the values from the screen. It only gives header and line item data so we are not able to update the custom field values. This is leading blank value in the report- Material document overview for those custom fields.

 

Is there any badi to achieve this requirement ?

Or is there anything that can be done on the material document overview app to display extra std fields related to batch via extensibility ?

 

Material document overview - Item data

ravi_rajput_0-1739105236303.png

 

 

In Migo user enters the batch details

ravi_rajput_1-1739105393324.png

Doing a select on the CDS does not help since the data is not yet saved.

ravi_rajput_2-1739105528548.png

ravi_rajput_3-1739105699053.png

 

Now the only option left is to create a new Material document overview app with custom CDS views and bring those value as extra columns using logic. But i see this solution as very time consuming for such a small ask.

 

Note : This is to be done on S4 HANA PUBLIC CLOUD.

 

Any other approach/help/pointers/guidance would be appreciated.

 

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello, 

the most useful BADIs for material documents are:

https://api.sap.com/badi/BADI_MMIM_CHECK_MATDOC_ITEM

https://api.sap.com/badi/MMIM_ITEM_PROVIDE_DATA

https://api.sap.com/badi/MMIM_ITEM_CHECK_DATA

but in your case you can try also with

https://api.sap.com/badi/BADI_MAT_F_SPEC_SEL

Maybe it will solve your problem