Skip to Content

How to enter data into standard business object nodes from a custom business object

I have a custom business object. in the custom I created, there is a node whose data I want to input into the Receipt node in the standard ExpenseReport business object SAP Byd . I have tried several ways, but failed. how to enter data into a standard SAP Byd object business node

capture.png (33.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 23 at 07:28 AM

    Hi Ibnu,

    In your foreach logic, order.Receipt is your custom BO node?

    And where you created header part?


    Regards,

    May

    Add comment
    10|10000 characters needed characters exceeded

  • May 22 at 06:52 AM

    Hi Ibnu,

    have you checked if your custom business object is in the same deployment unit as the standard bo is?

    For example you create your solution in the customer relationship management deployment unit and want to change or enter data to the customer standard object, you have to add the annotation

    [DeploymentUnit(Foundation)]

    right in front of your business object.

    In the end it has to look something like this:

    [DeploymentUnit(Foundation)] businessobject MyBO {  }

    As soon as your BO is in the same unit as the BO you want to modify, the changes are possible.

    Now you only have to check that you don't want to save data in validation scripts and everything should be fine.

    PS: Does anybody know how to remove code fields in these answers? I am currently not able to delete them.

    Kind Regards,

    Johannes

    Add comment
    10|10000 characters needed characters exceeded

    • I have added a standard deployment unit to my custom BO like [DeploymentUnit (ExpenseAndReimbursementManagement)] businessobject SettleReport { }. I can add data to standard BO header, but I can not enter data into node in standard BO which has relation [0, n]

      BR

      Ibnu F.M