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

function module RV_ORDER_FLOW_INFORMATION

0 Likes
3,842

Hi,

i am using the above mentioned fn module to access vbfa table as shown below.

LOOP AT t_delv INTO wa_delv.

CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'

EXPORTING

  • AUFBEREITUNG = '2'

  • BELEGTYP =

comwa = wa_delv-vbeln

nachfolger = 'X'

n_stufen = '1'

  • VORGAENGER = 'X'

  • V_STUFEN = '50'

  • IMPORTING

  • BELEGTYP_BACK =

TABLES

vbfa_tab = t_vbfa

EXCEPTIONS

no_vbfa = 1

no_vbuk_found = 2

OTHERS = 3

.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

ENDLOOP.

As as soon as the prg line reads the fn module after the loop statement, it is giving short dump. upto loop statement it is fetching proper values. Pls guide me on this.

6 REPLIES 6
Read only

Former Member
0 Likes
2,104

Hard to tell from this little piece of coding. What is the info of the Short dump?

Regards,

John.

Read only

Former Member
0 Likes
2,104

Hi,

May be you check declaration of datatypes.you declare same data type as per the FM like below.

FM: RV_ORDER_FLOW_INFORMATION

*"----


""Globale Schnittstelle:

*" IMPORTING

*" VALUE(AUFBEREITUNG) DEFAULT '2'

*" VALUE(BELEGTYP) LIKE VBUK-VBTYP DEFAULT ' '

*" VALUE(COMWA) LIKE VBCO6 STRUCTURE VBCO6

*" VALUE(NACHFOLGER) DEFAULT 'X'

*" VALUE(N_STUFEN) LIKE VBFA-STUFE DEFAULT '50'

*" VALUE(VORGAENGER) DEFAULT 'X'

*" VALUE(V_STUFEN) LIKE VBFA-STUFE DEFAULT '50'

*" EXPORTING

*" VALUE(BELEGTYP_BACK) LIKE VBUK-VBTYP

*" TABLES

*" VBFA_TAB STRUCTURE VBFA

*" EXCEPTIONS

*" NO_VBFA

*" NO_VBUK_FOUND

*"----


Thanks

Sridhar.

Read only

Former Member
0 Likes
2,104

Hi,

Problem with parameters. Replace COMWA = WA_DELV-VBELN use COMWA-VBELN = WA_DELV-VBELN.

Regards

Raju Chitale

Read only

Former Member
0 Likes
2,104

Hai,

Data : ls_COMWA LIKE VBCO6.

LOOP AT t_delv INTO wa_delv.

ls_comwa-vbeln = wa_delv-vbeln.

CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'

EXPORTING

AUFBEREITUNG = '2'

comwa = ls_comwa

nachfolger = 'X'

n_stufen = '1'

VORGAENGER = 'X'

V_STUFEN = '50'

IMPORTING

BELEGTYP_BACK =

TABLES

vbfa_tab = t_vbfa

EXCEPTIONS

no_vbfa = 1

no_vbuk_found = 2

OTHERS = 3

.

IF sy-subrc 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

ENDLOOP.

Use Like this....

That time it not give dump..

Reward if useful.........

Thanks,

Durai.V

Read only

0 Likes
2,104

Thanx a lot. the problem has been solved.

Read only

0 Likes
2,104

Hello,

I have a invoice SD and not found a link that will tell me, that BUZEI of a accounting document.

The invoice SD has two position 10 and 11.

In the table BSEG have not found this relationship.

Or a function or BAPI that It determined by certain characteristics and select accounting pointing.

If we look at each position is the same account and I have reviewed the charges defined in VKOA and can not find a relationship.

Accounting is correct!

I use this function "RV_ORDER_FLOW_INFORMATION" but I dont get to relationship with invoice position.

Only I have accounting document.

Best regards,

Gustavo