Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we enhance SD_COND_SAVE_A with custom Method.

Former Member
0 Kudos

Hi All,

Would like to know if SD_COND_SAVE_A can be enhanced? I mean can I create a new method in the BADI with custom logic.

As per my analysis, CONDITION_SAVE_EXIT method in BADI is used to save the Condition data to the tables. Here I want to create a new custom Method to save the same entries into a new custom Table when exiting the BADI.

Appreciate your advice.

thanks,

2 REPLIES 2

Former Member
0 Kudos

Hi,

why do you want to create a new method? The BADI is of type multiple impl., So you can implement BADI and write your custom code in that implementation.But yes you have to check if the data is availiable in CONDITION_SAVE_EXIT parameters.

Can you be more precise with question

Thanks

Raj

0 Kudos

Hi Raj,

This is my Scenario.

I've a TCode VK12, enter condition data and press save, and based on the condition type it saves into the respective tables (A504, A506, A507).

Analysed solution 1.

I want to capture the data in a Z table for delta Extraction in BI, I found this BADI and it does the saving part, so thought here i can implement my custom logic to capture data in Z Table, by creating another Method in the BADi which would be used only by my Customized Condition types. Z*.

Analysed solution 2.

Can I Include custom field (Date & Time Stamp) in A504, A506, A507 tables, Any issues while maintaining?

If I Can then I wouldn't need a custom table to capture all the records as stated above. Instead I can write code in the BADI to capture the system date & time and populate it in the Custom field in A* tables.

Please let me know if any clarification required to solve my issue. Also do let me know if there is any other approach!!

Thank you very much for the reply and awaiting your response.

thanks,