MIGO BDC is not working in  Scheduled BG Job

Hello,
For Subcontracting Purchase Order Item, we are using the BDC Call Transaction method for the TCode
MIGO in the program  'ZMIGO_TEST'.
When we are testing the Program 'ZMIGO_TEST' through SE38 it is running successfuly and document is also posted but problem is when we schedule the same program 'ZMIGO_TEST' in SM36, same BDC code for MIGO Transaction is not working and giving the Error in IST_BDCMSGCOLL as folloow.
MSGID: - DC
MSGTYP: - S
MSGNR: - 006
DYNAME: -  0001
MSGV4: -  SAPLMIGO
NOTE: - We can not use the BAPI 'BAPI_GOODSMVT_CREATE' because we have to update the Challan Number and Challan Year also for each PO Line Item and this BAPI does not have thses two fields in its Parameter Interface.
Please suggest.
Thanks & Regards
Jagesh

hi,
check below tcodes..
Subcontracting Process
Subcontracting without Payment of Duty
Creation of Subcontracting PO (ME21N) 
Transfer Posting of Components to Subcontractor (Mvmt Type - 541) (MB1B/ME2O/MIGO) 
Creation of Subcontracting Challan w.r.t. Transfer Posting Doc (J1IF01) 
Goods Receipt w.r.t. Subcontracting PO and Refer Subcontracting Challan at the time of GR (MIGO) {GR with 101 and auto consumption of components with 543 movement} 
Reconciliation of Subcontracting Challan (J1IFQ) 
Completion of Subcontracting Challan (J1IF13) 
Generation of Annexure IV (J1IFR) 
Note: - In this case, you have to maintain the Assessable Value for the Components to be supplied to Vendor in J1ID and also Excise Tax rates for the Chapter IDs linked with these components. So during J1IF01, system will take the Assessable Value as Excise base Value and calculates the Excise Duties by taking Excise Tax Rates.
Subcontracting under Full Payment of Duty
Creation of Subcontracting PO (ME21N) 
Transfer Posting of Components to Subcontractor (MB1B/ME2O/MIGO) 
Creation of Outgoing Excise Invoice w.r.t. Transfer Posting Document (J1IS) - Used to send the components to Subcontractor's. Here 57F4 Challan is not created. 
Accounting Entry: -
CENVAT Input BED - Cr
CENVAT Input ECS - Cr
CENVAT Input ECS - Cr
CENVAT Suspense A/c - Dr
Capture Vendor Excise Invoice at the time of GR of Finished Goods w.r.t. Subcontracting PO (MIGO) 
Post Excise Invoice for FG received from Subcontractor (J1IEX) 
Accounting Entry: -
CENVAT Input BED - Dr
CENVAT Input ECS - Dr
CENVAT Input ECS - Dr
CENVAT Clearing A/c - Cr
Master Data:-
MM01- Material Masters for Components and FG 
XK01 - Vendor Master (Subcontractor) 
CS01 - BOM for FG 
ME11 - Purchase Info record for Subcontracting

