2013 Nov 23 5:53 AM
Hello friends,
Here I'm getting stuck.
I have a variable LV_POSNR & at runtime LV_POSNR filled by some value suppose say 'VBAP-POSNR(01)'.
it means LV_POSNR has value 'VBAP-POSNR(01)'.
But here my requirement is I wants to assign some new value to VBAP-POSNR(01).
means suppose say VBAP-POSNR(01) = 00010.
So how can I assign value to other variable's value at runtime.
Regards,
Keyur.
2013 Nov 23 6:33 AM
Hi,
Question is not clear, please explain. Also is it something related to table control in bdc recording ?
Hello friends,
Here I'm getting stuck.
I have a variable LV_POSNR & at runtime LV_POSNR filled by some value suppose say 'VBAP-POSNR(01)'.
it means LV_POSNR has value 'VBAP-POSNR(01)'.
But here my requirement is I wants to assign some new value to VBAP-POSNR(01).
means suppose say VBAP-POSNR(01) = 00010.
So how can I assign value to other variable's value at runtime.
Regards,
Keyur.
2013 Nov 23 6:33 AM
Hi,
Question is not clear, please explain. Also is it something related to table control in bdc recording ?
2013 Nov 23 6:39 AM
Hi Ankit,
It is related to Table control in Module pool (not BDC).
Here I getting table control field VBAP-POSNR(03) in variable LV_POSNR at runtime.
Now I want to assign '00010' value to VBAP-POSNR(03).
Regards,
Keyur
2013 Nov 23 6:54 AM
Hi Keyur,
Try doing screen programming. It works for individual fields though i have not tried it for table control fields but i think only differentiator would be index here.
Ex -
field-symbols <fs_kdmat> type any.
constants lc_kdmat type char50 value '(SAPMV50A)LIPS-KDMAT'.
Assign (lc_kdmat) to <fs_kdmat>.
Replace '(SAPMV50A)LIPS-KDMAT' => '(SAPMV50A)LIPS-KDMAT(03)'.
Make the index dynamic using a counter variable.
2013 Nov 23 7:58 AM
Hi Pawar,
can you explain , are you working on customized module pool or standard?.
you can give value using update screen fields function module.
Regards,
Hiriyappa.
2013 Nov 23 8:07 AM
Hi Hiriyappa,
Yes off course, I can use Dynpro Update FM. But it is not working properly.
when I use this FM that time my value get updated but remaining screen's value getting Flushed & no one control or pushbutton works (not even BACK or EXIT button).
2013 Nov 23 8:10 AM
Hi, Ankit,
here in this case, I get '(SAPMV50A)LIPS-KDMAT(03)' in <fs_kdmat>.
But How to assign new value to (SAPMV50A)LIPS-KDMAT(03).
2013 Nov 23 8:19 AM
Change the value in <fs_kdmat> and automatically the screen field value will change.
BR.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |