Application Development 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: 

How to provide F1 & F4 helps for a newly created field.

Former Member
0 Kudos

I have to create a <b>currency field</b> in 0100 screen like skb1-waers.

I have to provide F1 & F4 helps for that field.

Shall I give screen name as SKB1-WAERS ?

I have given as above .

But the problem is when the Processor is processing a that screen , the currency on the screen gets overwritten by another the reference account field in one of the subroutine. Since the screen uses fieldname skb1-waers, it gets overwritten when my code read skb1 table.

Was it right that I used screen name as SKB1-WAERS ( in my screen attributes for that field ) ???

If not suggest me what to do and how to proceed ?

YOUR HELP IS APPRECIATED.

5 REPLIES 5

amit_khare
Active Contributor
0 Kudos

You cannot mention screen name as type name.

instead it should be some user defined name e.g

Parameters: v_waers like waers.

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

Hi,

As I have understood u r question...You want to display amount and it's currency on the screen. Then U want to change the currency and then process the PAI.

For that if u user SKB1-WAERS then it will definately become currency of your current login. If u want to save the changed currency.. Define a separate field for that and save it into the table.

Hope this will help u.

Former Member
0 Kudos

Sorry . Really I didnot get you ?

First of all can I give field name as skb1-waers in its attributes screen ?

If yes, it is getting overwritten some where in my code when I select from skb1 table.

I am new ? not having that much knowledge on module pool.

How can I create a field ( currency - skb1-wears)?

How can I provide F1 & F4 help ?

How can I take care of not getting over writtten by some other field when saving the screen ..

If the above is not clear...I will explain again clearly.

PLEASE HELP .

Former Member
0 Kudos

Hi,

I would suggest creating a new structure in the DDIC..Then give the field WAERS and give the foreign key table as TCURC..

Steps

GO to SE11...select the radio button ..data type... give the structure name...Z_SCREEN_0100.

Press create ..

Then give the column name WAERS..

Give the data element as TCURC.

Place the cursor on the waers field and press the foreign key button..

It would automatically propose the table TCURC..

copy and generate the structure..

use the structure-fieldname to define the currency field..

Go to the input field attributes..

give Z_SCREEN_0100-WAERS..Press enter..It will ask whether the field should be dictionary reference..Press yes to continue..

In the PBO..

Move the value from the SKB1 table to the screen structure Z_SCREEN_0100-WAERS

Thanks,

Naren

former_member387317
Active Contributor
0 Kudos

Hi Sam Kumar,

For Creating the F1 help for the field you need to create Documentation for that.

Select the Field and then select the documentation and edit the documentation as per your requirnment. save it.

For Creating F4 help you need to create the Foreign key relation ship between the fields of the foreignkey table and the check table. and by this way you can access the related data form the table using the check table entries.

Reward the points if it is helpful to you.

Regards,

ilesh nandaniya