2015 Jan 22 8:42 AM
Hi experts,
We are trying to use function module 'L_TO_CREATE_DN' for creating TO for delivery note. Inside the function module there is a warning message '2-step picking relevance will be removed since no relevant group' is thrown. When trying to create a TO through LT03, same warning message appears in foreground which can be ignored by pressing ENTER. But when the function module is called from custom program warning message is thrown as error message and couldn't capture it through exceptions 'ERROR_MESSAGE' or 'OTHERS' as message type of 'E' only can be captured by those. Please advise how to use this function module to create TO and avoid that error? Upon debugging LIPS-KOMKZ field contains '2' which triggers the warning message and that cannot be changed through configuration. Any help would be appreciated. Thanks.
With regards,
Usha.
Hi experts,
We are trying to use function module 'L_TO_CREATE_DN' for creating TO for delivery note. Inside the function module there is a warning message '2-step picking relevance will be removed since no relevant group' is thrown. When trying to create a TO through LT03, same warning message appears in foreground which can be ignored by pressing ENTER. But when the function module is called from custom program warning message is thrown as error message and couldn't capture it through exceptions 'ERROR_MESSAGE' or 'OTHERS' as message type of 'E' only can be captured by those. Please advise how to use this function module to create TO and avoid that error? Upon debugging LIPS-KOMKZ field contains '2' which triggers the warning message and that cannot be changed through configuration. Any help would be appreciated. Thanks.
With regards,
Usha.
2015 Jan 23 5:49 AM
Can anyone help please? Is there is any function module which can be called before 'L_TO_CREATE_DN' which can remove the 2-step picking relevance indicator?
2015 Jan 26 9:58 AM
Hello
I have had this issue some months ago, and I found the solution on SAP Technical site.
Google it: "Handling Type 'E' messages from function modules"
Call the function module by adding the statement
ERROR_MESSAGE = Any No. in the EXCEPTIONS part of the function module call, before others
2015 Jan 26 10:20 AM
Thanks for the reply. But I have already mentioned in the post that this option of adding 'ERROR_MESSAGE' did not help me as the message type is 'W' and the error_message can capture only messages of type 'E'. So this won't help in this case.