on 12-19-2007 3:36 PM
Hi,
We are trying to transfer some catalog text into a new text ID "ZPAI" that i have created in SRM.
For this, we are using IF_EX_BBP_CATALOG_TRANSFER~ENRICH_ITEM_DATA
In standard, only the vendor text is filled.
What we want is to transfer one of the catalog text into this ZPAI text type ID (not a CUF !).
Up to now, we didn't find any solution.
Did anybody succeed in transfering catalog text into Z text type ID ?
We already looked at wiki, SDN forum and OSS...
Kind regards,
Yann
We had the same requirement at my company, only a text should be transferred to the internal note text id and the vendor text (as well as a custom made text id).
So our problem is like the one you are describing. The way we solved this is as follows:
1. Put all the text into the long description OCI field, this is mapped to the vendor text id in the badi.
2. To make a distinction between vendor text and internal note we put an identifier in the line something like NOTE** (or in your case ZPAI**) in front of the actual text.
3. LOOP over all the CT_LONGTEXTS where the tdline contains the NOTE**. Use the SPLIT command to separate the text id and actual text into a structure of BBP_PDS_LONGTEXT (don't have the actual name here).
SPLIT ct_longtext-tdline AT '**' INTO ls_longtext-tdid ls_longtext-tdline.
4. Add a counter and language
5. ADD ls_longtext to the CT_LONGTEXTS table.
6. Delete the original line from the ct_longtexts table
Above solution is for the longer kinds of texts. If the text stays below 50 characters or so (check the length of CUST_FIELD5), you can put your catalog text in there and start from point 3b to 5.
I hope this gives you an idea what kind of things you could try out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yann,
Have you already followed these steps :
- look in structure BBP_OCI_ITEM for CUST_FIELD1 to CUST_FIELD5 if these can suite the transfer of texts.
- look in structure BBP_OCI_ITEM for appending exit structure CI_OCI_CUSTOMER_EXTENSION with your field
- look in the catalog form html if these fields are sent.
Regards,
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laurent,
We already used CI_OCI_CUSTOMER_EXTENSION and data from catalogue are well transfered to SRM badi.
However, this is nthe next step that is causing us a problem as we have to fill in the SC or PO item text ID with the value we have received from the catalogue.
How do you do it ?
Kind regards,
Yann
Ok now i see.
Did you also take a look after the badi where longtexts are transferred :
program : LBBP_SC_APPF65
line identifier : **.. longtexts from catalog
PERFORM text_update
USING
ls_item-guid
c_ltxtid_itxt
lt_text
CHANGING
cs_document.
lt_text must be filled at this stage.
Best regards,
Laurent
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.