Msg of type 'S' in BDC program and same msg of type 'A'

We have to upload data for ABZON transaction of assets. When we use LSMW with recording method and try to upload say 3 records. All teh records are updated successfully but the batch input session log says last two records with a message of type 'A' "leave transaction is not possible in batch input"
But when we upload the same data with BDC program with call transaction then teh log shows same message with type 'S'.
what could be the reason for this?
Though data gets uploaded successfully the 'A' message is being displayed in LSMW batch input log.
if anyone has encountered a similar problem pls let us know how to resolve this asap.
Thanks,
Simmi

hi,
one crucial point I remember by using enjoy tcodes for bdc is the change of field bukrs.
you must create one bdc-map for each company - program sth like this:
    LOOP AT itab.
      AT NEW bukrs.
        IF bk ne itab-bukrs.                    "not for 1st bk
          PERFORM open_btci_group USING map '00000000' 'X'.
          ADD 1 TO cnt.
          PERFORM bdc_dynpro      USING 'SAPLSPO4' '0300'.
          PERFORM bdc_field       USING 'BDC_OKCODE' '=FURT'.
          zeile = '01'.
          PERFORM bdc_field_loop USING  zeile 'SVALD-VALUE' itab-bukrs.
        ENDIF.
      ENDAT.
hope that helps

