Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8122

Re: Partner(s) is(are) not found - Quality collaboration

$
0
0

Hello Andrew,

 

Proceed as follow:

SPRO >> Supply Network Collaboration >> Business Add-Ins (BAdIs) for SAP SNC >> Basic Settings >> Processing Inbound and Outbound Messages >> BAdIs for Message Interfaces (Inbound XML Messages) >> BAdI for QualityIssueNotificationSUITENotification_In (/SCA/BIF_I_QINSUITENOT)

 

Now you have to create an enhancement implementation and activate it with a coding to remove or adding leading zeros of a vendor code.

 

method /SCA/IF_EX_BIF_I_QINSUITENOT~BEFORE_CONVERSION.

   FIELD-SYMBOLS <fs_vendor_party> type /SCA/BIF_S_VENDOR_PARTY.
   FIELD-SYMBOLS <fs_internal_id>  type /SCA/BIF_S_PARTY_INTERNAL_ID.

   loop at CS_QINSUITENOT-QUALITY_ISSUE_NOTIFICATION-VENDOR_PARTY ASSIGNING <fs_vendor_party>.

     CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
       EXPORTING
         INPUT  = <fs_vendor_party>-INTERNAL_ID-VALUE
       IMPORTING
         OUTPUT = <fs_vendor_party>-INTERNAL_ID-VALUE.

   ENDLOOP.

endmethod.


METHOD /SCA/IF_EX_BIF_I_QINSUITENOT~AFTER_CONVERSION.
* This BAdI example implementation performs
* an alphanumeric conversion of the QN Custumer ID

***************************************************************************************
   DATA: lv_qn_customer_id      TYPE /sca/dm_quality_customer_id.

* add leading zeros in case of numeric numbers

* Quality Notification Number has the conversion exit QNCNV
*  CALL FUNCTION 'CONVERSION_EXIT_QNCNV_INPUT'
*    EXPORTING
*      input  = cs_quality-customer_id
*    IMPORTING
*      output = lv_qn_customer_id.
*
*  cs_quality-customer_id = lv_qn_customer_id.

*  SHIFT cs_quality-customer_id LEFT DELETING LEADING '0'.

ENDMETHOD.

 

Let me know if you have any doubts.

 

Regards,

Alberto.


Viewing all articles
Browse latest Browse all 8122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>