on 10-06-2006 11:55 AM
Hello
I have enhance the products in AII with the settyps "COMM_PR_GTIN, COMM_PR_SHTEXT und COMM_PR_UNIT" in the category AII_MATERIAL.
So it´s possible to fill this fields, and print them on label (since this fields are in the element set SAP_ALL_FIELDS).
Now I have the need to enhance the products in AII with four fields (type string).
a) Is there any way I can do this with this settyps ?
b) How can I bring this fields in SAP_ALL_FIELDS ?
kind regards
Herbert
I found the answer for a)
In fakt its more a CRM topic.
- In transaction "COMM_ATTRSET" you can define settypes and attributs (Type String, Date, ...)
- After this you can assign this settyp to the category
- Now the fields are visible in transaction "COMMPRO1"
You can find more about settyps in the CRM-Forum
Regards
Herbert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here the anser for b)
1. Put the fields in SAP_ALL_FIELDS
2. Put the fields in your Elementgroup for Printing
3. Modification of /AIN/ACT_ELEMENT_VALUES_GET
In this Funktion AII looks for the fieldvalues.
The are some fixes values, some are from the document context. You have to write some code which fields the fielsvalues regarding your needs:
In
Create Field List
CASE <fs_values>-fieldname.
we have a case-construkt to fill the fieldvalues
put some code like this:
WHEN 'Z_PRODUCT_GENERIC1' or 'Z_PRODUCT_GENERIC2' or
'Z_PRODUCT_GENERIC3' or 'Z_PRODUCT_GENERIC4'.
" Jena: Generic1
IF lv_prod_not_found <> /ain/cl_c=>true.
IF lt_prod[] IS INITIAL.
PERFORM get_product USING is_id_data
iv_devgrp_guid
iv_doc_guid
iv_action_type
it_user_data
CHANGING lt_prod
lt_ret_msg.
APPEND LINES OF lt_ret_msg TO et_ret_msg.
ENDIF.
IF lt_prod[] IS INITIAL.
lv_prod_not_found = /ain/cl_c=>true.
ENDIF.
CLEAR: ls_prod, lv_index.
LOOP AT lt_prod INTO ls_prod.
CLEAR ls_uom1.
PERFORM zget_generic USING is_id_data
iv_doc_guid
it_user_data
ls_prod
<fs_values>-fieldname
CHANGING lv_generic.
lv_index = lv_index + 1.
IF lv_index > 1.
ls_fieldlist-fieldvalue = lv_generic.
APPEND ls_fieldlist TO lt_fieldlist.
ELSE.
<fs_values>-fieldvalue = lv_generic.
ls_fieldlist-fieldname = <fs_values>-fieldname.
ENDIF.
ENDLOOP.
ENDIF.
In the form zget_generic you can write your own code to retrive the data
User | Count |
---|---|
13 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.