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

create the Variant.

Former Member
0 Likes
1,026

In the selection screen i have Comapny code, Posting date. But my program for only four company codes. How can I restrict with Variant through Transaction.but we go for f4 help must all company codes disply.

7 REPLIES 7
Read only

Former Member
0 Likes
803

Hi,

ENTER THE VALUES IN SCREEN AND CLICK SAVE BUTTON ITS ASKS FOR A NAME TO SAVE AS VARIANT

THEN NEXT TIME YOU WILL FIND A BOTTON NEXT TO EXECUTE BUTTON ON CLICKING THAT

YOU WILL FIND THE NAME U SAVED AS VARIANT JUST SELECT THAT

THE VALUES WILL BE AUTOMATICALLY POPULATED ON THE SCREEN

http://help.sap.com/saphelp_47x200/helpdata/en/c0/980374e58611d194cc00a0c94260a5/frameset.htm

Reward if usefull

Read only

Former Member
0 Likes
803

Hi,

Create a parameter transaction in se93 for your report.

then create a transaction variant in tcode SHD0 .(take the wizard option there)

Regards,

Renjith Michael.

Read only

Former Member
0 Likes
803

Hi Raj,

I understand that you cant restrict from variant. As you said you already made report for only 4 company code then no need of varient.

if user enter wrong comp code apart from these 4 which you want fire a message for user.

That fulfill your requirement.

please reward if solved!

Amit.

Read only

Former Member
0 Likes
803

Hi,

Try this Function Module

"HR_F4_FOR_ALV_VARIANT"

if it work for you.

Read only

Former Member
0 Likes
803

hi,

Select the radio button of the varient and go with the create....then enter the screen fields like company code for which u have 4 only...then go with the attributes...provide meaning for that and press save button...like this u can do for all four company codes.....

Reward if useful..

Cheers,

Brahma

Read only

Former Member
0 Likes
803

Hi,

Insetead of ristricting with T-code and etc.. you can validate the company codes in AT SELECTION-SCREEN event which company codes are giving to input

those comapny codes are in your list or not check if those company codes are not there you can give a popup message Give the company codes are display those four.

and come back to selection-screen.

I think this is easy method.

Thanks

Ganesh

Read only

Former Member
0 Likes
803

enter ur four company codes

then on toolbar

goto - > variant -> save as variants

next time when u run ur activayed code u can retrive these values from variant

do reward