02-26-2007 3:56 PM
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.
02-26-2007 4:05 PM
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.
02-26-2007 4:16 PM
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.
02-26-2007 4:47 PM
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 .
02-26-2007 4:53 PM
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
02-27-2007 12:45 AM
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