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

QA32 - Follow up action custom function modules debugging with EWM

0 Likes
3,661

Hello Friends,

In S/4 HANA - QA 32 - selecting an inspection lot and then going usage decision and selecting Accept "A1" and then going to EWM inspection, there I select Edit Quality inspection button and select the enter a quantity and select a user action and this will trigger a Z function module in back ground when "trigger follow up action" button is clicked.. How can I debug this and see the data flows to my Z FM , I have put a break point in my Z FM but it never stops there?

Thanks a lot in advance.

5 REPLIES 5
Read only

venkateswaran_k
Active Contributor
0 Likes
2,762

Hi Ananth

1. Make sure that you are in the same session

2. Make sure you did not put the breakpoint inside any if statement. Put at beginning of FM.

3. If not working, then, Put /H in the command - before pressing the "trigger followup action" - This will take you in debug mode. (However it takes you PAI section before take you to FM)..

Regards,

Venkat

Read only

0 Likes
2,762

Hello Venkateswaran,

Thanks for ur reply.. I can get to debug mode.. but unable to trace the call to the Z FM's that has been defined in config.

Read only

0 Likes
2,762

Hi

In PAI of the screen, code will be there to check for the user_command - sy-ucomm - to check for the button action

Put break point in that place and see whether it calls the FM or not.?

Regards,

Venkat

Read only

RaymondGiuseppi
Active Contributor
Read only

0 Likes
2,761

I enabled update debugger and system debugger. Then after save the follow up action FM

'QTFA_EWM_LOG_FOLLOW_UP_S4' gets triggered now I am in debug mode.. I am able to debug but the movement type QALS-BWART is not populated. My Business analyst is saying is it should have '321' or '350' movement types. But it is blank... does any one have idea where is movement type being captured in this FM : 'QTFA_EWM_LOG_FOLLOW_UP_S4' ?