Similar Messages

  • BDC is not working as background job

    Dear Expert,
    I have developed a program which contain BDC of FB75 with mode 'E' . I have Schedule this program as background by FM 'JOB OPEN' , Submit statement and 'JOB CLOSE'. My problem is when i run this program as background BDC is not working.
    What is the solution of this problem?
    Thanks
    Avadhesh

    Hi Avadhesh,
      if FB75 is doing a commit work, then, your batch job will finish with error at the time of BDC execution.
      Try to add the option parameter type CTU_PARAMS to the CALL TRANSACTION with field RACOMMIT = 'X'.
    DATA opt TYPE ctu_params.
    opt-RACOMMIT = 'X'.
    CALL TRANSACTION 'FB75' USING bdcdata_tab OPTIONS FROM opt.
    Regards.

  • BDC is not working in when executing the program in background

    Hi gurus,
    I have a problem that in BDC is not working when i'm executing the upload program in background thru scheduling(SM36) , while it works fine when i execute directly with NO screen display mode

    Many transactions behave differently when executed in foreground and background. The fields on the screen may be different.
    In transaction SHBD when starting a recording there is a checkbox where you can select 'Simulate Background Mode'. If you do your recording using this option you will get the code suitable for background mode. If you do not select this option you will get a code for foreground mode.
    By compairing the two codes you will know the changes required for background mode.
    Hope this helps you

  • Report not working if scheduled in background as a job

    Dear friends please help me in this.
    We are having a z report. This report works fine in foreground and wont work
    ( means it will be in active state for more than 5 days but no result will come)
    when we schedule it in background as a job.
    In this report we are using bdc code also for uploading data. the same code is
    FORM bdc_transaction USING tcode.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          tcode     = tcode
        TABLES
          dynprotab = webdcdata.
      WRITE: /(25) 'BDC_INSERT'(i03),
                   tcode,
              (12) 'returncode:'(i05),
                   sy-subrc.
    ENDFORM.                    "BDC_TRANSACTION
    and i am populating the data in bdc
    PERFORM bdc_dynpro      USING 'SAPLMR1M'      '6000'.
          PERFORM bdc_field       USING 'BDC_OKCODE'    'ENTR'.
          PERFORM bdc_field       USING 'BDC_CURSOR'    'INVFO-BLDAT'.
    PERFORM bdc_dynpro      USING 'SAPLMR1M'    '6000'.
          PERFORM bdc_field       USING 'BDC_OKCODE'  '=BU'.
          PERFORM bdc_field       USING 'BDC_CURSOR'  'DRSEG-RBLGP(01)'.
          CALL TRANSACTION 'MIRO' USING webdcdata MODE p_mode UPDATE 'S'
                                        MESSAGES INTO itab_msg.
    etc.
    First i am populating data into an internal table and then displaying it in the output screen. Here i hava placed a menu items like select all , deselect all , upload etc . So that user can select as many records as he want and then can select the upload button
    so that the report will call bdc to upload the data.
    when i am directly executing the report it displays the data and then
    i will select the records that are diswplayed and
    then i press tghe button upload then the data will be uploaded into
    the screens. here i am not getting any problem everything is fine.
    when i am scheduling this job in Background it will be keep on
    running but no result will be displayed. Atleast output screen
    is also not displayed. Later on i came to know that we
    cannot schedule the reports which are using bdcs in background.
    So please tell me how far it is true. Please give me a clear explaniation for this .
    Thank you so much for all the replies.

    Try to record your transaction using trans. SHDB and select the check-box "Simulate background".
    Not all the dynpro runs same in background and in foreground. Always check the background simulation: when you record, and when you run bdc in foreground.
    Kanagaraja L

  • BDC is not working in background for Transaction COR6N

    Hi ,
       We have written the BDC program for transaction COR6N. BDC works perfectly in foreground but it's not working for background option.
        SELECT SINGLE AUFPL INTO W_AUFPL FROM AFKO
                  WHERE AUFNR = W_AUFNR.
        SELECT AUFPL VORNR INTO TABLE IT_PHASE FROM AFVC
                WHERE AUFPL = W_AUFPL
                  AND PHFLG = 'X'.
        LOOP AT IT_PHASE.
        WA_BDCDATA-PROGRAM  = 'SAPLCORU_S'.
        WA_BDCDATA-DYNPRO   = '0100'.
        WA_BDCDATA-DYNBEGIN = 'X'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-AUFNR'.
        WA_BDCDATA-FVAL     = W_AUFNR.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-VORNR'.
        WA_BDCDATA-FVAL     = IT_PHASE-VORNR.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'BDC_OKCODE'.
        WA_BDCDATA-FVAL     = '/00'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-PROGRAM  = 'SAPLCORU_S'.
        WA_BDCDATA-DYNPRO   = '0100'.
        WA_BDCDATA-DYNBEGIN = 'X'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-LMNGA'.
        WA_BDCDATA-FVAL     = w_qty. "'60'.
        APPEND WA_BDCDATA TO BDCDATA.
       CLEAR WA_BDCDATA.
       WA_BDCDATA-FNAM     = 'AFRUD-BUDAT'.
       WA_BDCDATA-FVAL     = w_date. "'31.12.2008'.
       APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'BDC_OKCODE'.
        WA_BDCDATA-FVAL     = '=BU'.
        APPEND WA_BDCDATA TO BDCDATA.
        clear X_OPTIONS.
        X_OPTIONS-DISMODE = 'N'.  ' works perfectly for 'A'
        X_OPTIONS-UPDMODE = 'S'.
        X_OPTIONS-CATTMODE = ' '.
        X_OPTIONS-DEFSIZE = ' '.
        X_OPTIONS-RACOMMIT = ' '.
        X_OPTIONS-NOBINPT = 'X'.
        X_OPTIONS-NOBIEND = ' '.
        CALL TRANSACTION 'COR6N'  USING BDCDATA  OPTIONS FROM X_OPTIONS
                           MESSAGES INTO ITAB.
                     MODE 'N'  MESSAGES INTO ITAB UPDATE 'S'.
       WAIT UP TO 3 SECONDS.
        COMMIT WORK AND WAIT.
        CLEAR:BDCDATA[],WA_BDCDATA.

    HI,
    COR6N is the Enjoy Transaction and sap does not suggest to write the BDC on these transaction as most of these transaction uses the GUI elements foe better display and which cannot be recorded while processing the BDC in back ground.
    Check for the Normal transaction and write the BDC for it.
    Or
    Pass X to Rcommit flag in the CTU_PARAMS option and check.

  • BDC is not working in background mode and working fine in Foreground mode

    Hi Experts,
    I have created a BDC in SHDB for the transaction code:CWBQM for creating and deleting the record and converted the BDC recording into the program using call transaction. It is working fine in both foreground and background. When I given the same program for users testing one for the user was able to delete the records but Creation is not working in the same BDC. He is able to create the same records in another PC and the problem is only in that PC and only during the creation of the record. When I change the mode to 'A' mode for testing and request the user to execute and it is working fine the records created successfully. What could be the issue ?
    Thanks,
    Hema

    Hello,
    While recording BDC in SHDB try setting "Simulate background mode" flag and give a try.
    Cheers,
    Nag

  • BDC does not work in the list of report.

    Hi All,
    I have report with selection screen and after entering the value in selection screen it goes to module pool screen and shows output in table control. And after click one button here the output shows in the list. After getting the out put in the list we can use the print option to take the print out of the list.
    My requirment is i have do the same thing through BDC. It is working fine but once it reach to the list output, the BDC is getting fail and the print option is not working. I did the BDC in recording. After analysing, I found that any report ouput list does not have the Program name and screen number(System-status).
    So i had tried it with the submit report option also but in this there is module pool so submit report is also failing after reaching to the module pool screen.
    Please help me out in this issue.

    hi,
    try with leave to list-processing...or
    leave to list-processing and return to screen <screen number>.
    please let me know if its working or not
    hope this helps,
    priya.

  • 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.

  • Filters on CSWP not working when Scheduling Start Date sets Immediate Value

    In Sharepoint 2013, When users sets value of "Scheduling start date" to "Immediately", the filters does not work correctly.
    I have checked many forums where it is mentioned that If you set scheduling Start date to Immediately, internally the Scheduling Start Date is set to 01/01/1900.
    When i use query in content search webpart as publishing date is between "Scheduling Start Date" and "Scheduling End Date" so it fails. it  does not displays filtered data.
    Please provide some resolution for this issue.
    I have tried using calculated field wherein we can put formula to get value for Immediate value and then use it in Filter expression. but I need another approach related to "Scheduling Start Date" Column. i.e can we remove the Immediate radio button
    or can we restrict user to use specific date only?
    Thanks in Advance.

    This is a new one on me.
    It's a server program to interface with QuickTime and some other problematic services.
    If you use video or 3D in Photoshop Extended, you probably need it.
    Sounds like you are correct in that it has to do wtih Quicktime.  Do you have PS extended?

  • BPC75NW: Offline Distribution of reports does not work in Schedule mode

    Hello BPC experts,
    I'm new in SAP world.
    I have the following problem.
    In BPC 7.50.06 NW I'm trying to adjust the distribution on e-mail to schedule.
    I set up Distribution List. When I start the Offline Distribution Wizard -> Distribute Now all works without problems.
    The problem starts when I start the Offline Distribution Wizard in the Schedule mode. All the settings I do the same as at "Distribute Now".
    Then I set the report should be sent daily, starting with 13.10.2011, indicating the Start Time. As a System password I'm pointing my domain password (I  know no other passwords).
    At the time specified in the Start Time nothing happens, i.e. the schedule does not work.
    Tell me, please, if faced with a similar problem, how it can be solved?
    Thank you for your help, this is greatly appreciated.
    Regards,
    Todoshi Takato

    Moved to .NET SDK forum.
    Search here, lots of post on IIS and setting Printer Access Permissions for your application.
    Also search MSDN on what is required to for IIS to access local Printers.
    Also search for ActiveX Controls and Browser permissions, you'll likely have problems there also since most Browsers will not or do not recommend allowing any ActiveX control.
    Don

  • Programm not working when scheduled via SE16

    I created a job in SE16 for a custom ABAP programm exactaly the way we always do,
    for one programm te job is finished after 1 second, when this programm is startend manualy it runs like it is supposed to run.
    Does anybody have a clue what can be wrong??

    Hi Rechard,
    Have you used any function in that.. !!?? like GUI_DOWNLOAD will not work when you ll go for sheduler of that program..
    Make sure where the dump arises...
    -Maharshi

  • Server Group not working when one of Job Servers is down

    I have a Server Group of two job servers. They have the same version 12.2.2.3 and are attached to the same Local Repository of version 12.2.2.0.
    When I execute a batch job (from the Designer) and explicitly specify on which job server it should run, it works fine for either job server. Also, when I specify Batch Job execution on Server Group, it works fine.
    However, when I shutdown one of the Job Servers, and then try to execute the job on Server Group, I'm getting two error messages, BODI-1111011 that one Job Server is down, and BODI-1111009 that another Job Server has failed.
    At the same time, when I check the Server Group in the Management Console, it shows that the allegedly failed Job Server is in the status green.
    That error is not reflected in a job server eveng log, nor there is anything written to webadmin log, not in the job trace (the latter isn't created at all).
    Is there anything I can do at this point except raise a support message?

    The issue was with different users for Local Repository in Admin and Job Server config. I discovered it when trying to run the job from Admin Console. Designer is probably not the best diagnostic tool for such kind of issues.

  • Batch file not working with Scheduler

    I have written a simple batch file which copies contents of one directory to another directory on second server. Both the servers are Windows 2008 R2 and are member servers in the same domain. It is a simple .bat file which copies contents to another folder
    which is mounted as a network drive . 
    This script when I run it from COmmand Prompt window, it works file. But If I schedule it run at a particular time, it does not run. The scheduler starts the batch file and within a second reports it as complete. The copy does not happen.
    I have also tried robocopy command instead of xcopy. But same result.  It works from the command prompt but scheduler cannot run it. But there is no error reported by scheduler.  e.g. task triggrred 11:43:15  completed 11:43:15. 
    Any suggestions? Inputs?
    From :
    shekhar-nsk

    Hi Shekhar,
    I don't think this issue is related to your script. If you run any other simple script then also you may face the same issue.If yes,
    1) Make sure you are using appropriate credential on task schedular. Change User Or Group if require.
    2) Try to run task with "Run with highest privileges"
    3) Ensure you gave the arguments and parameters properly without missing even quotes.
    Can refer below link for more information on scheduling a PS script and replace the same per your requirement for batch file (.bat).
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/43e19576-476d-4735-85ef-c508c18f11e8/executing-powershell-scripts-via-task-scheduler
    Please remember to mark your question as answered & Vote helpful,if this solves/helps your problem.
    Best Regards,
    Pavan Kumar Sapara
    s p kumar

  • Digital Voice Landline DND or Call Forward not working as scheduled

    I have seen this happen for quite some time. In order to avoid calls disturbing sleep at night I have tried scheduling call forward or do not disturb options with time period of 8pm to 11:45pm. But instead of line coming back to normal status outside this time window, my phone seems to keep honoring the DND or forward as setup for night time. Many callers have complained about not being able to get through or being surprised to see the forwarded number answering the call instead of the home line. The only working solution seems to be is to disable time based schedules and just use call block with specific spam numbers in it preloaded. That works 24x7. I am unable to block landline from ringing at night selectively or otherwise based on time window.
    Is this a bug or a known issue ? I tried setting up via different browsers IE Firefox etc and the result is the same.

    My question is if calls could be  forwarded from skype number to a mobile number ? Does anyone know the answer to that..?
    Also if forwarding from skype number to mobile number is possible to a mobile number in A) Same country as of the Skype number, B) Mobile number in a different country overseas..?
    Thanks

  • BDC is not working for transaction ME01

    I have done through shdb all recording.But i dont know why this error is coming.
    Please give solution for the above.
    CALL_TRANSACTION ME01 Return code =     0  RECORD:          0                   
    S Field EORD-VDATU . not found in loop of screen SAPLMEOR 0205                  
    S Field EORD-BDATU . not found in loop of screen SAPLMEOR 0205                  
    S Field EORD-LIFNR . not found in loop of screen SAPLMEOR 0205                  
    S Field EORD-EKORG . not found in loop of screen SAPLMEOR 0205                  
    S Field EORD-EBELN . not found in loop of screen SAPLMEOR 0205                  
    S Field EORD-EBELP . not found in loop of screen SAPLMEOR 0205                  
    S Field RM06W-FESKZ . not found in loop of screen SAPLMEOR 0205                 
    S Field EORD-NOTKZ . not found in loop of screen SAPLMEOR 0205                  
    S Field EORD-AUTET . not found in loop of screen SAPLMEOR 0205                  
    S No source list records changed

    Dear Anand,
    the problem is you are trying to Change the source list records.
    In that case you will have to mention the Row number also. In that case
    EORD-LIFNR does not point to any row number.
    if you are trying to access vendor of the first row then you will have to specify
    EORD-LIFNR(01) in BDCDATA-FNAM. 
    Record the BDC one more time on ME01 .. u will automatically know..
    hope it helps.

Maybe you are looking for

  • Error while doing GR : Deficit of PU GR quantity 5 EA

    I am getting the below error while doing the reversal of GR: Deficit of PU GR quantity 5 EA : <material><plant><pur grp> Please let me know the solution to rectify it. Thanks in advance.

  • F110/AP payment problem

    Hi While running the payment proposal this error message popped. For vendor customer xxxx , Payment with currency USD, payment method : No valid payment procedure . Now I am aware with this problem as it is a very frequent error on this site with for

  • How to get deleted sms on nokia 2330?

    I'm having trouble finding how to access my deleted text messages on my 2330.  I don't want to mess this thing up any worse than it already is. Please help!

  • How to get BOOLEAN from STORED FUNCTION

    We are calling legacy PLSQL stored procedures and functions via named queries. This has worked fine so far, but there are some functions which return the type 'BOOLEAN'. e.g. FUNCTION some_function( some_argument IN NUMBER) RETURN BOOLEAN; Where the

  • Qosmio X305-708 - Solved: Media Buttons not working after BIOS update

    I had this problem so I thought I would share in case anyone else encountered the same problem. Basically after installing BIOS 1.70 (in Windows 7 64bit) on my Qosmio X305-708, the media buttons remains on partially, as in they were dim, and they did