Skip to Content
author's profile photo Former Member
Former Member

SD_CUSTOMER_MAINTAIN_ALL return sy-subrc = 0, but a erro has occurred

Hi everybody,

I am testing the function SD_CUSTOMER_MAINTAIN_ALL, and work ok if the data are correct. But when you modify a customer with a incorrect data, for example KNA1-STCD1 incorrect, SD_CUSTOMER_MAINTAIN_ALL return sy-subrc equal 0 too. This modification has not occurred because we don't allow incorrect stcd1.

somebody know how to detect if the customer has been changed really?

thanks.

Manuel

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 04, 2007 at 11:38 AM

    Hi,

    if u don't raise the exception in function module then the sy-subrc value will be 0.so what might be happened that inside the FM for ur scenario the exception is not maintained,hence u r getting as sy-subrc 0..

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 12:14 PM

    hi Manuel,

    Copy the FM 'SD_CUSTOMER_MAINTAIN_ALL' into Z' function module. Insert code such that it will detect and validate changes for the fields you require.

    Thanks,

    Kasiraman R

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.