on 09-15-2009 4:39 PM
Hi Experts,
I am facing a strange problem. I have implemented badi /SAPAPO/SDP_SELECTOR for Tx /SAPAPO/SDP94 to add custom fields. I have also coded the F4 method for both custom added fields and they are working fine showing F4 window.
Now the problem seems with sequence of selecting char in selection filter.
scenario 1: I select standard char and hit F4, it shows the F4 window properly with values. Then I select my custom added field and hit F4, it also shows F4 window properly with values.
scenario 2: First I select custom added field and hit F4, it shows the F4 window properly with values. Then I select standard char and hit F4, now nothing shows up. F4 window doesnt appear. If I remove my custom added field from selection and instead select standard char and then hit F4, it again shows up!!!
Any idea how to resolve this?
Thanks in advance,
Purvang
can anybody suggest any idea over this?
thanks,
purvang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
thanks for reply.
i have created Z* infoobjects and populated data from tables. I have added Z objects in selection filters for "APO Product" field in SHOW drop down. I am using F4IF_FIELD_VALUE_REQUEST FM to show F4 window for Z objects. This FM reads the database table and displays values in F4 window.
As I have mentioned once I select Z object and hit F4 other fileds's F4 functionality stops working.
Thanks,
Purvang
Hi Purvang,
Sorry to ask you the details again.
1. When you are referring to standard characteristics, it means all characteristics starting with 9A*. Is this the case?
2. Do you have multiple Z* custom info-objects.
3. Are these Z* info-objects a part of the MPOS. Are they included as a part of the characteristic value combinations?
Regards,
Kedar
Thanks Julien for reply.
I have checked code. Logic is very simple. In INIT_OBJECT_LIST method, I am adding info object. Main code is as below.
LOOP AT CT_SEL_OBJECTS ASSIGNING <LS_SEL_OBJECTS>.
Add Demand Planner field as selection criterion
LS_SEL_CRITERIA-OBJECT = 'ZXYZ'.
LS_SEL_CRITERIA-TXTSH = LS_XYZ-TXTSH.
LS_SEL_CRITERIA-TXTMD = LS_XYZ-TXTSH.
LS_SEL_CRITERIA-TXTLG = LS_XYZ-TXTLG.
LS_SEL_CRITERIA-MULTIPLE_SEL = 'X'.
APPEND LS_SEL_CRITERIA TO <LS_SEL_OBJECTS>-SEL_CRITERIA.
ENDLOOP.
Then I have coded F4 method as below.
CASE IV_IOBJNM.
WHEN 'ZXYZ'.
CV_VALUE = '123'. "I have diff code here, but even if i changed it to this very simple line, it doesnt work so i have
"ommitted my code for time being.
ENDCASE.
waiting for reply.
Thanks,
Purvang
Hi again,
Sorry I can't really help you further, my abap knowledge are not that great.
But it still looks to me that you need to reinitialise some variables (e.g. CV_VALUE)
Again you should be able to see the issue in debug if it is indeed in the badi code. Just put a break point at the begionning of your badi and see what value CV_VALUE hold...
Except that, you have a sample code in note 544904...
Thanks and Regards
Julien
Hi again,
I now remember that this badi can have a stragne effect in some cases...
It happen if your ZXYZ characteristic is not in the POS as far as I remember.
Is it your case?
If yes there is some other code to be adapted, but can't find which one and where...
Basically your extra characteristic is upsetting the standard function because it can't find the relevant CVC... The solution consist in ignoring your extra characteristic when looking for value for the standard characteristic... I don't know if this is clear...
Maybe somebody else could help here; else open an OSS!
Good luck
Julien
Hi Julien,
I have already checked 544904 note earlier. I copied the code again to check but problem is same with even the standard code. I think it has something to do with callback functions. Callback function are not getting called once I select custom char.
Can you think of anything further?
Thanks for help,
Purvang
User | Count |
---|---|
13 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.