cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer Attachments via PR to SRM

Former Member
0 Kudos

Hello All,

I would like to know if the following is feasible for SRM 5.0 Extended Classic Scenario:

1. For the Manually created PR’s, vendor text needs to be modified to enter certain data which should appear on the PO. Currently, we have blocked users from using me52n.

2. Attaching documents in PR and transferring the same to SRM. Since its 5.0, the report BBP_EXTREQ_TRANSFER is run.

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you for inputs experts. There is a now change in the requirement. Client wishes to create a plant maintenance order (with attachments & Vendor text) and then create PR's. This would be passed onto SRM. I wish to understand if this is possible in any way.

former_member184111
Active Contributor
0 Kudos

Hi Vicky,

For transferring text from erp to srm have a look at the code snippet below...this is for transferring header text but you can adapt it to transfer item texts

BADI BBP_BADI_EXTREQ_OUT Method BBP_GROUPING_MAPPING for this.

You need to read the header text using FM READ_TEXT some thing like..

DATA: lt_lines         TYPE STANDARD TABLE OF tline,

           ls_lines     TYPE tline,

           lt_note_text     TYPE bbpt_er_text_i,

           ls_note_text TYPE bbps_er_text_i,

           lt_temp_text_imp TYPE bbpt_er_text_i.

CALL FUNCTION 'READ_TEXT'

       EXPORTING

         id                           = 'B01'   <--text id can be header text or item text like 'B03' for material PO text

         language                = sy-langu

         name                      = PR Number Here <-for item concatenate fields 'parent' & 'item_guid' into this field

         object                      = 'EBANH' <---for item this should be 'EBAN'

       TABLES

         lines                   = lt_lines

       EXCEPTIONS

         id                      = 1

         language                = 2

         name                    = 3

         not_found               = 4

         object                  = 5

         reference_check         = 6

         wrong_access_to_archive = 7

         OTHERS                  = 8.

IF lt_lines[] IS NOT INITIAL.

       LOOP AT lt_lines INTO ls_lines.

         ls_note_text-parent_guid = 'First Item GUID here from importing table item_imp'   

         ls_note_text-text_id        = 'NOTE'

         ls_note_text-text_line     = ls_lines-tdline.

         ls_note_text-langu_iso    = 'Language ISO from item_imp table'.   

         APPEND ls_note_text TO lt_note_text.

         CLEAR ls_lines .

       ENDLOOP.

APPEND LINES OF lt_note_text TO lt_temp_text_imp.

IF lt_temp_text_imp IS NOT INITIAL .

     text_imp = lt_temp_text_imp .

   ENDIF.

For transferring attachments at header enhancement is required...have a look the blog..

http://scn.sap.com/community/srm/blog/2013/03/07/purchase-requisition-header-attachment-transfer-to-...

Thanks,

Anubhav

Former Member
0 Kudos

For 1. Check badi BBP_BADI_EXTREQ_OUT in ECC .

For 2 . Check note 974332 - No attachments transfer within external requirements and it says you must be on atleast SRM 6.0 for this to work. But you can test this in your system?

Regards,

Sushil.