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

problem in Adding field to alv

Former Member
0 Likes
727

Hi,

I have created my zreports in that i want to add order probability for sales order,inquiry ,quotation . But valus coming in report only 100. But according to customer requirement i want 30% for inquiry and 70% for quoatation . how toa dd these values?

And 1 more when i wil press f4 it should dispaly values like 00 ,10,20......100.

Its a std field in vabk n vbap.How to get these requirement?

Thanx in advance.

I wil never forget to reward if solution works.

Hi,

I have created my zreports in that i want to add order probability for sales order,inquiry ,quotation . But valus coming in report only 100. But according to customer requirement i want 30% for inquiry and 70% for quoatation . how toa dd these values?

And 1 more when i wil press f4 it should dispaly values like 00 ,10,20......100.

Its a std field in vabk n vbap.How to get these requirement?

Thanx in advance.

I wil never forget to reward if solution works.

5 REPLIES 5
Read only

Former Member
0 Likes
705

Hi,

i case of F4 u can make a internal table and pass it in F4IF_INT_TABLE_VALUE_REQUEST function module with populating values 00,10...and put this FM in at selection-screen on value request for <filed name>. I am not clear with ur first requirment just explain it.

regards

Mukesh

Read only

0 Likes
705

Hi Mukesh,

In alv , i have added field order probability.but it wil show only value 100 in report . i want values like 10 20.....100. means i can choose any value by pressing f4.that value it should appear in report o/p.

Sorry, but i didn't get ur sloution. Can u explain with code.

Thanx.

Shital.

Read only

0 Likes
705

Hi,

use this funtion moudule

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'BUKRS'

dynprofield = 'BUKRS'

dynpprog = sy-cprog

dynpnr = sy-dynnr

value_org = 'S'

tables

value_tab = it001.

and handle the f4 in subroutine user-command of AlV report and when u select a value then append that value in main internal table for that particular record.

Read only

Former Member
0 Likes
705

See demo programs,

BCALV_GRID_F4_HELP_APPLICATION

BCALV_GRID_F4_HELPM01

BCALV_TEST_GRID_F4_HELP

MRYF_ALV_LAYOUT_F4_HELP

BCALV_GRID_EDIT_DELTA.

Read only

0 Likes
705

BCALV_TEST_GRID_F4_HELP This is the example report program.

use F4 with input and look into the code.