2006 Sep 12 9:13 PM
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 0102and 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 0102and 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
2006 Sep 12 11:12 PM
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.
2006 Sep 13 12:02 AM
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.
2006 Sep 15 3:44 PM
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
2006 Sep 15 10:34 PM
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.
2006 Sep 18 2:00 PM
2006 Sep 19 11:16 AM
Hi Tokio,
Do check if <b>BAPI_BILLINGDOC_CREATEMULTIPLE</b> meets ur requirements.
thanks,
Subba
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |