Skip to Content

Update Z TABLE upon credit block in sales order

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 06, 2014 at 10:37 AM

    Thanks to Eduardo Hinojosa and M. Sethu Madhavan .

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

    Regards,

    OD

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 02, 2014 at 10:05 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 02, 2014 at 12:25 PM

    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

    Add comment
    10|10000 characters needed characters exceeded