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

Advanced Shipping Notification documen enhnacment - ABAP proxy enhancements

Hi,

I have been assigned to customize standard ASN documents with additional fields and map the same to the enhanced ASN (delivery) structure in ECC via PI. Accordingly I have been able to add additional field in the General Tab of the ASN Header and also got it saved in the SNC DB (DDIC table /1OM/DELVDLH1100). In addition to this, I was able to add custom validation messages for the custom field by creating custom message in SE91 and mapping the same to a custom created validation check which in turn got linked to standard Validation profile P003. This was done by implementing the BADI method VALIDATE of the interface /SCMB/IF_EX_BOL_VALFRMWRK (BAdI name - /SCMB/BOL_VALFRMWRK).

Now I need to provide inputs to the PI guy and also enhance the ABAP proxy so that it gets captured in PI side.

How should I proceed with this requirement?

While publishing the ASN I was trying to debug method SEND of class /SCMB/CL_SVDELIVERY when I encountered call to FM /SCA/DM_DLV_SEND_DIRECT in update mode. Unfortunately even after setting update debugging to active, I wasnt able to debug the FM.

This effort was mainly to understand the data flow to PI side from SNC . Please help.

Regards,

Rohit

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 28, 2011 at 08:50 AM

    Hi Rohit,

    You have created custom created validation check for ASN assigned the same to validation profile P003 (which is when ASN is save as a draft ) system won't check when ASN is published.

    If you want this custom validation check should be check when ASN is published then you need assigned same validation check with validation profile P001.

    You have created Z-fields in table /1OM/DELVDLH1100 ASN header extenstion table which means you need to create either custom XML tags or reuse existing XML tag which is not in use (make sure this should effect future requirements if u reuse any XML tag) in DDN_IN XML header level.

    case 1) If you are going for custom XML tags them enhancement of proxy in this case you need to provide below details to PI guys:

    XSD type(like xsd:token),Min length,Max.lenth,Min.Occurs,Max.Occurs

    case 2) which XML tag u want to reuse with above details so that PI guy can mapped this field to the required field in the IDoc.

    Regards,

    Nikhil

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I found a solution which involves using the pre exit to FM /SCA/BIF_DESDLVRY_OUT and forcing the system to ignore the standard implementation using CHECK 1 EQ 2 statement. The entire standard code was copied and places where the data from the input structure is pushed to the message interface is changed and synced with the proxy structure generated from custom namespace holding the Z- namespace.

      However the ABAP proxy which got generated from the custom namespace doesnt hold the method EXECUTE_ASYNCHRONOUS (a key method to send the constructed ASN message to PI). Am I missing out something in this approach? Please let me know.

      Regards,

      Rohit

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.