‎2006 Mar 23 3:36 PM
Hi,
Is there is any way the forecast data can be entered in to the material( Already existing material) .
I am trying this trough the BDC program however I am able to enter only first 11 values of the unconsumption value and the rest of the values requires a scrool down button pressed. I have written BDC for that but the OK code for scroll down is not getting generatred and hence the next value get entered on the 11 th row ( which is last one )
Please help .. its very urgent
Thanks in advance
Vikas
‎2006 Mar 23 6:31 PM
Hi Tomar,
Glad to help you.
1. I never post a single question but you can look at this link to reward points.
Go to question 'How do I recognize a helpful answer to my post (award points) ?'
2. Go to SE51 (Screen Painter) -> Enter Program: SAPLMGD1 and Screen Number: 2551 -> Choose Element List -> Diplay -> Click Mod. Group/Functions tab -> Check Function Code available.
Then you go to Flow Logic and search for function code above and where is being used. In this case, go to MODULE OKCODE_VERBRAUCH.
Hope this info will help you in the future.
Regards,
Ferry Lianto
‎2006 Mar 23 3:40 PM
Hi Tomar,
Please use BDC_OKCODE = '/00' to go to next 11 line items.
Hope this will help.
Regards,
Ferry Lianto
‎2006 Mar 23 4:10 PM
Hi Ferry,
I have given BDC_OKCODE = '/00'. however this is not making the list scrolldown so that further entries can be done ..
below is attched code
RECORD-VBWRT_11_027.
PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4110'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'MAKT-MAKTX'
record-MAKTX_028.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RM03M-VBWRT(11)'.
PERFORM BDC_FIELD USING 'RM03M-VBWRT(11)'
RECORD-VBWRT_11_029.
PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4110'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'MAKT-MAKTX'
record-MAKTX_030.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RM03M-VBWRT(11)'.
PERFORM BDC_FIELD USING 'RM03M-VBWRT(11)'
RECORD-VBWRT_11_031.
PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4110'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
This is not working ...
‎2006 Mar 23 4:23 PM
Hi Tomar,
Instead of scroll down, use PAGE DOWN when recording..this gets recorded in ur BDC n u get work it accordingly.
Hope it helps,
Regards,
Bikash
‎2006 Mar 23 4:42 PM
Can you handle this in another way, after each record entry press ENTER or press 'Add new records'. In this way you do not need to worry about scrolling.
Usually in sap transaction, there is a provision to add records. When you press this button cursor always remains at 2nd line. So you can just hardcode '(02)' in program.
‎2006 Mar 23 4:20 PM
Hi Tomar,
Please try BDC_OKCODE = 'P' or 'P+'.
What transaction code are you using?
I will try to explore.
Regards,
Ferry Lianto
‎2006 Mar 23 4:56 PM
Thank u Ferry, for the intrest and ur time.
I tried both "BDC_OKCODE = 'P' or 'P+'".. however got the message "Function code can not be selected "
Also tried to find out wht OK code is getting captured by going into debugging for the screen , suprisingly OK-code field does not get populated ...
you can try this by goin to following steps
1. Execute transaction 'MM02'
2. Enter a material which has forecast data
3. Select the forecast view
4. Enter corresponding plant
5. Click on the button "CONSUMPTION VAL" at the right-bottom of the screen
6. you ll get a screen and on the left boottom of the screen press a button "UnplndConsumption"
7. you l get the screeen where if you scroll down after entering 11 valuse and OK-code is not getting capured.
I hope I could explain it properly and you can simulate the problem ..
Thanks again
waiting for reply,
VIkas
‎2006 Mar 23 5:23 PM
Hi Tomar,
Looking at screen painter and logic, only the following OKCODE are available.
VWFP
VWNP
GESV
UNGV
VWPP
VWLP
Please try <b>BDC_OKCODE = 'VWNP'</b>. I think it should work.
Regards,
Ferry Lianto
‎2006 Mar 23 6:14 PM
Thank u so much ferry. Now two things pls.
1. how do I assign points to this answer and efforts of urs .
2. how can one find out the possible value of okcodes for a screen like you did.:-)
thanks Once again,
Best regards
Vikas
‎2006 Mar 23 6:31 PM
Hi Tomar,
Glad to help you.
1. I never post a single question but you can look at this link to reward points.
Go to question 'How do I recognize a helpful answer to my post (award points) ?'
2. Go to SE51 (Screen Painter) -> Enter Program: SAPLMGD1 and Screen Number: 2551 -> Choose Element List -> Diplay -> Click Mod. Group/Functions tab -> Check Function Code available.
Then you go to Flow Logic and search for function code above and where is being used. In this case, go to MODULE OKCODE_VERBRAUCH.
Hope this info will help you in the future.
Regards,
Ferry Lianto