BDC processing for background and foreground execution

Hi,
I've come accross a situation where in a BDC for sales order creation, creates one sales order and at the same time creates another sales order with a blank sales order number(but the data of both the sales order is identical), meaning it creates 2 sales orders. This only occurs when the BDC is processed in mode 'N' but it works fine when the BDC runs in mode 'A' and 'E'. Any idea as to why this could be happening?
Any help will be appreciated.
Thanks,
ALAM.

Hi Alam,
No, sorry, I don't know why this is happening.
What update-mode are you using? Asynchronous or Synchronous?
Test both options, maybe it helps.
Why are you not using BAPI_SALESORDER_CREATEFROMDAT2?
Regards, Miranda

Similar Messages

  • Location Heuristics-diff of results in background and foreground

    Hi,
    We have this weekly bacth job of location heu.. just one program. nothing preceding  and succeeding it.
    I find the results in background and foreground different. This is partcularly wrt the receipts being created before the lead time of the loc-product. In the foreground when i delete the same receipts..and re-run the location heuristics, the receipts are correctly created . i.e obeying the lead time.
    Questions:
    - Why does this happen. I am doing this without anytime gap.
    -Are there some settings that are called only in background (e.g from SNP global profile) but not in foreground.
    Let me know if you need to know my SNP global profile settings.
    The imporant ones are
    HEU: Init short qty = Bakward scheduling
    HEU: Order Update =Complete mode
    In the location product master- NO horizons and time fences are maintained for SNP and PPDS.
    Regards,
    Loknath

    Hi Loknath,
    I will try to explain in with simple example.
    Consider there is product xyz which exist at two different locations A & Location B.
    Procurement type:
    at A is Inhouse production
    at B is external procurement from location A.
    Both the location have some forcast/ Demand for the Product suppose 100qty each.
    1. First Sequence:  Now first the Heuristics needs to run at Location B so that there are Destribution receipts planned created  at Location B, In other words, the Demand of Product XYZ will get transferred to Location A in form of Distributed demand Planned.
    Now if you take run on Location A,
    The Total demand  at Location A will be 100 qty (forecast)+ 100qty( Distri.Demand from B)= 200qty  and the Heuristics run will  plan for the total requirement 200 qty and create the planned orders for it.
    2. Second sequence:  if you take heuristics at Location A first & than location B.
    The planned orders generated will be only for Demand at A i.e 100 as Location A is not yet aware of the Distributed Demand which needs to be satisfied for Location B. as you have not taken the run  on location B yet hence the demand is not yet transferred to Location A.
    now if you take  run at location B, the Distri. demand are generated to Location A but not planned or not satisfied.
    Overall you see the wrong results of heuristic if you adapt second sequence.
    So, it become neccesary to determine the right sequence in which the heuristic is taken for different product at different location. to determine this system use SNP low level codes.
    I guess you are aware of low level code in BOM, As without exploding the Parent Material demand you cannot plan exact demand on Child material. similar principle works over here just it applies to Location Products.
    Hope this helps
    Regards
    Kumar

  • Background and foreground colors can be interchanged using which command

    hi
    background and foreground colors can be interchanged using which command

    <b>Background and foreground colors can be interchanged using the command Format Inverse.</b>

  • BDC Program for FCH5 and FCH6

    Hi ALL,
    Pls send me BDC program for FCH5 and FCH6 in function module it self..
    How to write BDC the program in function module for FCH5 and FCH6..
    Thanks

    HI ,
    Thanks for your message,
    I'm doing the one bank payment(Out Sourcing Cheque) (ZCITI)transaction so in that implementation i need the FCH5 and FCH6 BDC programs.
    can you send me the sample code of BDC programs => thread locked  for above tcodes bcz i haven't done BDC programs in Function modules.
    Thanks in advance.
    Edited by: kishan P on Oct 15, 2010 4:00 PM

  • What is the process for MM and asset account a/c and FI

    what is the process for MM and asset account a/c and FI
    Regard's
    VYadav

    Dear,
    There are below steps involved...
    1. Create purchase requisition..
    2. Create purchase order from above or you can directly creating it. Make sure you are entering A in account assignment category..
    3. Do the GR of asset based on PO created in step 2 in transction MIGO..
    4. Pass the invoice in MIRO.
    5. Make payment.
    6. Clear the vendor account...
    Result is Asset is aquired......
    Regards,
    Chintan Joshi

  • BDC issue background and foreground

    Hiii
    i have already write bdc code using batch input. The data is taken from an excel file . 
    How the program work now is it create a session in SM35 and i can decide to execute the session either in background or foreground. 
    The reson why i did batch input and not call transaction is because i am told that with call transaction you can't execute batch input program in background since the excel file will be loaded from the user desktop.  With call transaction and background execution the file need to be loaded on server first and then take the file from the server to BDC tcode.
    My problem is I need my program to execute automatically without passing though the SM35.  I also need to give the option to user to either execute is in foreground or background.
    BDC code look this:
    Call function "OPEN_BDC"
    group = "ztest"  “I use constant
    keep = "X'
    perform dynpro
    perform fillfield
    call fuction "CLOSE_BDC"
    1)     I am told to use the FM file_open / file_submit / file_close but I don’t really know hat parameter to pass in those FM the file_submit is giving me exception error.
    2)     I tried to use submit program RSBDCSUB .  it create a session in sm35 and have status background job but the session haven’t executed
    3)     All the No1 and No2 is to execute the BDC in background then what about the solution if user what to execute in foreground.
    Please i need precise answer??

    Job_submit is not functioning plzzz ess sample code below because of      invalid_jobdata                   = 3
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobgroup               = ‘Ztest’ //Session name in SM35
          jobname                = v_jobname
       IMPORTING
         jobcount               = v_jobcount
       EXCEPTIONS
         cant_create_job        = 1
         invalid_job_data       = 2
         jobname_missing        = 3
         OTHERS                 = 4
      IF sy-subrc <> 0.
      ENDIF.
      CALL FUNCTION 'JOB_SUBMIT'
        EXPORTING
          authcknam                         = sy-uname
          jobcount                          = v_jobcount
          jobname                           = v_jobname
         language                           = sy-langu
         report                            = sy-repid
      VARIANT                           = ' '
    IMPORTING
      STEP_NUMBER                       =
       EXCEPTIONS
         bad_priparams                     = 1
         bad_xpgflags                      = 2
         invalid_jobdata                   = 3
         jobname_missing                   = 4
         job_notex                         = 5
         job_submit_failed                 = 6
         lock_failed                       = 7
         program_missing                   = 8
         prog_abap_and_extpg_set           = 9
         OTHERS                            = 10
      IF sy-subrc <> 0.
      ENDIF.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount                          = v_jobcount
          jobname                           = v_jobname
       sdlstrtdt                         = sy-uzeit
       sdlstrttm                         = sy-datum
       EXCEPTIONS
         cant_start_immediate              = 1
         invalid_startdate                 = 2
         jobname_missing                   = 3
         job_close_failed                  = 4
         job_nosteps                       = 5
         job_notex                         = 6
         lock_failed                       = 7
         invalid_target                    = 8
         OTHERS                            = 9
      IF sy-subrc <> 0. 
    ENDIF.

  • Background process for CJ30 and CJ32

    Hello Experts,
    I would like to do the transaction CJ30 and CJ32 in background. Is there any Business object , BAPI or functional module to do this job.
    I would keep recording as last option. Please provide any information you might have for automating this process in background.  Any insight would be really helpful.
    FATMAN

    Thanks Sreenivas,
    Functional Module KBPP_EXTERN_UPDATE_CO  is working for my project.
    FATMAN

  • Image quality for background and screen saver

    Hi
    I have recently upgraded to Aperture 2.1. To take advantage of the additional/improved RAW image features, I have been migrating my older images from their original 1.1 RAW fine tuning to 2.0. However, after migrating most of my library (over 10k images) I have noticed that images using 2.0 have dramatically lost their sharpness when on the background & screen saver display. I have a 30" HD Apple Cinema Display, and the images look fine within Aperture itself. I've looked through the menus on System Preferences and Aperture Preferences but can't see anything obvious that would be causing this lack of quality.
    If anyone knows how to solve this I would be extremely grateful - I take a lot of photos, and usually have my most recent images on the screen saver as it helps me to evaluate them prior to culling!
    Kind Regards
    Vinny

    Hi Ian
    Thank you for the welcome and advice. I had a look in the preferences for Previews and the settings were not as high as they could be. I have adjusted them to the highest, and also unticked 'use camera jpeg when possible'. This has made a difference.
    Thanks again.
    Vinny

  • AFE process for Customer and Investment Project

    Hi All,
    My client want to have AFE process for Customer as well as Investment Project Creation.
    Once, AFE is approved a project should be created along with project plan valueswith approved values in AFE request. Also, in case any supplement need to project also should have a similar AFE approval process. For this client, there is No IM module implemented as such.
    Want to know how we can map this scenario in SAP.
    Thanks in advance.
    Regards,
    Atul R. Rajmane

    IYou can make use of simulations...create simulation version before creating operative project...you may create more than one simulation for various cost plan scenarios..you can plan revenue in simulation also for customer project...whoever gives approval for project expenditure.... they may compare the cost of the simualtion version and approval can be transfer of simulation version to operative version....Also, you can use this for supplements...create simualtion during course of project...then add actvitiy, material..etc., do the cost analysis...and provide the supplement budget accordingly to the new planned cost.

  • Issue with Visibility Settings for Backgrounds and Layers

    I am using Acrobat Pro XI 11.0.10 (Windows) and having an issue with visibility settings for layers and backgrounds. I am attempting to get backgrounds to appear while viewing in Adobe Reader and Acrobat Pro but not be printed and so far have had no success.
    When using a background the Appearance Options dialogue has "Show when printing" unchecked, but "Show when displaying on screen" is checked. This results in the background not showing on the screen, and the background will only appear once the box for "Show when printing" is checked. It looks like the option for printing is dictating whether or not the background is able to appear.
    Using layers has not worked either. The background layer is set to "Never Prints", but will still show up when printed.
    I was wondering if anyone else has run into this and has a solution, or has any recommendations.
    Thanks in advance.

    Hi setrev2012,
    How are you adding the backgroud?
    The only way I can think to accomplish this is via a watermark.
    The basics...
    Open PDF in Acrobat. Choose Pages > Watermark > Add Watermark.
    Select a jpg or PDF of your background and adjust scaling options as desired.
    Then click the Appearance Options.. and uncheck the Show When Printing option.
    In this image the PDF is a blank page with the word "Test" on it. The watermark is the stamp and impression (a stock photo jpg).
    If you want a solid color background, just create a flat image of the background color for use as the watermark.
    If you have already followed the steps and still facing the issue then please share the file with me at [email protected] so that i can have a look.
    Regards,
    Rave

  • Where can i find new colors for background and letter fonts??

    Where can i find new color background and letter fonts??

    These are only in US sizes, not metric, but offer exactly what you want and are high quality:
    http://www.stocklayout.com
    Peter

  • Plateform Independent Patching Process for Install and deployment

    I have a requirement to download an application/patch from the content server and install in the existing jboss environment. I am looking for a Tool to create a package that can be downloaded and executed at jboss end to install any application in the same jboss container. The tool should compatible for Mac and Windows.
    Please let me know if there is a way exists to do the same. Help is appreciated.
    Thanks and Regards
    Vishwa

    Hi,
    Agree with Tek-Nerd.
    What's more, as the Lync FE patch of Site is 8308.857, so before you move CMS and PChat Server, please update it to the latest version of CU firstly.
    Also, as you enable mirroring database, it is recommended to use the Invoke-CsDatabaseFailover -NewPrincipal Primary command, and then verify
    that the primary server is principal for all databases before you run the Install-CsDatabase cmdlet.
    Best Regards,
    Eason Huang 
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Eason Huang
    TechNet Community Support

  • Execution of report in background and foreground

    Hi all,
    I have a report in which i have two radio buttons on selection screen.
    1, Foreground
    2. background
    could you please tell how to do foreground and background execution of report depends on user selection.if you could send some sample code its really helpful.
    thanks

    If the Background radio button is selected the you need to use the SUBMIT command to submit your program in background.
    Example
    Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately providing the user has the relevant authorization.
    DATA: number           TYPE tbtcjob-jobcount,
          name             TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Cheers
    VJ
    Message was edited by:
            Vijayendra  Rao

  • Purchasing - A/P Transaction Processing for Services and Non Inventory Item

    On of the main areas of concern that businesses have is in the area of Purchasing, Goods Receipts and AP Invoices Processing - There is a requirement that businesses have widely referred to as 3-way matching.
    While SAP Business One has this functionality covered quiet well via the following, there is still some need for enhancements so that the application can correctly reflect the AP Accruals:
    - Purchase Order processing with Approval Process (if configured)
    - Ability to perform Goods Receipts for Services.
    - Matching of AP Invoices to Goods Receipts with AP Invoice Approval Process (if configured)
    The above transactions serve the 3-way matching quiet well for all purchases however when it comes to accuring for Services that have been provided, the application does not do this. The Goods Receipt transaction processing to acknowledge the service delivery is allowed however the related posting to the allocation account is missing.
    The process that is followed by the application is same for Items that have not Inventory Items in Item Master.
    As a result of the above, the business have to manually work out what the Accurals for services provided but not invoiced should be.
    With little enhancement to the product this shortfall could very easily be overcome.

    Hi,
    Once there are transactions, we cannot make existing Inventory type item to Non Inventory type item.
    Check SAP note:937297 which states as follows :
    Symptom
    Changing the status of the Inventory Item checkbox (in Item Master Data) for items with inventory transactions and documents, might lead to inaccuracies in the calculations of inventory value.
    Other terms
    Inventory Item, Non-inventory Item, Item Master Data, Continuous Stock, Perpetual Inventory, Inventory Valuation, 2004, 2005, 2005 A SP01
    Reason and Prerequisites
    Consulting Note
    Solution
    The status of an item (Inventory Item/Non-Inventory item as selected in the Inventory Item checkbox in the Item Master Data window), cannot be changed once an A/P, A/R, or Inventory document is posted for the item.
    Regards,
    Jitin Chawla

  • Process for Trading and Imports in CIN

    Dear Friends,
    The main business of our client is manufacturing and selling. For that they have a separate excise license. Along with that they do some trading activity of imported goods and for that they have different license. While imports there is a portion of Customs duty which is creditable and non creditable. Recoverable portion of customs duty is passed to the customer.
    To map this in SAP we are proposing a dummy plant with different registration number as a Depot. which can directly procure the imported goods and sell with the additional recoverable duty to the customer with other taxes like Education cess, H & S Education cess and VAT.
    Now I have following questions
    1)     Whether this set up is OK
    2)     Whether this new plant can procure imported materials directly and sell to the final customer with excise transactions?
    3)     If yes, whether this will update RG23 D register correctly?
    4)     If no, what process need to be set up for this in SAP?  (e.g stock transfer from main plant to the dummy plant i.e. do we need to take the imported goods stock in the manufacturing plant, Transfer the same to the Dummy plant with all Excise implications and then sell the goods from Depot?)
    5)     With this will the RG23D register  be updated during Sales?
    Can anyone please guide me so as to how to map this in SAP with RG23D register updation.
    Regards,
    Harsh

    Hey there Ashish,
       There are a couple of things to know about this:
     - AFAIK - this feature isn't available in Project Online
     - For on-premise Project Server 2013 you need to go to Central Administration->General APplication Settings->Manage PWA->Operational Policies->Alerts and Reminders and switch it on there.  If you can't see the setting make sure you
    have already configured the outgoing SMTP sever settings for your installation.
    Cheers,
       James.
    James Boman BSc. MCP:EAD -

