Application Development and Automation 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: 
Read only

problem in update debugging in badi bom_update

Former Member
0 Likes
1,361

I created one implementaion for badi BOM_UPDATE for checking some bom conditions. since my implmentation is passing all the checks and i am not raising any error in my implementation but still i am not able to update the bom status which i suppose to update when bom pass all the required condition .I am performing checks in my badi for t-code CS02 and when user changes the status from 14 to 15 in CS02, then my badi imp. triggers and performs certain checks. But when i comment my implementation then i am able to change the status in cs02 from 14 to 15. I am not getting even when there is a success test case i do not raise any error in the program still it is not changing the status.

I have also seen when i comment my code and went through debugging then on CS02 screen it shows update debugging triggered, which is not happening when i un-comment the code in badi.

Please help...

Moderator message - Please continue with your previous thread -

Message was edited by: Suhas Saha

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,200

Can you please rephrase your requirement  again?

8 REPLIES 8
Read only

Former Member
0 Likes
1,200

Hi

Which method are you using?

Max

Read only

0 Likes
1,200

I am using CHANGE_AT_SAVE method.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,201

Can you please rephrase your requirement  again?

Read only

0 Likes
1,200

HI Madan, See I have a requirement when user try to change the bom status from 14-15 using CS02 t-code . Then the bom should satisfy some set of conditions in order to get changed from 14-15 status.So for that purpose i am using method CHANGE_AT_SAVE of badi BOM_UPADTE by creating an implimentation.

But i have a bom which is satisfying all the ideal conditions but BOM status is not getting updated.But when i comment my code and simply put a break-point in my method.In that case BOM is getting updated successfully. While doing some r&d, I noticed that When i comment my code and simply put a hard code breakpoint then on the Bom screen i am able to see 'update debuggig triggered' and when i again try to see the bom it again go back to standard t-code because of update debugging and then shows me the BOM screen with updated status. In short when i comment my code then it is updating the status 14-15 but when i un-comment then it does not. Hope it will make you understand the requirement.

Read only

0 Likes
1,200

Please check if their are any other implementation of the BADI which are activated.

Read only

0 Likes
1,200

Yes there is one more implementation that is also active.

Read only

0 Likes
1,200

Please check what code is in their?

Read only

0 Likes
1,200

I checked your other thread

What i believe is just comment this CSAP_MAT_BOM_READ is resetting the current BOM status as it may be clearing the buffer. Just comment this call of your FM and execute i believe it will work.

If this is the case then you will have to use some other FM or database table to fetch the data.