10-25-2015 7:58 AM
Hi experts,
i have requirement where in my alv result screen there exists a trip number field , if i click on it should show the trip details from standard transaction PR05.
Set parameter doesnt work because in PR05 first we need to enter employee number then press enter . it will show all the trips of the employee in table control. now select the desired trip and click display, the screen which comes next is the one i want to get it from my alv.
For achieving it i have done recording and the code seems to work perfectly fine in ALL screens mode.but in NO screens mode the subrc of call transaction is returning 1001. in message sy-msgno i can see the message "no batch input for screen". i am not able to understand where i am going wrong or am i missing some thing. Please help me resolving this issue.
Also i there any more possible alternative to this like FM ,bapi or service function which can directly show me that trip screen.
Thank you.
BR
shadab
10-26-2015 4:23 AM
10-25-2015 1:28 PM
Hi,
Can you please check if BAPI_TRIP_REPORT_GET_DATA would suffice your purpose?
Thanks & regards,
Monami.
10-26-2015 4:23 AM
10-26-2015 6:36 AM
Hi,
thank for your reply. It works.
but can you please tell how it works in mode E and not in mode N, also update = A? I know it stands for asynchronous update. How does this additional clause 'Update' helps in this scenario.
10-26-2015 6:52 AM
Hi Shadab,
Sy-subrc returns 1001 when you are possibly missing a screen.
Asynchronous updating - In this mode the call transaction does not wait for any updates it produces to be completed. therefore usually results in faster execution.
Regards,
Shadab.
10-26-2015 6:59 AM
Hi,
Generally BDC is used for a entire transaction but the requirement here is to stop in middle of transaction so there is not going to be a update so update mode is 'A' and actually the transaction stops where there is no input for a screen which is a error(Actually our output here). so mode is 'E' to display the error.
hope you understand.
10-26-2015 7:28 AM