11-14-2007 4:34 AM
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.
11-14-2007 4:37 AM
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
11-14-2007 4:44 AM
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>.
11-14-2007 4:48 AM
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..