cancel
Showing results for 
Search instead for 
Did you mean: 

Listing/exclusion error

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

nagarajan_ramudu
Active Participant
0 Kudos

Was your problem solved? I am getting the same error.

Former Member
0 Kudos

No. not yet. still Looking for the solution.

Answers (1)

Answers (1)

Former Member
0 Kudos

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