Similar Messages

  • If your Team Lead given Functional Specifications for a BDC program and you

    If your Team Lead given Functional Specifications for a BDC program and you need to decide wether to write a Method Call Transaction or a Session.
    How you will decide ?

    Hi Krishna,
    See this you will got some ideas.
    Diff b/w call transaction and session method is
    Call transaction.
    1) asynchronous processing
    2) can transfer small amount of data
    3) processing is faster.
    4) errors need to be handled explicitly
    5) data is updated automatically
    Session method.
    1) synchronous processing.
    2) can tranfer large amount of data.
    3) processing is slower.
    4) error log is created
    5) data is not updated until session is processed.
    Thanks,
    Reward If Helpful.

  • BDC programming and table controls selColumns

    Hello,
    I have a small question regarding BDC programming. I am already quite familiar with the process in creating one but I have one question regarding table control and its selColumns.
    Transactions like pa40 would require its users to select one of the rows in the table controls via SelColumns. My questions is how would you simulate this using BDC.
    Thanks people and take care.

    Hai Chad Cheng
    report Z_TAB_CONTRL_01
           no standard page heading line-size 255.
    data : begin of it_kna1 occurs 0,
           kunnr like RF02D-KUNNR,
           D0130 like RF02D-D0130,
           end of it_kna1.
    data : begin of it_kna2 occurs 0,
           kunnr like RF02D-KUNNR,
           BANKS like KNBK-BANKS,
           BANKL like KNBK-BANKL,
           BANKN like KNBK-BANKN,
           koinh like KNBK-koinh,
           end of it_kna2.
    data : V_Count(2) type n.
    data : V_Val(15).
    include bdcrecx1.
    start-of-selection.
      perform Get_Data1.
      perform Get_Data2.
    perform open_group.
    loop at it_kna1.
    V_Count = '04'.
    perform bdc_dynpro      using 'SAPMF02D' '0106'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02D-D0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02D-KUNNR'
                                  '10002103'.
    perform bdc_field       using 'RF02D-D0130'
                                  'X'.
    perform bdc_dynpro      using 'SAPMF02D' '0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=P+'.
    perform bdc_dynpro      using 'SAPMF02D' '0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=P+'.
    perform bdc_dynpro      using 'SAPMF02D' '0130'.
    loop at it_kna2 where kunnr = it_kna1-kunnr.
    if v_count = '10'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=P+'.
    perform bdc_dynpro      using 'SAPMF02D' '0130'.
    v_count = '00'.
    endif.
    V_Count = V_Count + 1.
    concatenate 'KNBK-KOINH(' V_Count ')' into V_Val.
    perform bdc_field       using 'BDC_CURSOR'
                                   'KNBK-KOINH(09)'.
    concatenate 'KNBK-BANKS(' V_Count ')' into V_Val.
    perform bdc_field       using V_Val
                                  it_kna2-BANKS.
    concatenate 'KNBK-BANKL(' V_Count ')' into V_Val.
    perform bdc_field       using V_Val
                                  it_kna2-BANKL.
    concatenate 'KNBK-BANKN(' V_Count ')' into V_Val.
    perform bdc_field       using V_Val
                                  it_kna2-BANKN.
    concatenate 'KNBK-KOINH(' V_Count ')' into V_Val.
    perform bdc_field       using V_Val
                                  it_kna2-KOINH.
    endloop.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UPDA'.
    perform bdc_transaction using 'FD02'.
    clear : it_kna1,it_kna2.
    endloop.
    perform close_group.
    *&      Form  Get_Data1
          text
    -->  p1        text
    <--  p2        text
    FORM Get_Data1 .
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = 'C:\tab_contl.txt'
       FILETYPE                      = 'ASC'
      ITEM                          = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      LINE_EXIT                     = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      SILENT                        = 'S'
    IMPORTING
      FILESIZE                      =
      CANCEL                        =
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      TABLES
        DATA_TAB                      = it_kna1
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      INVALID_TABLE_WIDTH           = 2
      INVALID_TYPE                  = 3
      NO_BATCH                      = 4
      UNKNOWN_ERROR                 = 5
      GUI_REFUSE_FILETRANSFER       = 6
      OTHERS                        = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " Get_Data1
    *&      Form  Get_Data2
          text
    -->  p1        text
    <--  p2        text
    FORM Get_Data2 .
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = 'C:\tab_cont1.txt'
       FILETYPE                      = 'ASC'
      ITEM                          = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      LINE_EXIT                     = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      SILENT                        = 'S'
    IMPORTING
      FILESIZE                      =
      CANCEL                        =
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      TABLES
        DATA_TAB                      = it_kna2
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      INVALID_TABLE_WIDTH           = 2
      INVALID_TYPE                  = 3
      NO_BATCH                      = 4
      UNKNOWN_ERROR                 = 5
      GUI_REFUSE_FILETRANSFER       = 6
      OTHERS                        = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " Get_Data2
    Thanks & regards
    Sreenivasulu P

  • Payment Program and Spot Exchange Rate Type

    Hi Everyone,
    When performing wire transfers in foreign currency, my company wants to be able to have the payment program, F110, be able to convert the payment to the vendor based on the bank's spot rate at that moment in time.  I found that we can use exchange rate type "G", update the rate within OB08 prior to running F110, input the exchange rate type "G" within the Parameter section within "Exchange rate type" and process the payment program as normal. 
    My question is this:  We have a few separate companies that would use this feature with the possibility of receiving different rates from their respective banks.  How would this work if 2 companies had 2 separate exchange rates for the same conversion on the same day?  I found that once you enter in an exchange rate for a conversion, you are stuck with that rate for that particular day, so the amount can not be over written with another rate to be used by the second company code.  Is there a way around this or is there a different way to accomplish the converting of currencies at the payment program?
    Thanks.
    Pete
    Edited by: Peter Zaborowski on Sep 26, 2008 2:35 PM

    Hi Peter
    Use two different exchange rate type for bank1 and bank1. Upload the exchange rate into the system. Select house bank and specified rate type during the payment run.
    Regards
    Srinivas

  • I am supppose to wire up a cluster to a callng library function thru the use of the "adapt to type" configuration.But the program lie in the data types in the struct.

    i have call library function that contain two arguement,two inputs i mean.The first input is simply an int which can be easily matched by labview data type.The second input is declared as a structure which i match it thru a cluster by using the adapt to type means.
    However,inside the structure there are four variables,two of which is PULONG and the other two is ULONG.Inside my cluster i can match the ULONG by a 32bit unsign integer labview data type but how can i match the PULONG with a labview data type?

    There is a great KnowledgeBase entry that discusses using the "adapt to type" option in a Call Library Function, and specifically using clusters.
    This KB, titled "I'm Having Trouble Accessing the Members of a Cluster Passed to a Shared Library Such as a DLL" is available at:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/bc2a65c0fe2868a1862566e80067c4e4?OpenDocument
    I found this article by going to www.ni.com, clicking on the KnowledgeBase link, and searching for "call library cluster."

  • How to download and upload BDC programs

    How to download and upload BDC programs from one instance to another instance? I would like to transport my BDC programs from one dev client to another Dev client not through transport like smartforms.(we can download smartforms to desktop and upload to someother client)

    Hi,
    No need to record again. You can save the recording session by generating the program in transaction SHDB. Then you can download the BDC program and upload to another SAP client using transaction SE38.
    Regards,
    Ferry Lianto

  • Issue while inserting a BDC program in Inbound Proxy.JDBC-- PI-- SAP.

    The scenerio is jdbcsender-sappi-inboundproxy(ECC6.0).
    The issue is related to SAP Plant Maintenance Module where  We have a requirement for creating Maintenance item
    programmatically from (SQLDatabase)Legacy Data for one of the interface.
    since there are no standard BAPIS/Idocs or function modules available from SAP side for creating the maintenance item. So I
    have written BDC program and with the help of submit statement in inbound proxy program, I am calling BDC program for
    creation of the maintenance item.
    When I tested the program independently on proxy side  the Maintenance Item is getting created successfully but when I
    executed from end-to-end ie.  SQLDATABASE->SAP PI-->SAP. The message is getting strucked into the queue and queue  got stopped on SAP.
    ECC side and the status of the message is scheduled state  on SXMB_MONI  transaction of SAP ECC.
    As the message  is in scheduled state multiple number of Maintenance Items are getting created with the same values.
    Has any one of our SAP friends, encountered this type of issue while inserting a BDC program in inbound proxy, please help 
    in fixing this issue. FYI... I am using sap pi7.0 with service pack 24 and ecc6.0
    Waiting for your kind expert guidance...
    cheers,
    Ram

    Raj,
    Thanks for the reply. I have tried registering the queues but still the same problem. the message got stuck in the queue of ECC and showing below message in queue.
    function module                                    StatusText
    SXMS_ASYNC_EXEC                  connection closed (no data)
    I have checked in the forums especially  for this issue but no one has provided the answer for this.
    Thanks and Regards
    Ram

  • You are given functional specs for a BDC program

    You are given functional specs for a BDC program
    and you need to decide whether to write a method
    call transaction or a session. How u will decide?
    plz explain clearly

    depends of type of erro handling required and amount of data to be transfered, we can decide which is best method.
    call transaction - no errorhandling, we have to write a code to show errors
    sessin method - errohandling is there, locking mechanism is there.
    for large amount of data , we should go for session method. for faster data transfer we can go for call transaction

  • Can anyone tell me the flow of BDC program?

    Hi
    Can anyone tell me the flow of BDC program and also what is the significance of each step?
    Thanks
    Gagan

    Not sure what you are asking here.  A BDC program is a recording over an SAP transaction.  The flow is determined by the screen sequence of the transaction which is being recorded. 
    What you do is fill an internal table with screen numbers and fields with values and fcodes.  Then call the transaction using the internal table.
    For example, the following program calls PA30 and enters a time event.
    report zrich_0001
           no standard page heading.
    parameters: p_pernr type pa0002-pernr,
                p_plans type t528b-plans.
    data: mode type c value 'N'.
    data:   bdcdata type table of bdcdata    with header line.
    data:   messtab type table of bdcmsgcoll with header line.
    start-of-selection.
      perform do_transaction using 'P10'
                             p_pernr
                             p_plans.
    *       FORM do_transaction                                            *
    form do_transaction using timev
                              pernr
                              plans.
      data: bdcdate(10) type c,
            bdctime(8) type c.
      call function 'CONVERT_DATE_TO_EXTERNAL'
           exporting
                date_internal = sy-datum
           importing
                date_external = bdcdate.
      write sy-uzeit to bdctime.
      clear bdcdata.  refresh bdcdata.
      clear messtab.  refresh messtab.
      perform bdc_dynpro      using 'SAPMP50A' '1000'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=INS'.
      perform bdc_field       using 'RP50G-PERNR'
                              pernr.
      perform bdc_field       using 'RP50G-TIMR6'
                                    'X'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'RP50G-CHOIC'.
      perform bdc_field       using 'RP50G-CHOIC'
                              '2011'.
      perform bdc_dynpro      using 'MP200000' '2500'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'T705H-GTEXT'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=DIFP'.
      perform bdc_field       using 'P2011-LDATE'
                              bdcdate.
      perform bdc_field       using 'P2011-LTIME'
                              bdctime.
      perform bdc_field       using 'P2011-SATZA'
                              timev.
      if timev = 'P10'.
        perform bdc_dynpro      using 'MP200000' '2221'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P2APL-PLANS'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=DOIT'.
        perform bdc_field       using 'P2APL-OTYPE'
                                'A'.
        perform bdc_field       using 'P2APL-PLANS'
                                plans.
        perform bdc_field       using 'P2APL-WAERS'
                                'USD'.
      endif.
      perform bdc_dynpro      using 'MP200000' '2500'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'P2011-LDATE'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=UPD'.
      call transaction 'PA30' using bdcdata
                                    mode mode
                                    messages into messtab.
    * If error occurs, give message and come out.
      if sy-subrc <> 0.
      endif.
      clear bdcdata.  refresh bdcdata.
      clear messtab.  refresh messtab.
    endform.
    *       bdc_dynpro
    form bdc_dynpro using program dynpro.
      clear bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      append bdcdata.
    endform.
    *        bdc_field
    form bdc_field using fnam fval.
      clear bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      append bdcdata.
    endform.
    Regards,
    Rich Heilman

  • BDC program is not working in BI Production.

    Dear All,
    My BDC program for RSA1 is working fine in BI Development, but it is not working in BI Production. I have debug the BDC program and found that data is coming from the excel file. Then why it is not working. Please help me.
    Thanks,
    With regards,
    Rosaline.

    Hi all, the problem is now solved.
    With regards,
    Rosaline.

  • Exporting BDC program to Word or Notepad file

    hellow sirs,
    is ther any way out for Automating the Export of BDC program
    ( Source Code) into Word file or note pad file..
    i.e.. whenever i run my BDC it performs its function as well as it copy its Source Code into Word File..
    thanking  you
    Rahul

    HI Rahul .
    Check this sample program to download source code of the program . Club your BDC program and this to get ur req done.
    *& Report  YDWNLD_REP
    REPORT  ydwnld_rep.
    TABLES: trdir,trdirt,devaccess,tadir.
    DATA: BEGIN OF itab OCCURS 0,
          text(300),
          END OF itab.
    DATA program LIKE rlgrap-filename .
    DATA: BEGIN OF int_reposrc OCCURS 0,
          progname LIKE trdir-name,
          END OF int_reposrc.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME.
    *PARAMETER CNAM LIKE TRDIR-CNAM.
    SELECT-OPTIONS: author FOR trdir-cnam.
    SELECT-OPTIONS: pogram FOR trdir-name OBLIGATORY.
    PARAMETERS: filename LIKE rlgrap-filename OBLIGATORY DEFAULT 'C:\'.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECT * FROM devaccess.
      CLEAR author.
      author-sign = 'I'.
      author-option = 'EQ'.
      author-low =  devaccess-uname.
      APPEND author.
    ENDSELECT.
    SELECT name  FROM trdir INTO TABLE int_reposrc
                          WHERE name IN pogram
                          AND   cnam  IN author.
    LOOP AT int_reposrc.
      CLEAR: itab,program.
      REFRESH itab.
      READ REPORT int_reposrc-progname INTO itab.
      IF sy-subrc = 0.
        CLEAR trdirt.
        SELECT SINGLE * FROM trdirt WHERE name  =  int_reposrc-progname
                                    AND   sprsl = 'E'.
        CLEAR tadir.
        SELECT SINGLE * FROM tadir WHERE obj_name = int_reposrc-progname.
        CONCATENATE filename tadir-devclass '\' int_reposrc-progname '-'
                     trdirt-text '.TXT'  INTO program.
        IF NOT itab[] IS INITIAL.
          CALL FUNCTION 'WS_DOWNLOAD'
            EXPORTING
              filename                = program
              filetype                = 'DAT'
            TABLES
              data_tab                = itab
            EXCEPTIONS
              file_open_error         = 1
              file_write_error        = 2
              invalid_filesize        = 3
              invalid_type            = 4
              no_batch                = 5
              unknown_error           = 6
              invalid_table_width     = 7
              gui_refuse_filetransfer = 8
              customer_error          = 9
              no_authority            = 10
              OTHERS                  = 11.
        ENDIF.
      ENDIF.
    ENDLOOP.
    I hope that it helps u .
    Regards,
    Venkat.O

  • BDC programs affected after system copy.

    Dear All,
    We are facing a problem after system copy with regards to the HR module.
    Client have created a BDC programs and it was running fine in the old server.
    After the system refresh, one of the BDC is having problem and following is the brief,
    1. While running a user transaction in FOREGROUND, the program is running correctly and in BACKGROUND the program is calling some other action which is not recorded in the BDC. One observation was made that, while running in DEBUG mode, with the background option, the program runs correctly.
    2. In program we are calling 2 PA40 actions, whose sequence no. are 28 and 61 resp. In background mode the program calling some other PA40 action whose seq no is 22.
    Is there anything we are missing in the profile or some settings in the applications to run the BDC program correctly?
    Regards
    Pras

    No, I haven't run that transaction.
    I have checked the old server, and the logical system is PRDCABS500 and the same is present in the new system.
    But I am amaze that the other BDC's are working fine, just 1-2 bdc are having problems?
    I have checked BD54 in new system its still showing the old..
    What do you recommend and when should this activity to be done( I information says that no users should be present?).
    Edited by: Prashant Dhas on Jun 13, 2008 7:05 AM

  • Does the background task support BDC program in Workflow?

    Hi Gurus,
    Environment:
    ECC 6.0
    WAS 640
    I've configured a task using Class method, in which a BDC program is called.
    When the task is set as background, it doesn't work. The workflow is suspended at this step.
    However,  when i unselected background option, it was all ok. The workitem is displayed in the mailbox, and can be executed through the mail box.
    The BDC mode is as follows,
      opt-dismode =  'N' .
      opt-updmode = 'S' .    
      opt-cattmode = 'N'.   
      opt-racommit = 'X'.
      opt-nobinpt = 'X'.
    Is it that the background task does not support BDC program?
    or any other reasons?
    Thanks.

    Hi,
    BDC will work in workflow. I done in one of my Project.
    Convert the BDC into FM and call it in workflow, Otherwise, in the FM call your BDC Program and map it workflow.
    Check the binding whether the values are passing or not.
    Regards,
    Surjith

  • New to BDC Programming

    Dear Guru,
    I'm very new to BDC programming and methodology.  Can anyone suggest me the best materials, sites or any knowledge repository to start learning with?  Thank you very much.  Reward will be given.
    Cheers,
    P.S. Any good example source code and program provided will be appreciate.

    hi,
    Check this thread.
    bdc
    Hope this helps !
    Cheers
    Alfred
    Reward with pints for helpful answers

  • Qestion BDC Program?

    some body have developed the bdc program and delivered to core team but the bdc program is not working there. They finally send the program to me wt should

    OO???
    Not sure what BDC has to do with OO.
    I'm sure the moderators have enough to do but it is much better for EVERYBODY to route questions to the appropriate forum  -- in this case probably ABAP====>General.  
    If you do this you can search for information that is related to the Forum title such as ABAP OBJECTS much more easiily as you don't have to trawl through lots of posts that have nothing to do with the Forum in question.
    A little tip as well -- BDC's should really be DISCOURAGED STRONGLY  wherever possible. They often throw up horrors in new releases and can be a real dog to de-bug.
    The use of BAPI's  where possible is much to be preferred and is the recommended way forward.
    Cheers
    - Jimbo

