on 10-14-2014 10:00 PM
Hi.,
I have programmed a view with 3 dropdownbyindex fields below each other. They represent categories in HCM and looks almost like this:
Level1 dropdown
Level2 dropdown
Level3 dropdown
The 3 levels are related and it Works fine until the user makes a new choice at level1.
In that case Level2 and level3 should be shown with the values for the new choice but the values from the first selection remains in level2 and level3.
How can I either make them blank at new selection or read the related level2 and level3 for the new selection at level1 ?
BR
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
GET_ALL_COMPANY_CODES_DROP:
LT_CCODE | Exporting | Type | ANY |
GET_PLANT_BY_COMP_CODE_DROP:
C_CODE | Importing | Type | BUKRS |
LT_WERKS | Exporting | Type | ANY |
GET_STORGAE_BY_PLANT_DROP:
C_WERKS | Importing | Type | WERKS_D |
LT_LGORT | Exporting | Type | ANY |
GET_ALL_COMPANY_CODES:
LT_CCODE | Exporting | Type | ANY |
GET_PLANT_BY_COMAPANY_CODE:
C_CODE | Importing | Type | BUKRS |
LT_WERKS | Exporting | Type | ANY |
GET_STORGAE_LOCATION_BY_PLANT:
C_WERKS | Importing | Type | WERKS_D |
LT_LGORT | Exporting | Type | ANY |
Hi Peter,
The error is because the selected value '0006' is not found in the drop down list of LEVEL 2. This could arise when there is conversion happening or data formatting was not correct.
Check out the drop down list values populated for LEVEL 2 and make sure that you have the same value in the KEY.
Regards,
Rama
Hi peter i think it's my fault the problem is the values for the level1 0006 in level2 are
0006,DC01,DC02,DC03,PL01 but it is just showing the privious values but when you select any one not relavant to these then you are getting this error and next time when you click on the same drop down on the same LEVEL2 then you are getting the correct values i might written code of LEVEL2 in LEVEL1 ,LEVEL3 at LEVEL2 for the drop down any way i will check and change it
HI Peter,
Model1:
step1 : create a node level1(cardinality 1:n) and create an attribute BUKRS ,create a subnode level2(cardinality 0:n , singleton ) . assign supply_levels as supply function
step2:expand the node level2 and create the attribute WERKS,create a subnode level3(cardinality 1:n, singleton ). assign supply_levels as supply function.
step3; expand the node level3 and create attribute LGORT.
MODEL2:
create recursive node with level1,level2 ,level3 anyway i will create a document and share to you if possible
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter,
You can achieve your requirement as below
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the event OnSelect of your Dropdown field Level1 to set the values to the other fields.
AbstractDropDownByIndex Events - Web Dynpro for ABAP - SAP Library
Regards,
Felipe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.