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

screen variants

Former Member
0 Likes
1,007

Could anybody tell me the steps for creating the screen variants. I want to make some fields as input only which are

filled with sy-datum.its urgent please help

Regards

Lalit

7 REPLIES 7
Read only

ravisankara_varaprasad
Active Participant
0 Likes
940

Hi,

Please use the tCode SHDO to create the screen variants and transaction variants .

Kind Regards,

Ravi Sankar.Z

Read only

Former Member
0 Likes
940

Hi,

Step 1 - Create a screen variant

The first step is to create a screen variant for VA01. See also Transaction variants / Screen variants

Go to transaction SHD0 and enter VA01 in the Transaction field. Press the Create button.

Now transaction VA01 is shown. Selct OR as order type and press Enter. Do not enter anything in the other

fields, because we want to make all modifications in the GuiXt script.

The Confirm entries screen is shown. Enter ZVA01in the Name of screen variant field and press Exit and save.

Now the Field values screen is shown. Press the GuiXt Script button to enter the script.

Step 2 - Enter the script

Enter the follwing script:

title "Modified Create Salesorder screen"

box (1,1) (3,50)

comment (2,2) "User:"

comment (2,11) &[_user]

comment (2,26) "Transaction:"

comment (2,41) &[_transaction]

pos F[Order type] (5,11) -Triple

pos G[Organizational data] (7,10)

Image (1,100) "D:\DATA\DOKUMENTER\MY PICTURES\IMAGE-000.JPG"

Default [Order type] "OR"

del [Division]

del [Sales office]

del [Sales group]

pushbutton (Toolbar) "Change order" "AEND"

del [Create with reference]

del [Sales]

del [Item overview]

del [Ordering party]

pushbutton (15,20) "Goto Customer initial screen" "/nVD03"

Step 3 - Create a variant transaction code to display the modified screen

Goto transaction SHD0

Select menu Goto->Create variant transaction

Transaction code is the name of the new transaction you want to create e.g. ZVA01A

Transaction is the original transaction VA01

Transaction variant is the name of the screen variant you has created ZVA01

Note: You can also create the variant transaction from SE93 Maintain Transaction

Regards,

vineela.

Read only

Former Member
0 Likes
940

Hi,

In the selection screen, fill all the fields and then click the SAVE button.

Give the variant name and a meaningful description and save.

This is the way to create a screen variant for any program.

In case you want a field to be displayed with sy-datum.

Mention in the code..

"Default value sy-datum."

for that particular field.

Reward if helpful.

Regards.

Read only

Former Member
Read only

0 Likes
940

Hi,

Please find the below link for Transaction Variants & Screen Variants .

http://help.sap.com/saphelp_47x200/helpdata/en/bf/ec07845db911d295ae0000e82de14a/frameset.htm.

Further details ,

Transaction variants are actually made up of a series of screen variants. The field values and field attributes for each screen in a transaction variant are stored in screen variants.

http://help.sap.com/saphelp_47x200/helpdata/en/bf/ec07845db911d295ae0000e82de14a/frameset.htm

Thanking You.

Kind Regards,

Ravi Sankar.Z

Edited by: Ravi Sankara. Z on Mar 17, 2008 11:20 AM

Read only

Former Member
0 Likes
940

Hi Experts,

I developed a query which shows output as ( this includes P&L and BS accounts)

E.g. assume all are BS accounts

Comp Code | GL Account | Amount (with restriction)

1000 | AAAA| +1

1000 | BBBB | -1

2000 | CCCC | +1

2000 | XXXX | 0

I have one GL account ( XXXX) which is actually roll up account and which is nothing but sum of amount of all (BS) GL account shown in the report (excluding this XXXX account).

so in above example value = 1-11 = +1

So I want to show the value as

Comp Code | GL Account | Amount (with restriction) | roll up account AMOUNT

Comp Code | GL Account | Amount (with restriction)

1000 | AAAA| +1 |

1000 | BBBB | -1 |

2000 | CCCC | +1 |

2000 | XXXX | 0 | +1

Is it possible to achive this ?

I am giving thought on Exception aggregation, but will it give me sum of all (BS) account except 1 Gl account (XXXX)

Please help me on this ?

Regards,

Vinod