BDC Back ground error

I have created BDC for PA30 transaction for infotye 24. It is working fine in fore ground but not uploading the data in background.
Is there solution for this like ctu parameters ??

Hi,
check this program........
REPORT  ZBDC_LFH2 .
TABLES:LFA1.
PARAMETERS:FILE(200) TYPE C.
DATA:BEGIN OF ITAB OCCURS 0,
      LIFNR TYPE LIFNR,
      NAME1 TYPE NAME1,
      LAND1 TYPE LAND1,
      END OF ITAB.
*DATA:ITAB LIKE LFA1 OCCURS 0 WITH HEADER LINE.
DATA:JTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
   CLIENT                    = SY-MANDT
   GROUP                     = 'LFUP'
   USER                      = SY-UNAME.
  OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
OPEN DATASET file IN TEXT MODE ENCODING DEFAULT FOR INPUT.
   DO .
   READ DATASET FILE INTO ITAB.
   APPEND ITAB.
   IF SY-SUBRC <> 0.
   EXIT.
   ENDIF.
LOOP AT ITAB.
REFRESH JTAB.
   PERFORM SUB USING 'ZVIF' '0100'.
   PERFORM SUB1 USING:'LFA1-LIFNR' ITAB-LIFNR,
                      'LFA1-NAME1' ITAB-NAME1,
                      'LFA1-LAND1' ITAB-LAND1.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
   TCODE                  = 'ZVIF'
  TABLES
    DYNPROTAB              = JTAB.
    ENDLOOP.
    ENDDO.
    CLOSE DATASET FILE.
CALL FUNCTION 'BDC_CLOSE_GROUP'.
FORM SUB USING A B.
CLEAR JTAB.
JTAB-PROGRAM = A.
JTAB-DYNPRO = B.
JTAB-DYNBEGIN = 'X'.
APPEND JTAB.
ENDFORM.
FORM SUB1 USING C D.
CLEAR JTAB.
JTAB-FNAM = C.
JTAB-FNAM = D.
APPEND JTAB.
ENDFORM.
Regards
Shaik.

