|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Get the F4 help of a field based on the value of another field
By Ashesh Thodupunuri, IBM India
This article will discuss in detail how to access or update the value of one
field in the F4 help event of another field.
and scenario: We
often come across requirements where in values in the F4 help of one field
should be based upon the value in another field.
example take a scenario where there are two fields on the selection screen. A
value is entered in the first field, now the values in the F4 help of the second
field should be based on the value entered in the first field.
challenge here is the first field value is not directly accessible (or read) in
the F4 help event of the second field. We will see how to tackle this challenge.
Steps to be followed:
Create a program in SE38 with two selection screen fields.
you see the F4 help of the Sales organization field it gives the below values.
can see Sales Organizations belonging to different company codes (MAC,TRE etc).
Now we want to limit the Sales Org. values based on the company code value
entered in the company code field.
In this case I want to have the Sales Org. values as TRE1, TRE2, TRE3 as I have entered company code value equal to TRE.
we will create a custom F4 help for the sales organization field using below
selection screen event:
SELECTION SCREEN ON VALUE REQUEST for
table or value table for the Sales organization field is TVKO.
Write the below code in
the above mentioned event.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards