Skip to Content
author's profile photo Former Member
Former Member

BDC Session transactions

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2007 at 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..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2007 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2007 at 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á

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2007 at 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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2007 at 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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.