‎2008 Jun 13 12:08 PM
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.
‎2008 Jun 13 12:11 PM
Hard to tell from this little piece of coding. What is the info of the Short dump?
Regards,
John.
‎2008 Jun 13 12:13 PM
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.
‎2008 Jun 13 12:22 PM
Hi,
Problem with parameters. Replace COMWA = WA_DELV-VBELN use COMWA-VBELN = WA_DELV-VBELN.
Regards
Raju Chitale
‎2008 Jun 13 12:26 PM
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
‎2008 Jun 13 12:44 PM
‎2011 Jun 08 4:20 PM
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