Skip to Content

Badi create contract


I used badi create contract


To get contract number to use it for case but

The contract number show empty like below why?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on 3 days ago

    Hello ALaa Azazy

    I assume you're using the GET_NUMBER method of the BAdI. This method is for a custom logic to assign a new number to the Contract, not to get the Contract's number.

    You can try using method AFTER_STORE with the code shown below. Just a note, the code was not tested.

      lo_contract TYPE REF TO if_recn_contract.
    lo_contract ?= io_object.
    DATA(ls_detail) = lo_contract->get_detail( ).
    ls_detail-bukrs <-- Company Code
    ls_detail-recnnr <-- Contract's number
    Kind regards,
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.