Maybe you are looking for

  • How can I get my iMac to be the primary screen again?

    Hi everyone!! A couple days ago I was watching a movie on my tv, which is my ''external monitor" for my iMac. I used VLC and it was full screen on my tv, I never had any problems with it. After the movie ended, I couldn't get my iMac screen to work.

  • Probleam in RFC lookup

    Hi , I am using RFC lookup in message mapping, i passing 2 input parameter and get 4 output parameter. I am not getting output in RFC lookup, but i test the RFC (se37) ,i got the output. Example: RFC input1: GHA         input2:02 PI RFC lookup output

  • Administrating Data Guard without complexity of Grid Control.  Possible?

    I wonder if someone can shed some wisdom about implementing and administrating Data Guard without the complexity of Grid Control. Don't get me wrong, I love the Data Guard feature provided by Grid Control, but installing Grid Control just for the sak

  • Error: insufficient system resources exist to complete the requested service

    Hi, Hope all are well. I am getting this error "insufficient system resources exist to complete the requested service" while trying to install Lookback Adapter on my Windows 7 Professional OS installed on my HP Laptop. Well, there is more to this pro

  • 2 person online tank game - how do i deal with lag?

    i'm working on a game called dodgebotz with little tanks throwing bouncing balls at each other in a four walled arena. the server is very simple and only relays a SpriteData object between the two clients. the clients receive and transmit SpriteData