Skip to Content
Author's profile photo Former Member

Cross entity derivations using BAdI usmd_rule_service_cross_et

The document explains how to derive values on Web UI based on certain screen fields.

We can use the BAdI for deriving cross entities, ir usmd_rule_service_cross_et. Here I am deriving the EAN number with respect to the unit of measure.

1. In SE18 enter the BAdi name and display it.

Capture.PNG

2.Right click and create BAdI implemenmtation

3. Enter enhancement class
4.Now you will be able to see the implementation, and edit the implementation

5.We have to use Field symbols for this and along with data declaration, declare the fs part too.

Capture.PNG

6.We are using cl_usmd_app_context for getting the crequest id

Capture.PNG

7.Now call the method io_changed_data

Capture.PNG

8. Now we have to assign the values into the declared field symbols

9. Assign the values of EAN with respect to the UOM

Capture.PNG

10. Now call the method io_model->create_data_reference

Capture.PNG

11.Write data to change buffer and pass the new values to io_write_data->write_data

Capture.PNG

12. The EAN values , derived will be populated on UI screen.

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      good document which throws complete badi implimentation on cross entities for MDG.Had been looking for docs like this for a while.

      Author's profile photo Riaan Oosthuizen
      Riaan Oosthuizen

      Hi Nivedita,

      Is it possible to add all the code in an attachment because half of the code is not available and stripped when the thread is displayed. I have also tried to open it in PDF but I am having the same problem

      Thanks

      Riaan

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi Riaan,

      MDG system is not available for me right now. When I am able to access I will attach the complete code.

      Author's profile photo Riaan Oosthuizen
      Riaan Oosthuizen

      Does a standard example exist in the BADI USMD_RULE_SERVICE_CROSS_ET. We would like to derive certain values based on Vendor account group?

      Author's profile photo Jovana Jovanovic
      Jovana Jovanovic

      Hi Former Member is it possible to send or to  attach all code for this badi implementation?

      Author's profile photo Samyak Jain
      Samyak Jain

      Dear Technical minds,

      is it possible to derive child(type 4)  of  its parent type 1 entity based on change of another type 1 entity  ?

      we have one custom entity which is child of MATERIAL. now we want to derive something in this custom entity bases on change of DRADBASIC(annother type 1 entity )

      Author's profile photo snehal kamble
      snehal kamble

      Hii,

      Actually I want to move data from list UIBB to form UIBB on next page. both UIBBs are of different entity but type 4 and having different fields, it going to dump because of field names are not matching. So, is it possible to do with the help of this BADI??

      could you help me in this?