Skip to Content
avatar image
Former Member

The implementation of Badi ORDER_SAVE will store the value of the product set at item level of INTER order (ZYCS)

Dear experts,


Please help with this.


Create a new implementation of badi ORDER_SAVE

- In method PREPARE, if process_type of the document is ‘ZYCS’ and the document is in creation mode, then we read all the items of the order.


- For all items with ITM_USAGE = ‘08’(subitems), we retrieve the product_guid of the parent item and then we get the value ZCORE and ZEMAR from table COMM_IL_STRSET where comm_il_strset-sourceguid = product_guid of the parent item and comm_il_strset-destinguid = product_guid of the sub item and comm_il_strset-valid_from <= today’s date.


- Update the new fields of crmd_orderadm_i with value of ZCORE and ZEMAR.


Regards,

Darshan.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 17, 2014 at 01:28 PM

    Hello Darshan,

    Two remarks as a start:

    - It is not totally wrong to poste this problem in ABAP Development. But you could have also posted it in Customer Relationship Management as your problem is about a CRM BADI.

    - It was said by others that SCN is a tool where you poste your requirements and others do the whole job for you.

    But still: I have a few minutes left and give you an answer.

    - You can create a new implementation for BADI ORDER_SAVE in CRM in transaction SE19. Enter your the BADI-name ORDER_SAVE, create new implementation, enter an implementation name and continue.

    - When you are in your implementation you can read all items with function module CRM_ORDER_READ to whom you have to pass the header guid.

    - Then continue according to the requirements.

    If this help is not enough than you should look for a technical SAP CRM consultant.

    Best regards,

    Thomas Wagner

    Add comment
    10|10000 characters needed characters exceeded