on 10-15-2008 12:46 PM
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
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.
"----
*" 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.