Application Development 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: 

tcode

Former Member
0 Kudos

what is the tcode for sales document flow

4 REPLIES 4

Former Member
0 Kudos

Hi,

you can refer VBFA table for SD flow.

go through below link

reward if it helps,

Satish

Message was edited by:

Satish Panakala

mahaboob_pathan
Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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