cancel
Showing results for 
Search instead for 
Did you mean: 

vbfa: Document Flow

Former Member
0 Kudos
540

Hi forum,

I have created an order. with two line items with reference to another standard order.

The problem is i am not seeing this order entry in VBFA table.

what to do sao that my order entry is shown in VBFA table?

Urgent

Thanks Lovleen

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

have you checked the order number in VBAK Table..?

if it exist, then look at the VGBEL field in vbak.

is this holds your reference document number..?

Then read this entry and supply values to VBFA Table.

vbfa-vbelv = vbak-vgbel

vbfa-vbeln = vbak-vbeln

Thanks,

Sara

Former Member
0 Kudos

NO!!!

Sara,

You do not EVER want to perform direct table updates to SAP supplied tables like this!!!

You must update these tables thru standard SAP supplied objects.

If you have any direct updates in your current system, make it your organization's HIGHEST priority to replace these direct updates!!

SAP Support will not stand behind their product when you are making changes like this... it can break the refertial integrity of the SAP database - thus damaging your company's business.

Former Member
0 Kudos

How did you create the sales order? Thru BAPI?

Former Member
0 Kudos

If thru BAPI_SALESORDER_CREATEFROMDAT2,

you must set the following in the internal ITEM table BAPISDITM

BAPISDITM-REF_DOC = Your_Ref_doc.

BAPISDITM-REF_DOC_IT = Your_Referencing_Line_Item_num.

BAPISDITM-REF_DOC_CA = Your_ref_Doc_type.

These need to be included in the BAPISDITM table when the Create BAPI is called... whne included, the VBFA linkages are built.

Former Member
0 Kudos

Lovleen,

I should clarify as well that you need to update Change table as well for these 2 fields.

BAPISDITMX-REF_DOC = 'X'.

BAPISDITMX-REF_DOC_IT = 'X'.

BAPISDITMX-REF_DOC_CA = 'X'.

This is a requirement of the BAPI itself.

Don't forget points for helpful answers.

Former Member
0 Kudos

Hai,

Search by preceding documents:

Here VBFA-VBELV s are Sales Doc numbers

where VBTYP_V = 'C' .