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

HELP with a Batch Input - Transaction VF01

Former Member
0 Likes
1,378

Hi

It's me again, with another question... this time it's a Batch Input, creating a delivery with more than 20 items, how can I do with the error

Field KOMFK-VBELN(69) does not exit in the screen SAPMV60A 0102

and if I click on OK-Code how to indicate (in code lines) to simulate the process <b>EDIT</b> (From Menu bar) <b>More Documents F7</b>

Thanks in advance!!!

Tokio

Hi

It's me again, with another question... this time it's a Batch Input, creating a delivery with more than 20 items, how can I do with the error

Field KOMFK-VBELN(69) does not exit in the screen SAPMV60A 0102

and if I click on OK-Code how to indicate (in code lines) to simulate the process <b>EDIT</b> (From Menu bar) <b>More Documents F7</b>

Thanks in advance!!!

Tokio

6 REPLIES 6
Read only

Former Member
0 Likes
1,077

Go to the menu of that screen and get the function code of 'Edit-->More items'. That will be your okcode for bringing more blank line items. You will have to reset your counter back to either 1 or 2 depending on whether choosing that menu option brings the blank line to the top row or the second row.

Read only

former_member186741
Active Contributor
0 Likes
1,077

this screen only hold 14 items in the table control holding the KOMFK-VBELN field.

As Srinivas says, you can use the F7 to open more lines. Your will program will have to keep track of how many records you have and hit f7 whenever you need to open up again to receive more documents.

Read only

Former Member
0 Likes
1,077

Thanks to all of you...

These are my fist lines to answer one of my posted problems ...

Preview code lines:



perform bdc_dynpro using 'SAPMV60A' '0102'.                           

   loop at entregas.                                                  
     move sy-tabix to fila.                                           
     concatenate 'KOMFK-VBELN(' fila ')' into cadena.                 
     perform bdc_field using cadena entregas-entrega.                                                                                
IF FILA GE '20'.                                                 
       PERFORM BDC_FIELD USING 'BDC_OKCODE'  '=P+'.                   
       MOVE SY-TABIX TO FILA.                                         
       CONCATENATE 'KOMFK-VBELN(' FILA ')' INTO CADENA.               
       PERFORM BDC_FIELD USING CADENA ENTREGAS-ENTREGA.               
     ENDIF.

New code lines:

CLEAR ENTREGAS.

PERFORM BDC_DYNPRO USING 'SAPMV60A' '0102'.
  LOOP AT ENTREGAS.
     MOVE SY-TABIX TO FILA.

   IF FILA LT 22.
      CONCATENATE 'KOMFK-VBELN(' FILA ')' INTO CADENA.
      PERFORM BDC_FIELD USING CADENA ENTREGAS-ENTREGA.
   ENDIF.

   IF FILA EQ 22.
    CONCATENATE 'KOMFK-VBELN(' FILA ')' INTO CADENA.
    PERFORM BDC_FIELD USING CADENA ENTREGAS-ENTREGA.

    PERFORM BDC_OKCODE USING '=FKAN'.
    PERFORM BDC_DYNPRO USING 'SAPMV60A' '0102'.
   ENDIF.

   IF FILA GE 23. BREAK FOSTKFRT.
     DATA: FILA2(2), CNT2 LIKE SY-TABIX VALUE 2. MOVE CNT2 TO FILA2.
     CONCATENATE 'KOMFK-VBELN(' FILA2 ')' INTO CADENA.
     PERFORM BDC_CURSOR USING CADENA.
     PERFORM BDC_FIELD USING CADENA ENTREGAS-ENTREGA.
     CNT2 = CNT2 + 1.
   ENDIF.
  ENDLOOP.
  CLEAR CNT2.

I hope these lines could help.

Regards

Tokio

Read only

0 Likes
1,077

Have you looked into using Function Modules to create your invoice ? WE're using this function, RV_INVOICE_CREATE, it might be helpful. That way you don't have to worry about the screen sequence and all.

Anyway, just an alternative.

Read only

0 Likes
1,077

Jonathan

I'll check it, thanks.

Tokio

Read only

0 Likes
1,077

Hi Tokio,

Do check if <b>BAPI_BILLINGDOC_CREATEMULTIPLE</b> meets ur requirements.

thanks,

Subba