Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Parameter Id to Standard Data Element.

Former Member
0 Likes
2,529

i have searched alot but didnt find any matching discussion.

here is my query.

i want to attach parameter id to standard data element,

i.e MARA-XCHPF (Batch Management Field).

i know hoe to create custom parameter id but dont know how to

assign it to standard data element.

i dont have access key.

please suggest how to achieve this..


1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,053

- Without access key, forget it.

- What is your actual purpose (adding a parameter id is not a functional requirement but a solution) - something like seting this value by default when creating a material master record ?

Regards,

Raymond

16 REPLIES 16
Read only

gouravkumar64
Active Contributor
0 Likes
2,053

Hi,

Using Z data element with same functionality and put that parameter id in further characteristics can solve your problem?

Gourav.

Read only

0 Likes
2,053

no, not at all.

i want to know how to attach parameter id to standard data element.

not the custom one.

Read only

0 Likes
2,053

Hi,

<< Link farming removed>>

Gourav.

Moderator message: When providing links , add your own supportive texts,explanations etc. and let the OP know the portion you are trying to explain.

Message was edited by: Kesavadas Thekkillath

Read only

0 Likes
2,053

both of these links are not of any use to me.

these provide information for how to set parameter id to custom data element or in report/selection screen.

but i want to set parameter id for std data element.

for table mara-xchpf (Batch management requirement indicator).

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,054

- Without access key, forget it.

- What is your actual purpose (adding a parameter id is not a functional requirement but a solution) - something like seting this value by default when creating a material master record ?

Regards,

Raymond

Read only

0 Likes
2,053

Exactly!!

the actual requirement is while creating the material master record i want on Plant Data / Stor 1. tab,

there is a option of check at Batch managment.

i want to set this check tick as default.

Read only

0 Likes
2,053

Hi

Just as Raymond says it needs to change the standard data element (so you need the access key) in order to add a parameter ID:

Now are you sure that will solve your problem?

I mean even if you assign a parameter ID to that data element, that doesn't mean it will be used in the program (without any modification).

Max

Read only

0 Likes
2,053

You see how important it is to provide as many details as possible in your first post. Obviously what you had in mind is not the best solution to the underlying requirement.

Instead look for other ways to default material master data, a quick research brought up BADI_MATERIAL_REF, for example.

Maybe this can even be handled by customizing only, so also speak to a functional expert.


Thomas

Read only

0 Likes
2,053

i dont know, i just want to check batch managment  tick.

i dont have access key . then what is sol'n?

Read only

0 Likes
2,053

As wrote, check Csutomizing or BADI_MATERIAL_REF for default values in MM01.

Regards,

Raymond

Read only

0 Likes
2,053

hello all,

as you have said, i implemented badi BADI_MATERIAL_REF.

(although there was no existing implementation of this badi).

this is the code which i have written in badi implimentation.

METHOD IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL.

   BREAK-POINT.

   I_MARA-XCHPF = 'X'.

   I_MARC-XCHPF = 'X'.

ENDMETHOD.

but still i am not getting tick on batch managment.

i know spoon feeding is an offence here,

but still i ask you to give it a try once and come up with

some furthur hint.


Read only

0 Likes
2,053

Hiii ,

         I_MARA and I_MARC is importing parameter as you can see in method ...... you have to set

   E_MARAU-XCHPF = 'X'.
   E_MARCU-XCHPF = 'X'

   

   just do this   

   

  

Read only

0 Likes
2,053

thanks ashish,

i am done.feeling little bit insulted for this stupidity.

but thnks alot.

Read only

0 Likes
2,053

Hiii,

       It's ok dude .... you had done almost   In future whenever put break point just view local and global parameter or view definition of method ..... just do smart debugging

Read only

0 Likes
2,053

The code could look like

method if_ex_material_reference~create_material.

  data: l_ptab type sptap

.

* Main loop

  loop at it_material_tables into l_ptab.

    case l_ptab-tbnam.

* - MARA

      when 'MARA'.

        if i_material_status ca 'K'

        and l_ptab-biststat na 'K'.

          e_marau-xchpf = 'X'.

        endif.

* - MARC

      when 'MARC'.

        if i_material_status ca 'L'

        and l_ptab-biststat na 'L'.

          e_marcu-xchpf = 'X'.

        endif.

    endcase.

  endloop.

endmethod.

(I let you check the exact value for material status to test)

Regards,

Raymond

Read only

0 Likes
2,053

thanks raymond....came to learn few new concept of material master.