‎2007 Sep 21 9:35 AM
Hi every one
I am doing Sap-Script of "Proforma Billing " . I have to display data from
1) VBDKR
2) VBDPR
But both these are structures
So how can i fetch data from these 2 structures and pass to Sap script
‎2007 Sep 21 9:45 AM
hi gaurav,
VBDKR and VBDPR you can get with the FM <b>RV_BILLING_PRINT_VIEW</b>. You have to give in the document number (in a structure) of the SD invoice in the importing paramter of the FM.
hope this helps
ec
‎2007 Sep 21 9:40 AM
hi,
how can fetch data from a structure?
structure will never store data.
what is ur requirement ?
‎2007 Sep 21 9:43 AM
use fm.
IF nast-objky+10(6) NE space.
vbco3-vbeln = nast-objky+16(10).
ELSE.
vbco3-vbeln = nast-objky.
ENDIF.
vbco3-mandt = sy-mandt.
vbco3-spras = nast-spras.
vbco3-kunde = nast-parnr.
vbco3-parvw = nast-parvw.
CALL FUNCTION <b>'RV_BILLING_PRINT_VIEW'</b>
EXPORTING
comwa = vbco3
IMPORTING
kopf = vbdkr
TABLES
pos = tvbdpr
EXCEPTIONS
terms_of_payment_not_in_t052 = 1
error_message = 5
OTHERS = 4.
IF NOT sy-subrc IS INITIAL.
IF sy-subrc = 1.
syst-msgty = 'I'.
PERFORM protocol_update.
ENDIF.
ENDIF.
‎2007 Sep 21 9:45 AM
hi gaurav,
VBDKR and VBDPR you can get with the FM <b>RV_BILLING_PRINT_VIEW</b>. You have to give in the document number (in a structure) of the SD invoice in the importing paramter of the FM.
hope this helps
ec
‎2007 Sep 21 9:46 AM
Hi Jain,
The fields from the structures VBDKR, VBDPR are stored in multiple tables.
So first you find what are the tables affected by this structure.
For that,
1. Go to SE11 -> VBDKR -> display.
2. press Ctrl + Shift + F5 ->VZ- Dictionary objects.
So get the values from those tables.
Thanks,
Reward If Helpful.