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

SAP script problem

Former Member
0 Likes
744

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

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
699

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

4 REPLIES 4
Read only

hymavathi_oruganti
Active Contributor
0 Likes
699

hi,

how can fetch data from a structure?

structure will never store data.

what is ur requirement ?

Read only

Former Member
0 Likes
699

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.

Read only

JozsefSzikszai
Active Contributor
0 Likes
700

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

Read only

Former Member
0 Likes
699

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.