‎2007 Mar 05 10:36 AM
1.By using session method we can handle more than one transaction. How can we add more than one transaction in BDC_INsert function module.
2. by using open dataset we have created a file in application server.how can we locate that file without using the dataset statements.how can we know or how can we check that the file has been created or not.
please tell me the answer for these 2 questions.
‎2007 Mar 05 10:40 AM
1. After the first BDC_INSERT , u can use another BDC_INSERT
with different session name and tcode other than used in the first BDC_INSERT...
2. Check sy-subrc.
if the file is created sy-subrc will be 0. other wise not equal to zero.
reward if it helps u..
‎2007 Mar 05 10:40 AM
1. After the first BDC_INSERT , u can use another BDC_INSERT
with different session name and tcode other than used in the first BDC_INSERT...
2. Check sy-subrc.
if the file is created sy-subrc will be 0. other wise not equal to zero.
reward if it helps u..
‎2007 Mar 05 10:40 AM
1 .For first question check this document:
http://help.sap.com/saphelp_nw04/helpdata/en/fa/097133543b11d1898e0000e8322d00/frameset.htm
2.
Call the function PFL_CHECK_OS_FILE_EXISTENCE.
FUNCTION PFL_CHECK_OS_FILE_EXISTENCE.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" FULLY_QUALIFIED_FILENAME LIKE TPFHT-PFFILE
*" EXPORTING
*" FILE_EXISTS LIKE BTCH0000-CHAR1
*"----------------------------------------------------------------------
OPEN DATASET FULLY_QUALIFIED_FILENAME FOR INPUT.
IF SY-SUBRC EQ 0.
FILE_EXISTS = 'X'.
CLOSE DATASET FULLY_QUALIFIED_FILENAME.
ELSE.
CLEAR FILE_EXISTS.
ENDIF.
ENDFUNCTION.
If useful reward.
Vasanth
‎2007 Mar 05 10:44 AM
Hi!
1. Your BDC program conatins similar performs:
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR' 'RMMG1-MTART'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_transaction using 'MM01'.
You can continue it, with another performs:
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR' 'RMMG1-MTART'.
perform bdc_transaction using 'MM02'.
And so on...
You are allowed to create more transactions in one record, in transaction SM35 - recording.
2. Check AL11 transaction, or set up an FTP connection to the server
Regards
Tamá
‎2007 Mar 05 10:46 AM
Hi Joseph Marcel,
For your 2nd question, the solution is as follows:
1. Go to Transaction AL11
2. Search for a SAP directory DIR_HOME
3. Double click on that and
4. Press ctrl+F ,
5. Type your file name.
The steps solve your problem.
If helpful,reward.
I will post the solution for your 1st question after some time.OK
Regards,
V.Raghavender.
‎2007 Mar 05 10:51 AM
Hi again,
You can use the FM (BDC_INSERT) two times subsequently one after the other wtih different transaction codes.
Hope that your problems solves.
Reward, if helpful.
Bye,
V.Raghavender.