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

select statement

Former Member
0 Likes
465

hi frnds,

in transaction va02 there is a tab on the screen "ADDITIONAL DATA B" having

fields:-

1) Term Start Date: vbak-zzstart

2) Term End Date: vbak-zztend

3) License Type: vbak-zzltype

4) Contract Number: vbak-zzcontno

5) Product Discount: vbak-pdisc

6) Maintenance Discount:vbak-zzmdisc

i want to display the values of this fields on the report with respect to sales ordre number

vbak-vbeln.

plz help me how to write the code for this.

its really urgent i have tried but i cld nt.

thnx

3 REPLIES 3
Read only

Former Member
0 Likes
443

Danial,

select-optoins:s_vbeln for vbak-vbeln.
data:itab lke vbak occers 0 with header line.
select zzstart zztend zzltype
          zzcontno pdisc  zzmdisc from vbak
      into corresponding field of itab where vblen in s_vbeln.

Read only

Former Member
0 Likes
443

Hi,

GO to the additional tab.

From System-> Status -> select the screen number.

DOuble click this and go to the PBO event. Since this subscreen is in the customer namespace, you can edit the code.

Write a stmt..INCLUDE disp_values. Double click on this and create the include program and write logic to read the values from the tables you need.

Regards,

Subramanian

Read only

Former Member
0 Likes
443

Hi,

Since this is a SAP standard transaction, you will find these values are saved in ABAP memory.

You have to debug the VA02, to find out which are the parameter IDs that they are using.

For example for material number SAP uses MAT.

Reward if helpful.

regards,

Prosenjit.