‎2008 Apr 09 12:14 PM
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.
‎2008 Apr 09 12:16 PM
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
‎2008 Apr 09 12:19 PM
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.
‎2008 Apr 09 12:20 PM
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.
‎2008 Apr 09 12:21 PM
Hi,
Try this Function Module
"HR_F4_FOR_ALV_VARIANT"
if it work for you.
‎2008 Apr 09 12:21 PM
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
‎2008 Apr 09 12:22 PM
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
‎2008 Apr 09 12:23 PM
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