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

tcode

Former Member
0 Likes
512

what is the tcode for sales document flow

4 REPLIES 4
Read only

Former Member
0 Likes
486

Hi,

you can refer VBFA table for SD flow.

go through below link

reward if it helps,

Satish

Message was edited by:

Satish Panakala

Read only

mahaboob_pathan
Contributor
0 Likes
486

Hi,

check this

http://www.sap-basis-abap.com/sd/sap-sd-processing-flow.htm

and table is

VBFA.

VBUK for Hdr status,VBUP for item status....

and for document flow

in vl03n

there is on document flow button

from there u will get it.

reward it if helpfull.

Message was edited by:

Mahaboob Pathan

Message was edited by:

Mahaboob Pathan

Read only

Former Member
0 Likes
486

For this info use table VBFA for document or use this function module based on sales order no use will get delivery ,billing document number.

Fill the structue comwa with order number .

vbeln = len.

wa-vbeln = id .

CLEAR : flagj,flagm,flags,itab_vbfa.

REFRESH itab_vbfa.

CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'

EXPORTING

  • AUFBEREITUNG = '2'

  • BELEGTYP = ' '

comwa = wa

  • NACHFOLGER = 'X'

  • N_STUFEN = '50'

  • VORGAENGER = 'X'

  • V_STUFEN = '50'

  • IMPORTING

  • BELEGTYP_BACK =

TABLES

vbfa_tab = itab_vbfa.

  • EXCEPTIONS

  • NO_VBFA = 1

  • NO_VBUK_FOUND = 2

  • OTHERS = 3

READ TABLE itab_vbak INTO ls_vbak WITH KEY vbeln = id.

IF ls_vbak-vbtyp = 'C'.

READ TABLE itab_vbfa WITH KEY vbtyp_v = 'J' . - Delivery Number

IF sy-subrc <> 0.

flagj = 'X'.

ENDIF.

READ TABLE itab_vbfa WITH KEY vbtyp_n = 'M' . Billing Document Number .

IF sy-subrc <> 0.

flagm = 'X'.

endif.

Please reward if useful.

Read only

Former Member
0 Likes
486

VA01, enter order number, u can access document flow from the application tool bar