cancel
Showing results for 
Search instead for 
Did you mean: 

Update Z TABLE upon credit block in sales order

od_manikandan
Active Contributor
0 Kudos

Hai,

We configured Static credit check for customers, system perform credit check in sales order and block the sales order for delivery.

User release the document through VKM3.

Now we want to configure -

At the time of Sales order creation, Sales order number to be updated in a Z Table when sales order gets blocked due to credit check.

Here problem is Abaper informed that VBUK - CMPSA = 'B' not get updated at the time of saving sales order. (Tried in userexit_save_document)

Please advise which field to be checked and user exit can be used.

Regards,

OD

Accepted Solutions (1)

Accepted Solutions (1)

od_manikandan
Active Contributor
0 Kudos

Thanks to Eduardo Hinojosa and M. Sethu Madhavan .

Got the field VBUK- CMPSA in structure, earlier Abaper was checking in table.

Regards,

OD

Answers (2)

Answers (2)

msethu_madhavan
Explorer
0 Kudos

Hi,

Why do u want to update the blocked SD docs in a Z table? Because it can be retrieved using VKM1 transaction.

You can ask the ABAP er to use the logic behind the VKM1 transaction & use it to update the Z table.

Regards,

Sethu

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

In the userexit you mention you can try to set a break-point, run VKM3 and compare XVBUK and YVBUK (also XVBUP and YVBUP). See SAP Note 178328 - Problems due to incorrect user exits in SD about the meaning of X-tables and Y-tables and how to avoid troubles with these userexits (avoid COMMIT,...)

I hope this helps you

Regards

Eduardo