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

VF01 Output Type Program

Former Member
0 Likes
2,527

Hi Experts,

I have a special function tied to an output type. When an invoice is being processed in VF01, then the Output Type program is triggered. The program is a special function. In the program i can see the generated invoice document number from NAST, however this is still not populated in table VBRK or VBRP. I need help because I need to know the Sales Order Document number and I cant get it from the invoice document since I cannot trace it from the standard tables. Can you please advice?

Thank you.

Jerome

10 REPLIES 10
Read only

Former Member
0 Likes
2,103

Search in VBFA or VBPA for document flow.

Read only

0 Likes
2,103

How can I do this when I am at the custom program called by the output type? the only thing visible is the invoice document number from nast and it is still not available in table VBRK or VBRP.

Read only

Former Member
0 Likes
2,103

What is your exact requirement ? Anyway refer to the standard output type (Billing) CMSF ->CMS outgoing Invoice (Transmission Medium - 😎 . See the coding in the attached program, CMSR_OUTPUT_ENTRY & the function module CMS_PLUG_IN_PROC called from the program for reference.

Read only

0 Likes
2,103

I need to change the sales order document status when the output type is process in VF01 invoice creation so i created a program in output type. but when i am at the custom program all i can use is the invoice document which is not yet populated in table VBRK and VBRP so i cannot trace the sales order number.

Read only

0 Likes
2,103

Have you checked the standard output type & associated program mentioned in earlier post ?

Read only

0 Likes
2,103

yes and I think it is not relevant.

Read only

0 Likes
2,103

The Output type may not be relevant. But if you go through the code written in the Function module, It extracts the data related to VBRK and VBRP using the function module RV_INVOICE_DOCUMENT_READ. Though I am not sure, I think you will get VBRK& VBAP data using above method since Output type is processed in UPDATE TASK.

Read only

0 Likes
2,103

i dont think I can use RV_INVOICE_DOCUMENT_READ because the data from VF01 is still not posted in VBRK and VBRP.

All I can use is the OBJTY from NAST which is the invoice document but still not available in VBRK and VBRP. Are there other ways to determine the sales order number from this?

Read only

0 Likes
2,103

I don't think it is correct. In a Similiar scenario, where the IDOC is to be generated with document flow of the billing document, I used the table VBFA get the information alongwith the Invoice details (which was just saved in the current session).

Read only

0 Likes
2,103

When I am at the custom program, I can see the invoice document number from NAST-OBJKY to be created but this is still not present in VBRK and VBRP tables. How can I use this to determine the sales order number?