Skip to Content
avatar image
Former Member

Restrict Output type for a purchase order

Hello All,

I have a requirement to restrict the processing of output type under certain conditions.

I have created a VOFM routine by copying the 101 routine.

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S32 { color: #3399FF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }

LOOP AT XNAST WHERE KSCHL EQ KOMT1-KSCHL AND
OBJKY EQ MSG_OBJKY AND
AKTIV EQ SPACE AND
VSTAT EQ '0'.
EXIT.
ENDLOOP.
CHECK SY-SUBRC NE 0.
SY-SUBRC = 4.
CHECK ( KOMKBEA-DRUVO EQ NEU OR KOMKBEA-DRUVO EQ AEND ).
CLEAR SY-SUBRC.
import V_flag to V_flag from MEMORY ID 'G_FLAG'.
if ( sy-subrc eq 0 AND V_flag = abap_true ).

sy-subrc = 4.

endif.

But the above logic does not seem to work for output types that are created automatically. It seems to be working for manual created output types.

Can you please help me in acheiveing my requirement of restricting the output type.

Appreciate help.

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers