‎2006 Dec 19 2:42 PM
Hello,
after searching a lot of threads about scrolling in batch input I have to turn to you for HELP. I'm trying to add a new materials in existing inspection plan with QP02.
Extra window is opened (program : SAPLCZDI screen: 4010). The number of lines is limited to 14 (in my case). With scrool bar you can move (vertikaly). There is no menu option (for OKCODE code) or any other button (add new) whith which help I could move around. In SHDB is normaly recorded (scroll) as /00. If you play a little bit you can record also =P+ or =P++. I try to process recording directly and it is NOT workig. As well in ABAP as batch.
In SM35 I can see screens as should be:
SAPLCPDI 8010 (open QP02)
SAPLCPDI 1400 (see the operations from menu (Inspection Plan) chose Mat.Tlist assigment )
SAPLCZDI 4010 (first package)
SAPLCPDI 1400 (back to operations
SAPLCZDI 4010 (second package)
SAPLCPDI 1400 (back to operations
SAPLCZDI 4010 (third package)
SAPLCPDI 1400 (back to operations) and save & exit
Evrything is OK except that in batch run-time pagedown is not executed?
I try '=P', '=P+', '=NP', "/00", ' ' and nothing works.
‎2006 Dec 20 3:38 AM
Hi Ales
Please check if you can make use of: <b>BAPI_INSPECTIONPLAN_CREATE</b>
Kind Regards
Eswar
‎2007 Jan 08 11:18 AM
Hello Eswar,
thank you for the answer. I try to use the BAPI_INSPECTIONPLAN_CREATE function unsuccessfuly. I become an error in return table BAPIRET2. Probably because is plan already created.
I only have to add some materials (more then 14) for each plan. I will try to use a part of the BAPI_INSPECTIONPLAN_CREATE function. (cp_cc_p_import_mtk).
‎2007 Jan 09 8:34 PM
Hello,
I had the same issue some time ago.
It worked fine with this:
DO l_count TIMES.
PERFORM bdc_dynpro USING 'SAPLCZDI' '4010'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=P+'.
ENDDO.
The counter was used for the case that material is already assigned (before via selected determined).
Remember also, when you did a page down, in table controls the line (01) is filled with the last entry from the page before, so you need to continue with (02).
I remember that I was quite a lot fighting with the transaction and that counter is updated in the loop when the data is filled. So practically after the first filled item I processed that page down. But it can also be that I was not yet so good with the assing in that times to use in a nice way all available lines.
Result of that entry: P+ should work !
Brm
‎2007 Jan 15 6:54 AM
Hello,
thank you for the answers. In meantime I manage to find the solution
which actually works.
Example code::
*********************
*calling the form 1st time
perform bdc_dynpro using 'SAPLCZDI' '4010'.
perform bdc_field using 'BDC_CURSOR' 'RC271-PLNNR'.
perform bdc_field using 'BDC_OKCODE' '=P++'.
*calling the form 2nd time
perform bdc_dynpro using 'SAPLCZDI' '4010'.
perform bdc_field using 'BDC_CURSOR' 'RC271-PLNNR'.
perform bdc_field using 'BDC_OKCODE' '=P+'.
*calling the form 3rd time
perform bdc_dynpro using 'SAPLCZDI' '4010'.
perform bdc_field using 'BDC_CURSOR' 'MAPL-WERKS(14)'.
perform bdc_field using 'BDC_OKCODE' '=BACK'.
*then you input tha values you want.
perform bdc_field using 'MAPL-PLNAL(14)' ITAB_MAT-ST_PL.
*********************
If I call 1st time with '=P' or '=P+' and then with the '=BACK' it doesn't work.
I also use the index 14! (safety) I didn't try with index 01 or 02.
Thanks again
Ales