Similar Messages

  • Error in BDC Back Ground Processing

    Dear All,
    I am facing problem on while executing BDC program. First i am executing in Foreground method there it displaying errors occured,
    means it showing full discription or error.
    But when i used Back ground processing its displayig the full error discription like "No posting object defined for 1230/ / / " here i need full error discription.
    please do the need full.
    Regrads,
    Srinivas.

    Hi
    In background processing you cannot see the error message, for that you have to write logic for capturing messages.
    Use 'Format_Message' function module so that you can get the complete message and then you can display that on the screen.
    Hope it helps...

  • Session method back ground error

    Hi All,
    I am doing BDC for XK01 transaction it's giving error when we run the session in back ground but the same is running fine in the foreground? is there any parameter we have to pass for bdc session fun module when we run back ground?
    Thanks&Regards
    mahesh

    Hi..,
    <b>If u r populating data from presentation server file,u will get a dump obviously..</b>
    becoz it will not have any contact with presentation server while running in back ground.
    To make it run successfully, First store the file on <b>Application server</b>.. then onli it will work...
    To store a file in application server u need to use OPEN DATASET  and  CLOSE DATA SET....
    reward all helpful answer..
    aruna.

  • Regarding bdc back ground job

    hi,
              i want to run the bdc from the program itself  not using any transaction
              could u plz tell me the syntex clearly with comments.
          very urgent plz.

    Hi,
    The name Batch Input Session itself tells u that a batch session will be craeted and u have to run it manually.
    Automatically it will not get executed.
    Go for ''call  transaction'' to execute it immediately...
    However if u want to use Batchinput session method, then u have to capture teh session name first and then u can run that Session in the back ground by creating the 'Background job' by sm36.
    Cheers,
    Simha.

  • BDC Back ground processing

    Dear all,
              I have created one enhancement spot in the VA01 Transaction code.While saving it has to do PGI. For that i written BDC program .BDC program working well in Forground But it is not working in background mode.
                         Even in debugging mode program running well .it is not working if I Swith off the debugger .
    Please help me.

    Hi Shaik,
    Apart from above 2 probable reasons and solutions i have one more thought for this issue. This may be because of time lag.
    When u run in debug/foreground we have some time for data base updation(VA01). I mean to say by the time u call ur BDC document might not updated in the database with out which it is not possible to do PGI. Try to give some wait time before u call do ur BDC call. Also check the error messages ur getting in BDC(Put piece of code to download the messages into ur PC/application server)
    Try this option before ur BDC.
    WAIT 3 SECONDS.
    Thanks,
    Vinod.

  • ERROR IN BDC SESSION BACK GROUND ( USING PP03 T.CODE)

    Hi Experts,
    When i am executing the session ( pp03 T.Code) ,it is working fine in fore ground as well as in display errors mode. But it is not working in back ground mode.
    it is raising the exception ( cntl-system-error).
    I used flat file which is in the presentation server . I accessed it by gui_upload Function Module.
    <b> I am also getting the error using data sets . After upload the presentation server data into one internal table .I sent it to application server using open data set ( transfer ) , after that i read the application server data using open dataset ( read )
    into another internal table ( i declared with same structure of flat file ) .</b>
    But this time also it is giving same error ( runtime exception).
    Please tell me how can i handle using datasets .  Its Very urgentttttttt
    Please any body help meee ( If any one worked on this (pp03 T.code) ) .
    Send the code  or Inform the full detailsss as soon as possibleeee
    regards ,
    dattu malge.

    Hi,
    Go to the transaction SM35 and select your session and then click the Process Button.
    Here you select the Processing Mode as "Background".
    It is not possible to execute the same session by more than one user at a same time.
    RSBDCSUB is used to automate the processing of Batch input session.
    Cheers,
    Hakim

  • Back ground job bdc session

    Hai All,
    Can any one tell me how to catch the erros in BDC session method back ground job.
    I need to update Sales orders in BDC session, back ground job.
    Finally at the end I need to generate a report which contains all the succesfull updates & errors.
    I tried this using call transaction with messtab and is working fine.
    Please tell me how to do this in Session method.
    Thanks & Regards,
    Bhaskar.

    Hi Bhaskar,
    In Session method what you need to do is before processing of hte BDC first you need to check all the data. And if any error found then populate it into the internal table. And that internal table you need to display it on the output......
    I think this is the solution but I am not to sure........
    &********Reward Point if helpful*******&

  • BDC is not working in back ground

    Hi all,
    I have created bdc for F-51 but it is not working in back ground (mod N)  and it is not showing any error in error tab , but  it is working fine in mod A & E .I tried  with mod P  and using CTU_PARAMS but no use..
    I have tested my recording in SHDB , in SHDB I have assigned session ,
    And I executed that session in SM35  .
    In SM35 I given processing mod foreground and error mod both are working fine but while trying in Background mod it is showing below error
    u201CThe difference is too large for clearingu201D
    How can I resolve this problem?

    Hi Rakhi,
    The error which you are getting u201CThe difference is too large for clearingu201D will come if the DEBIT AMT - CREDIT AMT <> 0. So the document which you are trying to select is either not there on the list or it is not getting selected while running in background. If it is not getting selected them the reason may be of you screen resolution, have you selected Default Size while recording ? and have you passed the same to CTU_PARAMS.
    Thanks & Regards,
    Faheem.

  • Error while activating ODS is not caught in the back ground job..

    Hi All,
    We have a back ground job to load data to ODS and to activate it..If there is any error while loading or activating the data, back ground job is going into loop instead of cancelling the job..As the job is going into loop we are unable to trace the error unless we cancel the job manually and checking it..We have switched off displaying any messages while doing the back ground job...also we can not set any time limit for the job as it always depends on the volume of the data.
    My requirement is , back ground job must get cancelled if there is any error while loading the ODS..Can anybody suggest any idea on this..
    Thanks for reading.
    Umamaheswar kumar

    Hi Uma,
    A few hints for running and schedule and monitoring process chains:
    - always schedule the process chain in tcode RSPC
    - check the log in RSPC for error messages, or
    - check BW monitor for the ODS concerned (tcode RSMO, tab Details)
    if anything is not working fine, the status of the corresponding load will show you the errors, warnings ...
    either in RSPC - log or RSMO.
    hope it helps.
    Regards,
    Lilly

  • Error in Back Ground processing of a report.

    Hi All,
    I have a report wherein I need to schedule it in background. Its an ALV report and it has got user defined GUI status. But for one of the selection options, only output is being displayed. Can this be scheduled in Back Ground?

    Hi all,
    Thanks for your reply.
    I  got the solution. When a program is scheduled in background, if it is written in classes and ALV grid display is used, we get this error. I am able to schedule when I change the function module to LIST_DISPLAY.

  • Back ground processing error

    program working fine in for ground but giving error while processing in back gorund
    Error occurred while loading internal tables T_FILE1  Error GD079

    Hi ,
    In the dump analysis please check where is this dump occurring and provide those details also  , because with the question you posted  it is difficult to suggest some thing,
    Regards
    Aarun

  • Report Back ground processing, error

    Hi,
    I tried to run my program in back ground. It is showing the following error. I'm just Pressing F9 and scheduling the job immediately. When i go and see the "own jobs " in SM36, it shows the "job cancelled". When i see the job log, it shows "Control Framework: Fatal error - GUI cannot be reached" and "ABAP/4 processor: RAISE_EXCEPTION". When i debug the job using JDBG transaction it runs smoothly and generates spool.
    Can you provide some solutioons?

    HI,
    Is your report having some OOPS functionalities?
    Are you making use of any container or ALV GRID object.
    In that case it will not run in background and will give you this error.
    Search in SCN. This has been discussed a lto of times.
    There are several posts on how to avoid this.
    Regards,
    Ankur Parab

  • Back ground mode in BDC

    Hi Experts,
    I am using 1 BDC to upload MDQ and NWC data in mm42.
    This BDC is working fine in foreground mode but it is not updating in background mode.
    Why this is happening and how to resolve it.
    rgds
    Amit

    Hi,
    If you are working through presentation server back ground mode doesnot work(gui_upload)
    if you are working through application server it will run in background mode(open Dataset)
    Hope it may help
    Thanks & Regards
    Ramakrishna Pathi

  • Error in Back ground job schedule for call transaction

    Hi Experts ,
    I have a Program which as Three BDC in it . 1 - to create contact person , 2- customer 3-sales order
    Using call transaction if i run with all screens and no screens it's running fine..
    if i schedule it background job
    conact and customer works fine but sales order not works ..
    can anyone give me the solution ?

    Hi Phani and Pavan ,
    It works Fine for Back ground anf fore ground i.e ( N and A )  sales order is created here .
    but Sales order not created when i schedule it in back ground  as
    Program - execute in back ground  .
    sales not created when i schedule it in background job  only using SM36 or Program - execute in back ground  ?
    Edited by: Pradeep Annaiah on Jan 13, 2009 5:29 AM

  • Submit Back ground job with error log

    Hi Gurus
    Can anyone help with Back ground job with error log. i want put all the error logs in to 1 internal table and submit the back ground .how can i do that .please help me

    Hi reddy ,
    i am not experienced this in real scenarion .. even though i would like to give my idea
    Put your logic inside the FM and execute in in background task mode on your action button .
    call function 'Function module name' in background task
    exporting
       parameter =
    importing
       ret =
    refer the below link for more detail on executing FM as  background task
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/frameset.htm
    Regards
    Chinnaiya P

