cancel
Showing results for 
Search instead for 
Did you mean: 

Preallocate Fields at SRM 4.0

Former Member
0 Kudos

Hallo,

I want to preallocate a field with more than 130 characters in the SC basic data. I do that in the BaDI BBP_CATALOG_TRANSFER. When it is longer, it will be cut. Is it possible to preallocate a field with more than 130 characters?

pls help! Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

How about using NEW_ITEM-LONGTEXT_n:132[] OCI field? It is unlimited length.

Regards,

Masa

Former Member
0 Kudos

OK, but in which BaDI should i put the data back in my z-field? I need that because it should be displayed in the basic data of the SC and the content can be changed!

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

can you please cahnge the type of h_enriched_item_data to

h_enriched_item_data type BBP_OCI_ENRITEM.

this doesnt make any big difference,but change it. as u have defined field ZZLINK of type CHAR and Length 250 , it should come .. can you please debudg and look into it where it is getting truncated.....can you also try once by changing the data type of the field ZZLINK to LCHR(long character)

Former Member
0 Kudos

Hi,

I changed h_enriched_item_data to type BBP_OCI_ENRITEM. The Problem is the same

I can't change zzlink to LCHR because in the table BBP_PDIGP it is included somewhere in the middle. And all LCHR must be at the end of an DB-Table. So it would be an modifcation...

Best regards.

Former Member
0 Kudos

Hi,

please look whether there is any type casting or if there is any type mismatch between the fields which you are using for data population.

can you please tell me which field you are looking into in the BBP_CATLOG_TRANSFER badi,can you put that code over here?

Former Member
0 Kudos

In the BaDI BBP_CATALOG_TRANS, Methode: ENRICH_ITEM_DATA the code is:

Data: h_enriched_item_data like line of enriched_item_data.

LOOP AT enriched_item_data INTO h_enriched_item_data.

h_enriched_item_data-zzlink = '<ahref="https://www.one-intra.net/C17/IT-ORM/Document%

20Library%20eMail%20Access/DSG%20Verpflichtung%20EXTERNER%20MA%20englisch%

20NEU.PDF" target="_blank"> Dokument </a>.

"many code is following, put the field is never changed after that.

MODIFY enriched_item_data FROM h_enriched_item_data.

ENDLOOP,

I have debugged it, but the characters are never cut. in the field are always the same characters. I don't know where the problem is

Edited by: chsp111 on Mar 11, 2009 1:28 PM

Former Member
0 Kudos

Hi,

if you are looking for a custom field then please change it in the structures

INCL_EEW_PD_ITEM_CSF_SC

INCL_EEW_PD_ITEM_CSF

there the lenght can be changed ..... and if you want the data changes in the basic data based on your requirement select the badi which u want to change.......

Former Member
0 Kudos

Thanks, but I have changed the structure CI_BBP_ITEM_SC and my field is type CHAR, length 250. That is not the problem!

When I prellocate the field in the BaDI BBP_CATALOG_TRANSFER with more then 132 characters, the string will be cut at character 132 and the rest of it is not displayed in the basic data in the SC!

My question is: Why is it cut?? And how can I change it to display more than 132 characters???

Thanks to everyone who can help me!!