06-16-2009 11:58 AM
Hi Experts,
I want to Call Transaction F110 by passing the values
RunDate (REGUV-LAUFD)
Identification (REGUV-LAUFI)
But since Parameter Id is not there for these fields so i am not able to call this tcode with parameters.
Please suggest me some other way to achieve this.
Regards,
Dheepak
06-16-2009 12:50 PM
hi,
try this
DATA: bdcdate(8), kill_id(5).
bdcdate0(4) = payrdate4(4).
bdcdate4(4) = payrdate0(4).
kill_id = payriden.
PERFORM bdc_dynpro USING 'SAPF110V' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR' 'F110V-LAUFI'.
PERFORM bdc_field USING 'BDC_OKCODE' '=VODE'.
PERFORM bdc_field USING 'F110V-LAUFD' bdcdate.
PERFORM bdc_field USING 'F110V-LAUFI' kill_id. PERFORM bdc_dynpro USING 'SAPLSPO1' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE' '=YES'.* perform bdc_dynpro using 'SAPF110V' '0099'.
CALL TRANSACTION 'F110' USING bdcdata MODE 'N' UPDATE 'S'
Hope this solves your issue.
06-16-2009 12:50 PM
hi,
try this
DATA: bdcdate(8), kill_id(5).
bdcdate0(4) = payrdate4(4).
bdcdate4(4) = payrdate0(4).
kill_id = payriden.
PERFORM bdc_dynpro USING 'SAPF110V' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR' 'F110V-LAUFI'.
PERFORM bdc_field USING 'BDC_OKCODE' '=VODE'.
PERFORM bdc_field USING 'F110V-LAUFD' bdcdate.
PERFORM bdc_field USING 'F110V-LAUFI' kill_id. PERFORM bdc_dynpro USING 'SAPLSPO1' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE' '=YES'.* perform bdc_dynpro using 'SAPF110V' '0099'.
CALL TRANSACTION 'F110' USING bdcdata MODE 'N' UPDATE 'S'
Hope this solves your issue.
06-16-2009 2:50 PM
hi Kamaya,
Thank You for your Reply.I want to call this tcode in workflow method so, only this code will do or should i write the whole BDC code in my workflow method in order to archive this.
Regards,
Dheepak
Edited by: dheepak on Jun 17, 2009 12:40 PM
06-17-2009 8:32 AM
Hi,
You need to write the full code for BDC
However I would suggest to create a FM and write the BDC code inside that
call that FM in your WF method.
Regards
Bikas
06-16-2009 1:11 PM
Deepak...it has to be through BDC's as mentioned in the earlier post....
You can...record a transaction using the SHDB transaction...then you will have an idea!