cancel
Showing results for 
Search instead for 
Did you mean: 

Transfering PR Header text to SC header

Former Member
0 Kudos

Hi experts,

We are using SRM 7.02 EhP2 in PDP scenario. Our requirement is to Enable PR Header text mapping with SC header in SRM. We came to know that this can be done with Text Mapping (Text Mapping for Inbound and Outbound Texts) , but it required Enterprise services. Can data transfer between SRM & ECC take place without using Enterprise services here?

So can anyone please guide how can we enable PR header text Transfer to SC without using PI/ Web services? Is there any SAP standard solution for this or we can utilize existing BADI for the same?

Regards

Varun

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184111
Active Contributor
0 Kudos

Hi Varun,

There is no header as such in the SC to display text so you can pass PR header text to first item of SC...

You can use 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'

         language                = sy-langu

         name                      = PR Number Here

         object                      = 'EBANH'

       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.


Thanks,

Anubhav

Former Member
0 Kudos

Hi Varun,


Have you tried looking into Text Mapping and Text Schema in SRM? Please review the same it is under SAP SRM --> Cross- Application basis settings --> Text Schema. Also Text Mapping is there where you map EXT_REQ text object from ECC to SRM. In help section of that it also stats what needs to be done in ECC side as well.


Standard Text types are available under EBAN such as B01 - Item Text, B02 - Item Note, B03 - Delivery Text etc.

Hope this helps.

Thank you

Ritesh

Former Member
0 Kudos

Hi Ritesh,

As already mentioned , we are not using PI or Enterprise services here so Text mapping through Standard Inbound cannot be done here. In SAP Documentation also they have mentioned the same :

To be able to map texts between SAP ERP and SAP SRM, you must use enterprise services for transferring data between the systems.

How can we achieve text mapping from ECC PR to SRM SC with traditional RFC calls. Does anyone have idea on if some logic can be achieved in BADI BBP_EXTREQ_TRANSFER?

Any hep would be highly appreciated.

Regards

Varun