11-22-2007 2:34 PM
I am developing one program and inside that program I am submitting RFBIBL00 program.
I want the document numbers generated via RFBIBL00 in my original program as I have some further processing with these documents. I am using FBB1 transaction for posting.
Can any one tell me what should I do for this?
11-22-2007 2:48 PM
Hi Sonali,
Try to Get the parameter ID of the document number.
DATA: WA_BELNR LIKE BKPF-BELNR.
GET PARAMETER ID 'BLN' FIELD WA_BELNR.
I hope this helps
Regards
Francisco
11-23-2007 6:03 AM
Hi Francisco,
Thanks for helping me out. I have some additional queries for this.
While submitting program RFBIBL00 which method should I use?
As I want the document numbers in the same program after submitting RFBIBL00 so I think call transaction should be used because I don't want any session to be created for this.
Again If I use the parameter id then if more than one document number has to be retrieved how will it handle?
11-23-2007 4:24 PM
Hi Sonali,
I think this would helps u.
I needed somethig similar but using the tx AS01 and I Make a "little Batch Input"
See that I use a CALL TRANSATION with the addition MODE 'E' . Whit this addition will not create any other session, at least that the data you send was wrong.
The code was something like this...
.
.
.
REFRESH bdcdata.
.
.
.
PERFORM bdc_dynpro USING 'SAPLAIST' '1000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BUCH'.
PERFORM bdc_field USING 'BDC_CURSOR'
'ANLA-ANLN1'.
PERFORM bdc_transaction USING 'AS01'.
CLEAR wa_anln1.
Here I get the New Asset Number
GET PARAMETER ID 'AN1' FIELD wa_anln1.
&----
*& Form bdc_transaction
&----
FORM bdc_transaction USING tcode.
DATA: ctumode LIKE ctu_params-dismode VALUE 'E'.
"A: show all dynpros
"E: show dynpro on error only
"N: do not display dynpro
DATA: cupdate LIKE ctu_params-updmode VALUE 'L'.
"S: synchronously
"A: asynchronously
"L: local
CALL TRANSACTION tcode USING bdcdata
MODE ctumode
UPDATE cupdate.
CLEAR bdcdata.
REFRESH bdcdata.
ENDFORM. " bdc_transaction
----
Start new screen *
----
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "BDC_DYNPRO
----
Insert field *
----
FORM bdc_field USING fnam fval.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDFORM. "BDC_FIELD
If u r generating more than one document, i thik that u have to make a call transaction as many times u need and saving the documents numbers into a internal table to handle them later.
Hope this help,
Regards
Francisco
11-26-2007 8:16 AM
Hi Francisco,
Thank you for the information.
It will help me a lot.
But I can't use ,the procedure you hav given.
Because that the normal BDC call.
My requirement is that I will use RFBIBL00 program. Using this program I will post the documents provided in the filepath.
Anyway, the information provoided by you helped me a lot to clarify some doubts.
Thanx a lot for your great help.