Hi All,
The requirement is to create pro forma invoice when shipping document is created at VT01N.
For this a output type is defined as special function for which a Z program has been assigned.
In the Z program I have used BDC to call transaction VF01 passing the preceeding Outbound Delivery Document (OBD) number and Billing type F8.
The program is executing correctly when tested individually, but when assigned to the output type it gives POST_ILLEGAL_STATEMENT error.
This error is because of CALL TRANSACTION statement which cannot be used in the Z program.
I have already checked on SDN regarding using BAPI 'BAPI_BILLINGDOC_CREATEFROMDATA', but I cannot pass the OBD number and Billing type F8.
Kindly suggest what other logic can be written or how to remove the error to achieve this.
Expecting replies at the earliest.
Thanks in advance.
Regards,
Darpana.Ahire