cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Shipping Notification documen enhnacment - ABAP proxy enhancements

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Nikhil,

Thanks for your response. I shall try out the approaches u outlined.

If successful, I'll close the thread with my update.

Thanks,

Rohit

Former Member
0 Kudos

Hi Nikhil,

Somehow I am unable to get the exact classes and their corresponding methods, getting invoked while ASN gets published, therefore probably I am putting breakpoints at the wrong place. Is there is any document which I can refer to?

Also it will b great if you can share some of your inputs in this regard.

Regards,

Rohit

Former Member
0 Kudos

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