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

help wit user-exit code

Former Member
0 Likes
598

Hi,

I need to set the default order reason in the userexit MV45AFZZ and I have question:

IF vbak-auart = 'ZCO'.

IF vbak-vtweg = '01'.

vbak-augru = 'COG'.

ENDIF.

ENDIF.

This works fine and ok, but how to set it up, that another order reason will be possible to enter. If I leave like this you can't change the order reason on sales order if you need to take other.

I would like to have that the default order reason is ZCO, but in a few cases I need to enter (manually at sales order) also ZCI order reason,

BR

Saso

3 REPLIES 3
Read only

Former Member
0 Likes
550

I am not getting what you want. Please be clear.

If your order type is 'ZCO' you want the order reason to be CUG.

do you mean to say that in order types 'ZCO' itself you have to change the order reason ?

In that case you can go to the screen and change it.

Read only

Former Member
0 Likes
550

the catch was distribution channel.... customizing

Read only

Former Member
0 Likes
550

Please help me. I am getting a dump when clicking on any one of the task lists in tcode CLOCO

A RAISE statement in the program "CL_ALV_TREE_BASE==============CP" raised the

exception condition "ERROR".

Since the exception was not intercepted by a superior program, processing was terminated.

Program CL_ALV_TREE_BASE==============CP

Include CL_ALV_TREE_BASE==============CM014

Row 14

Module type (METHOD)

Module Name QUEUE_APPEND_NODES

CALL METHOD ME->QUEUE_APPEND_NODE

9 EXPORTING I_NODE_KEY = L_NODE_KEY

10 I_MODE = I_MODE

11 exceptions others = 1.

12

13 if sy-subrc ne 0.

Does anyone have any idea about this?