Maybe you are looking for

  • If I have several tabs/windows open and I go to a new page, it hijack several of my current windows with that same URL. How to stop?

    I frequently have a couple of windows with several tabs in each window open. For example, I always have a small window open in the corner of my screen with a time tracking program set up. Sometimes when I open a new tab or window and go to a URL (not

  • Adding a second dataset to a report - fails

    I'm using Visual Studio 2008. In Design mode I'm able to attach to datasets to a report and get a preview. Now I'm trying to attach the data in the code. The report ran ok with a single dataset. It won't run with the second one attached. The code I'v

  • Report on Packing

    Hi all, I am looking for a way to report on Handling Units pe shipmnet, and material lines per handling unit along with the User ID that created the handling unit.  Seems all other aspects of LE there is some way to determine a line/hour effeciency r

  • Scrolling an inserted photo in mac mail

    I have inserted a photo using the templates found in the upper right of the mail window in this "air mail".  Put once the photo in place the heads are missing so although I get a hand symbol I am unable to move the photo up or down..   Using latest M

  • WDS compatibility, ABS Extreme & Motorola WR850G

    Hello. Does anyone know if the WDS functionality in the ABS Extreme and the Motorola WR850G router are compatible? The Motorola WAP is the primary AP and I am trying to get the ABS Extreme to connect to it. So far my tries have been unsuccessful, but