Maybe you are looking for

  • The use of javabean in a servlet

    I used a javabean in (scope=application) a jsp, but now I want to use that bean in my servlet, can anybody show me how?

  • Installing 10.3 on a B/W G3 problem

    I have a blue & white G3 400Mhz that I'm trying to install OS X 10.3 on. I have the full retail install of 10.3. The G3 is running 9.2.2. When I insert the install disc, open the Installer, and click on the "Restart" button, I get the following messa

  • ISE and WLC SRE module compatibilty matrix

    Hi all, We are running SRE module on router with code of 6.x release .Is there any compatibilty matrix available for ISE and WLC code to support CWA . because as of now , the wireless clients are not redirecting to the ISE login page. Kindly suggest.

  • Date management in SAP CRM Interactive reports (CRM 7.0 EHp 2)

    Hi, all! I need some help with dates in interactive reports. My case: I need to add some new Z-dates in interactive report 1. I've create some customer Date types and date rules via Date management. 2, I've add it to screen on wui Question: How i can

  • Firewire problem since upgraded to 10.4.3

    Hi there, since I have upgraded my iMac G5 to 10.4.3, it is no longer recognising my external Lacie firewire drives. These work fine as I have tried them on a machine running 10.4.1, and they worked fine on the iMac G5 before I upgraded to 10.4.3 The