My requirement is to send purchase order of raw materials and stock transport order via I-Doc Type ORDERS from SAP to client.
Here I need to send only ZROH type raw materials and ZALB type stock transport order. Hence I need to create one output control routine.
Please help me how to write code inside the output control routine (KOBED and KOBEV) for this requirement.
What did you already try and where are you exactly stuck in VOFM, filling the forms KOBED_9xx and KOBEV_9xx ?
SY-SUBRC = 0. " success (or CLEAR sy-subrc.)
SY-SUBRC = 4. " failure
Look at the multiple samples provided by SAP in VOFM