2010 Mar 25 12:30 PM
Dear all,
We have a no of configure materials. I am creating sales quotation and order from external system. Almost each material of us contain nearly 50 characteristics.
We will give only few of them as a option for customer at the time of creation of quotation or order . These data we are maintain at ct04 . There is an option whether visible or not . if it is visible we can see them at cu50 screen.
The same cu50 screen we i can see at va21 or vao1 at the time of selecting characteristics. I tried with different fm and coding but i am not yet get that.
Is it possible to show the get default characteristics. If any body one work on this previously on this please share me your ideas on this.
Below i am attaching my code
data: new_instance like inob-cuobj.
data: functionkey like sy-ucomm.
data: et_values type table of ibvalue0.
data: wa_et_values like line of et_values.
call function 'CE_C_PROCESSING'
exporting
instance = '000000000000000000'
reference_instance = '000000000000000000'
date = sy-datum
DISPLAY = ' '
object_id = 'MARA'
object = 'C100000'
owner_id = 'MARAT'
**HEADER_SCREEN =
plant = '1000'
**NO_DIALOG = ' '
**MATERIAL_VARIANT = '000000000309120112'
no_f8 = ' '
no_f11 = ' '
sub_type = '01'
simulation = ' '
type = 'E'
**EFFECTIVITY =
initialization = 'X'
**CALLED_FROM_SALES = ' '
**BOM_APPLICATION =
**IS_BUSINESS_OBJECT =
*
importing
return_with_functionkey = functionkey
new_instance = new_instance
*
**TABLES
**APPLICATION_INPUT =
**APPLICATION_OUTPUT =
*
exceptions
internal_error = 1
instance_not_found = 2
reference_instance_not_found = 3
instance_is_a_classification = 4
no_plant = 5
no_quantity = 6
no_connection_to_configuration = 7
material_variant_not_allowed = 8
internal_error_ecm = 9
eoasl_not_allowed = 10
maxasl_not_allowed = 11
xc_unprocessed_data = 12
xc_failure_processing_data = 13
no_bom = 14
others = 15
.
*break alr.
*if sy-subrc = 0 .
*
**MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
**WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*
*endif.
*
*write: new_instance.
*
call function 'CUCB_GET_VALUES_FROM_INSTANCE'
exporting
iv_instance = new_instance
*
**IS_BUSINESS_OBJECT =
**IV_MOMENT =
importing
et_values = et_values " here i am getting the characteristics but i am getting few of them
*
**EXCEPTIONS
**INVALID_INSTANCE = 1
**INSTANCE_IS_A_CLASSIFICATION = 2
**OTHERS = 3
.
if sy-subrc = 0.
**MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
**WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*
**Ausgabe
loop at et_values into wa_et_values.
write: / wa_et_values-atinn,
wa_et_values-atwrt.
endloop.
Regards,
Madhu.
Dear all,
We have a no of configure materials. I am creating sales quotation and order from external system. Almost each material of us contain nearly 50 characteristics.
We will give only few of them as a option for customer at the time of creation of quotation or order . These data we are maintain at ct04 . There is an option whether visible or not . if it is visible we can see them at cu50 screen.
The same cu50 screen we i can see at va21 or vao1 at the time of selecting characteristics. I tried with different fm and coding but i am not yet get that.
Is it possible to show the get default characteristics. If any body one work on this previously on this please share me your ideas on this.
Below i am attaching my code
data: new_instance like inob-cuobj.
data: functionkey like sy-ucomm.
data: et_values type table of ibvalue0.
data: wa_et_values like line of et_values.
call function 'CE_C_PROCESSING'
exporting
instance = '000000000000000000'
reference_instance = '000000000000000000'
date = sy-datum
DISPLAY = ' '
object_id = 'MARA'
object = 'C100000'
owner_id = 'MARAT'
**HEADER_SCREEN =
plant = '1000'
**NO_DIALOG = ' '
**MATERIAL_VARIANT = '000000000309120112'
no_f8 = ' '
no_f11 = ' '
sub_type = '01'
simulation = ' '
type = 'E'
**EFFECTIVITY =
initialization = 'X'
**CALLED_FROM_SALES = ' '
**BOM_APPLICATION =
**IS_BUSINESS_OBJECT =
*
importing
return_with_functionkey = functionkey
new_instance = new_instance
*
**TABLES
**APPLICATION_INPUT =
**APPLICATION_OUTPUT =
*
exceptions
internal_error = 1
instance_not_found = 2
reference_instance_not_found = 3
instance_is_a_classification = 4
no_plant = 5
no_quantity = 6
no_connection_to_configuration = 7
material_variant_not_allowed = 8
internal_error_ecm = 9
eoasl_not_allowed = 10
maxasl_not_allowed = 11
xc_unprocessed_data = 12
xc_failure_processing_data = 13
no_bom = 14
others = 15
.
*break alr.
*if sy-subrc = 0 .
*
**MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
**WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*
*endif.
*
*write: new_instance.
*
call function 'CUCB_GET_VALUES_FROM_INSTANCE'
exporting
iv_instance = new_instance
*
**IS_BUSINESS_OBJECT =
**IV_MOMENT =
importing
et_values = et_values " here i am getting the characteristics but i am getting few of them
*
**EXCEPTIONS
**INVALID_INSTANCE = 1
**INSTANCE_IS_A_CLASSIFICATION = 2
**OTHERS = 3
.
if sy-subrc = 0.
**MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
**WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*
**Ausgabe
loop at et_values into wa_et_values.
write: / wa_et_values-atinn,
wa_et_values-atwrt.
endloop.
Regards,
Madhu.
2010 Mar 25 1:09 PM
hi
idea:
new characteristic: internal / external
write a procedure: if ...external > no display characteristics...
set the procedure at your config profile.
But how can we set internal/external > may also with an procedure ?
I think it´s easier to work with procedurs on config profile instead of the abap coding....
Robert
2010 Mar 25 5:02 PM
Dear Robert,
Thank you for your reply. Finally i got a reply from one . Here the new characteristics are internal only . but they have some options . If is from external also it should display all the characteristics . from they customer may select the options.
I think now i am clear in this. Please think and tell me .
Regards,
Madhu.
...
2010 Mar 26 6:14 AM
hi, a little story:
one or two years ago I had to imploy a shop of config materials in a Webgui ( ITS ). Our Business tell me that the customer shoud see the Characteristics & Values, but i´t´s to difficult for the customer to make the configuation.....
ok what I have done:
1. Made a tool to save configurations in a Z table
Table: Matnr, kunnr, varnam, .... IMCOUNT, inlcude IBVALUE0
Prog: using FM CE_C_PROCESSING to fill this table....
2. our business define Variants for our customer & save that into the z table..
3. customer oder prozess:
customer choose one of his defined variant
Display z-Table Values in a table control
Values of the z-Table are nearly complient with Bapi_create_order 2.. > config
THE End...
So if it were possible for you to define Variants instead of possibility to config of the user... take my story....
if not...
try:
A: part of my story for fix characterisics
B: small config profil & less characteristics for the user configs
write A & B into the Bapi_create....2 ..
Risk: A & B must be part of the whole profile of the config material...
Best Practise >>> no no & no....
Could work >> maybe... ( with trend to yes )
Lot of work >> YES
difficult to understand >> yes
I hope I could give you some ideas,
Best regards
Robert
2010 Mar 26 8:08 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |