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

abap report-set parameter

Former Member
0 Likes
582

Hi all,

I want to display values on to va03 tcode when we click on the list. Iam getting only vbeln value on to screen. I am not getting the kunnr field. Can anybody please rectify.

Thanks in advance.

&----


*& Report Z_B2_RPT_04

*&

&----


*&

*&

&----


REPORT Z_B2_RPT_04.

tables : vbak, RV45S.

types : begin of ty_itab,

vbeln type vbak-vbeln,

erdat type vbak-erdat,

ernam type vbak-ernam,

kunnr type RV45S-KUNNR,

end of ty_itab.

data : it_itab type standard table of ty_itab.

data : wa_itab type ty_itab.

start-of-selection.

select vbeln erdat ernam kunnr from vbak into table it_itab.

loop at it_itab into wa_itab.

write : / wa_itab-vbeln hotspot on, 30 wa_itab-kunnr, 60

wa_itab-erdat, 120

wa_itab-ernam.

HIDE : wa_itab-vbeln, wa_itab-kunnr.

endloop.

at line-selection.

set parameter id : 'AUN' FIELD wa_itab-vbeln.

set parameter id : 'VAG' FIELD wa_itab-kunnr.

call transaction 'VA03'. "and skip first screen.

3 REPLIES 3
Read only

Former Member
0 Likes
502

HI,

Why are setting the KUNNR parameter..As you have already set the VBELN parameter 'AUN'.

For VA03..you don't require the kunnr..

Thanks

Naren

Read only

Former Member
0 Likes
502

Hi Ranjith,

Here no need of Kunnr field, because VA03 is the transaction which needs only VBELN, ( sales doc number ). This is enough.

Still if you need kunnr field, the parameter id is <b>KUN</b>.

Read only

Former Member
0 Likes
502

hi,

va03 tcode requires you to specify only vbeln field, kunnr is not needed by va03 tcode, so you need to only set parameter for vbeln.

reward if useful..