2007 Jun 04 1:15 AM
Hello,
I am and include within a user exit and what i am trying to do is:
populating a field that shows up in a screen popup. transaction is iw32 for which the program name is different than that of the screenvalue that im trying to populate. in iw32, in components tab, i add a component and then i get a popup to populate the purchasing group field and this is the field that i am trying to put a default value into so that I do not get prompted. Please help.
Thanks.
2007 Jun 04 2:44 AM
Hey Jasmeet
You can definitely get the values of RESBD in this exit. Please use the code below to get the resbd-ingrp value from the screen:
DATA:l_field(60) TYPE C VALUE '(SAPLCOMK)RESBD',
ls_resbd TYPE resbd.
FIELD-SYMBOLS: <fs_resbd> TYPE ANY.
*Fetching the Component Item from the Screen. This is for read-only
*purpose and content should not be changed.
ASSIGN (l_field) to <fs_resbd>.
if sy-subrc eq 0.
ls_resbd = <fs_resbd>.
UNASSIGN <fs_resbd>.
endif.
Now you have all the values in the structure ls_resbd and you can easily set the value for ingrp according to your conditions.
Hope this helps. Let me know if this is what you want.
cheers
shivika
Hey Jasmeet
You can definitely get the values of RESBD in this exit. Please use the code below to get the resbd-ingrp value from the screen:
DATA:l_field(60) TYPE C VALUE '(SAPLCOMK)RESBD',
ls_resbd TYPE resbd.
FIELD-SYMBOLS: <fs_resbd> TYPE ANY.
*Fetching the Component Item from the Screen. This is for read-only
*purpose and content should not be changed.
ASSIGN (l_field) to <fs_resbd>.
if sy-subrc eq 0.
ls_resbd = <fs_resbd>.
UNASSIGN <fs_resbd>.
endif.
Now you have all the values in the structure ls_resbd and you can easily set the value for ingrp according to your conditions.
Hope this helps. Let me know if this is what you want.
cheers
shivika
2007 Jun 04 1:23 AM
Hi jasmeet,
Can you please be more specific as which field you are populating and which exit etc.
Regards,
Atish
2007 Jun 04 1:34 AM
I am populating field resbd-ekgrp from user exit EXIT_SAPLCOMK_007
2007 Jun 04 1:56 AM
Hi jasmeet,
I just had a look at that exit and this exit is not having this field in its exporting parameter.
I am just able to see fields CAUFVD-WERKS and RESBD-LGORT as the exporting field.
If the field is not the part of the exporting parameter then you can't pass the changes made to this field in that exit.
Reward points to useful answers.
Regards,
Atish
2007 Jun 04 2:02 AM
Hi Atish,
What I am trying to do is:
Add a non stock component of type DIEN which is SERVICES and look for the purchasing group for this component in table MARC. If there is an ekgrp, then do nothing but if there isnt one, then assign a dummy group. Does this sound possible?
2007 Jun 04 2:10 AM
Hi Jasmeet,
yes it can be possible, but I am not sure through which EXIT. you need to find out the exit which has the exporting parameter EKGRP.
Hope this help. Revert back if further query.
Reward points to useful answers.
Regards,
Atish
2007 Jun 04 3:59 AM
2007 Jun 04 4:05 AM
Then reward the points to useful answers and close the thread
Regards,
Atish
2007 Jun 04 2:44 AM
Hey Jasmeet
You can definitely get the values of RESBD in this exit. Please use the code below to get the resbd-ingrp value from the screen:
DATA:l_field(60) TYPE C VALUE '(SAPLCOMK)RESBD',
ls_resbd TYPE resbd.
FIELD-SYMBOLS: <fs_resbd> TYPE ANY.
*Fetching the Component Item from the Screen. This is for read-only
*purpose and content should not be changed.
ASSIGN (l_field) to <fs_resbd>.
if sy-subrc eq 0.
ls_resbd = <fs_resbd>.
UNASSIGN <fs_resbd>.
endif.
Now you have all the values in the structure ls_resbd and you can easily set the value for ingrp according to your conditions.
Hope this helps. Let me know if this is what you want.
cheers
shivika
2007 Jun 04 3:41 AM
Hi Shivika,
Somehow I cannot get the purchasing group field which is resbd-ekgrp field to populate in the pop up ...i keep getting mesage to enter the purchasing group.
2007 Jun 04 3:58 AM
Hi Shivika,
I have been able to do it. Thanks a lot for your help.
2007 Jun 04 4:33 AM
2007 Jun 04 4:42 AM
Hi Shivika, I did exactly what you said and added my search condition to retrieve the value that i wanted to populate the field with, and it worked.
2007 Jun 04 5:28 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |