on 10-07-2009 9:40 AM
HI All,
we have to create one listing condition based on Price list Type for which we have added one custom field as ZZPLTYP.
When we are creating a single record with reference to any price list type the system is not accepting any material for any customer and V118 message is coming.(Material XXXXXXXX is not listed and therefore not allowed).
While checking in Debug mode we have found that if the PLTYP field is blank the error occurs (in line #5) .
I believe there must be other way also that even the PLTYP field is blank system should go forward.
I am pasting the code also for reference.
1. FORM userexit_move_field_to_kompg.
2. IF NOT xvbkd-pltyp IS INITIAL.
3. MOVE xvbkd-pltyp TO kompg-zzpltyp.
4. else.
5. MOVE ' ' TO kompg-zzpltyp.
6. ENDIF.
7. ENDFORM.
Please help.
Regards
Gautam
Are you maintaining Listing/Exclusion in VB01 for the same customer ?? You need to check in VB02 whether you have listed that material. If not, maintain the same and retry.
thanks
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are maintaining through VB01 only.
But the problem is, even if we maintain a single record for a single material, the error comes for any material and any customer; weather they are maintained in the listing records or not. We are not able to create any sales order then.
In the code given above, if we pass any valid Price list type in Else condition explicitly, then it is working fine. But that will create problem in further stages because it will change Price list type for the records.
My question is if any price list type is not maintained for customer, then in user exit how can we satisfy else condition that the system does not give error.
Regards
gautam
Hi,
goto va01 screen enter sold - to - party
switch on: listing/exclusion analysis (path:environment>analysis>on)
now enter material ,
this will take you to the analysis page for listing/exclusion
this will give you a clear picture where excatly the problem is
regards
senya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.