cancel
Showing results for 
Search instead for 
Did you mean: 

Fox message: show description instead of technical name

Former Member
0 Kudos

Hi, I use a fox message, which works fine, where I loop over products:

Foreach Product.

.....

Message I001(UPF) with 'Product'.

Endfor.

In the error message I only see the technical name of the product.

But I would like to see the description instead of the tech name or both (tech. name and description).

Is there any way I can achieve this?

Regards,

Mirko

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Matthias,

that's exactly what we came up with yesterday as well:

FOX:

FOREACH PRODUCT.

CALL FUNCTION Z_GET_DESCRIPTION

EXPORTING I_STRING = PRODUCT

IMPORTING I_EXPORT = TEXT.

MESSAGE E001(UPF) WITH TEXT.

ABAP:

FUNCTION Z_GET_DESCRIPTION.

"----


"*"Lokale Schnittstelle:

*" IMPORTING

*" REFERENCE(I_STRING)

*" TYPE /BI0/OIG_CWWESB

*" EXPORTING

*" REFERENCE(I_EXPORT) TYPE RSTXTSH

*"----


data: /BI0/TG_CWWESB.

data: lv_text(20) type c.

select TXTSH

from /BI0/TG_CWWESB

into lv_text

where G_CWWESB = i_string.

endselect.

I_export = lv_text.

ENDFUNCTION.

Thanks,

Mirko

Former Member
0 Kudos

Hi Mirko,

you can write a function which return the description. Before raising the message call this function for the product in your FOX. You receive the description and are able to hand it over to the message. This should not be too complicated if you can write some ABAP.

Hope this helps.

Matthias