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

L_TO_CREATE_DN

0 Likes
1,917

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.

3 REPLIES 3
Read only

0 Likes
1,464

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?

Read only

Former Member
0 Likes
1,464

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

Read only

0 Likes
1,464

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.