Trigger SHP_OBDLV_CHANGE from BAPI_OUTB_DELIVERY_CHANGE

Hello.
I'm currently using BAPI_OUTB_DELIVERY_CHANGE (inside a custom function that creates shipments) to update the route, shipping conditions and unloading point of a delivery in a DWMS system. I am successful in updating the deliveries however, the SHP_OBDLV_CHANGE Idoc is not being generated which in turn doesn't update the deliveries in the source system.
My code that calls BAPI_OUTB_DELIERY_CHANGE are as follows:
  wa_bapiobdlvhdrchg-route = l_route.
  wa_bapiobdlvhdrchg-unload_pt = l_exti2.
  wa_bapiobdlvhdrchg-ship_cond = l_vsbed.
  wa_bapiobdlvhdrctrlchg-route_flg = 'X'.
  wa_bapiobdlvhdrctrlchg-unload_pt_flg = 'X'.
  wa_bapiobdlvhdrctrlchg-ship_cond_flg = 'X'.
      CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
        EXPORTING
          HEADER_DATA             = wa_bapiobdlvhdrchg
          HEADER_CONTROL      = wa_bapiobdlvhdrctrlchg
          DELIVERY                      = l_vbeln
        TABLES
          RETURN                        = lt_return.
I've read the documentation and it seems that whenever this bapi is used in a DWMS system, it should generate a SHP_OBDLV_CHANGE Idoc.
I also read this from the following link: Very Urgent : Need of Mandatory Fields to be  supplied for these BAPI's
I can't find anymore documentation regarding this bapi.
Any kind of help, inputs and suggestions would be appreciated.
Thanks!
Carlo

The MASTER_IDOC_DISTRIBUTE might work.. Interesting.
Oh! Sorry to confuse you. I'll try to explain in a simpler way.
Delivery gets created in R3 (delivery creation always happens in R3 only) -> SAVE_REPLICA idoc goes out from R3 to DWMS -> Delivery replicated in DWMS.
When delivery is modifited in R3 (using VL02N) -> CSL locks the delivery replica in DWMS
When delivery is saved after modification in R3 -> SHP_OBDLV_CHANGE idoc goes out from R3 to DWMS -> Delivery replica will be updated in DWMS.
When delivery is modified in DWMS (using VL02N) -> CSL locks the original delivery in R3
When delivery is saved after modification in DWMS -> SHP_OBDLV_CHANGE idoc goes out from DWMS to R3 -> Original delivery will be updated in R3.
Next section only happens in the DWMS system...
When shipment is created in DWMS, deliveries should be updated in DWMS and R3. The deliveries are being updated in the background using BAPI_OUTB_DELIVERY_CHANGE in DWMS.
SHP_OBDLV_CHANGE idoc should be generated in DWMS to update the original delivery in R3. However, this step is not working (this is my big problem).
And as per documentations that I've read (even the bapi documentation), BAPI_OUTB_DELIVERY_CHANGE should be able to generate the SHP_OBDLV_CHANGE idoc.
I hope that clears things up more.
The thing is though, documentation seems to say that BAPI_OUTB_DELIVERY_CHANGE should be able to generate the SHP_OBDLV_CHANGE idoc but I'm currently using it and it's not doing it. I'm assuming maybe I missed something on the import section of the bapi..
Inputs, help, etc, appreciated.
Thanks,
Carlo

Similar Messages

  • Create Trigger (PK from Sequence) in SQL Developer 1.5.1

    Hi all
    I'm new to Oracle and am trying to create the equivalent of an autonumber field on a table using the Create Trigger (PK from Sequence) option (by right clicking on a table in SQL Developer).
    I've set up a sequence called REQUESTID and when using the above option it generates the following SQL:
    begin
    execute immediate 'create or replace trigger AutoNumber '||
         ' before insert on "REQUEST" '||
         ' for each row '||
         'begin '||
         ' if inserting then '||
         ' if :NEW."REQUESTID" is null then '||
         ' select REQUESTID.nextval into :NEW."REQUESTID" from dual; '||
         ' end if; '||
         ' end if; '||
         'end;';
         end;
    When I click Apply I get an ORA-00942 (table or view does not exist). Am I doing something daft here?

    Never mind - sorted it - I created the table under a different Schema to the System login being used in SQL Developer and so didn't have the permissions to create the trigger on the table.

  • How to trigger alerts from UDF for file to file scenario

    Hi,
       My scenario is something like this.......
    I have lookup in which there exists more than one output value corresponding to this one input value.In such cases i need to raise an exception and trigger an alert from UDF so as to inform the functional team.
    Now this entire procedure has to be implemeted for file to file scenario.
    I am not using any RFC nor do i need a BPM.
    Entire scenario should be excuted without BPM and RFC.
    Can anyone kindly suggest me as to how to proceed for this so as to trigger alerts
    from UDF.
    Thanks in advance
    Madhu

    HI,
    Please see the below links
    Triggering XI Alerts from a User Defined Function - /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Alerts with variables from the messages payload (XI) - UPDATED - /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step - Alert Configuration
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide - Trouble shoot alert config
    Regards
    Chilla

  • How can i trigger workflow from report

    hi i create one report and workflow. i want to trigger workflow from report, how can i do this one, please send me any code you have.
    Thanks & Regards
    Sankar

    Hi Sankar,
    There is another sample code...
       REPORT ZRGEVTCR.
    INCLUDE <CNTN01>.
    DATA: OBJKEY  LIKE SWEINSTCOU-OBJKEY,
          EVENTID LIKE SWEDUMEVID-EVTID.
    DATA: BEGIN OF EVENT_CONTAINER OCCURS 0.
            INCLUDE STRUCTURE SWCONT.
    DATA: END OF EVENT_CONTAINER.
    PARAMETERS:
      OBJTYPE  LIKE SWETYPECOU-OBJTYPE DEFAULT 'ZRGMARA',
      MATERIAL LIKE MARA-MATNR,
      EVENT    LIKE SWETYPECOU-EVENT   DEFAULT 'CREATED',
      VOLEH    LIKE MARA-VOLEH,
      LED      LIKE SY-DATUM           DEFAULT '19971231'.
    OBJKEY = MATERIAL.
    CLEAR EVENT_CONTAINER. REFRESH EVENT_CONTAINER.
    set input parameters for CREATED event.
    remark: to be more general, we had to use fm SWO_QUERY_PARAMETERS
    IF EVENT EQ 'CREATED'.
      SWC_SET_ELEMENT EVENT_CONTAINER 'LatestChangeDate' LED.
      SWC_SET_ELEMENT EVENT_CONTAINER 'VolumeUnit' VOLEH.
    ENDIF.
    CALL FUNCTION 'SWE_EVENT_CREATE'
         EXPORTING
              OBJTYPE           = OBJTYPE
              OBJKEY            = OBJKEY
              EVENT             = EVENT
         IMPORTING
              EVENT_ID          = EVENTID
         TABLES
              EVENT_CONTAINER   = EVENT_CONTAINER
         EXCEPTIONS
              OBJTYPE_NOT_FOUND = 1.
    IF SY-SUBRC NE 0.
      WRITE : / 'Object type', OBJTYPE, 'not found in object repository'.
    ELSE.
      IF EVENTID NE 0.
        WRITE : / 'At least one receiver was found'.
        COMMIT WORK.
      ELSE.
        WRITE : / 'No receivers found'.
      ENDIF.
    ENDIF.
    Hope this will help you to solve your problem that how to trigger workflow from the report.
    Thanks,
    Pramod

  • Trigger workflow from adobe form

    Hi.. can anyone outline me with the basic steps required to trigger workflow from abobe. Java Wd and ECC 5.0. Thanks!

    Hi Pankaj,
    have a look at the ISR Cook book and Developing PCR (Personal Change Requests) <a href="https://websmp202.sap-ag.de/mss">Manager Self Service</a> You will gwet more links if you do a quick search or just go to sdn.sap.com/interactive forms
    <a href="https://forums.sdn.sap.com/click.jspa?searchID=2077779&messageID=2451183">https://forums.sdn.sap.com/click.jspa?searchID=2077779&messageID=2451183</a>
    Do update, if you find any more issues
    Thanks and Regards,
    Anto

  • How to trigger emails from BPC?

    Hello Experts,
    Is it possible to trigger emails from BPC for example when a entity reports on a specific account?
    I have been able to setup mails from the admin concolse but I wan't mails to be send to a specific email adress when accidents are reported.
    Kind regards
    Jonas

    Hi Jonas,
    I'm not sure I've understand what you ask but if you want to send email from a report you have to write some VBA code using a shellexecute or create object (if you want to attach some files).
    Regards
         Roberto

  • Trigger workflow from Email (lotus or Outlook)

    Hi All,
    Is it possible to trigger a workflow from An Email (lotus or Outlook). if so how can we do it?
    Reg,
    Sre
    Edited by: sre on Jul 9, 2009 3:53 PM

    Check the following links.. which answers its pretty much possible to Trigger workflow from email...
    triggering workflow from incoming mail.
    Triggering a workflow on receiving mail from external mail id.
    Can we trigger workflow on receiving e-mail ?
    Regards,
    PR.

  • Trigger rfc from abap  porxy

    hi all;
    how to trigger rfc from abap  porxy

    Hi Mehra,
    check this link and just check for only how proxy is being used/...
    https://websmp208.sap-ag.de/%7Esapidb/011000358700011142902001E/HOWTosendxmldatatobw.doc
    And u can check one more document related to the above link in Services.sap.com (How to push data from BW to XI PDF)
    If not Give me u r mail id i will forward it...
    Regards,
    sridhar
    Message was edited by: sridhar reddy kondam

  • How to trigger replication from CRM to ECC when changing custom z-field?

    Hi all,
    I've created a z-field in CRM which matches the field KNVV-KLABC in ECC. I've created the needed user exits to replicate from ECC to CRM and vice versa. The functions are called and update successfully. So actually everything works fine except for one thing...
    When I change the z-field in CRM - and only that one field - the replication is not triggered hence KNVV-KLABC is not updated. When I however change my z-field together with another pricing field (e.g. Customer Group) then the replication runs and both fields are updated in ECC.
    How can I trigger the replication if only my z-field is changed?
    Best regards,
    Melanie

    Hi there,
    Thanks for your replies.
    I've solved this myself a couple of days ago. However I did it in a different way as suggested here. I will post my solution as soon as I find the time to do the documentation.
    Maybe as a hint if someone runs into this; adding a field to the pricing structure of the BP sales areas (SET0030 if you need to know) seems strangely enough "not possible" - I mean it's "not ready yet".
    AET f.i. doesn't allow you to add a field there and with EEWB you cannot choose to replicate it to R3. Thus for my solution I had to change SAP Standard unfortunatelly. Also the my customer wants to be able to search for this new field on the Account Search Page - so many steps were needed to achieve all this. As I mentioned I shall present my solution as soon as I get the time for it. If I should forget and you need to know how I did it you may reply to this thread as I'm watching it so I'll be reminded.
    Best regards,
    Melanie

  • How to get trigger code from the schema into a file

    Please help me in getting code of any trigger from the schema, without using any data dictionary views.

    In fact you can get the trigger code by using tools like toad,sql developer
    But all are using the data dictonary view to get the code .

  • Trigger workflow from web form

    HI Experts,
    I have a requirement to trigger workflow when a web form  is completed through a portal and saved.I also need to perform certain validations on the fields in the web form before triggering the workflow.The web form would then go the proper approvers and then I need to send notification messages on Approval or Rejection.I am at loss of thoughts as to how I can achieve this functionality.
    I also need to send reminders to the approver every 2 hours till he takes some action.
    Any suggestions would be of great help and would be rewarded appropriately..
    Regards,
    Narsingh

    Hi Narsingh,
    the solution depends much on the web form you are implementing.
    Is this a standard portal application you are working on? Or are you developing also the form from scratch?
    The previous answers just tell how you can trigger a workflow if the application doesn't trigger it itself.
    If the web form is a standard application or built with process frameworks like HCM Processes and Forms/ISR/PCR, then the event is often published by default without any customization.
    No answers, just questions...
    Kind regards,
    Mikko

  • How to trigger workflow from WDA and read workflow container into WDAscreen

    Dear Expert,
      Please suggest the solution for the following requirement:
       1. Create 1 leave request from WDA and submit for approval
       2. When User press "submit" button in WDA screen, workflow will be triggered for processing approval  .
       3. When 1 request is sent to approver, he logon into portal and access to UWL to process task himself.
       4. After he press approval link, the system will call WDA screen to process approval ( this screen will contain full information of requester.)
       5. After finishing process, the result will return workflow and end of process.
    Please send simple example for step 1 and one for get data from workflow into WDA screen at step4
    Any help would be appreciated
    Thanks and best regards,
    DucTV.

    Hi,
      I am not sure for what reasons you are developing a application but SAP has its own standard workflow process for applying leave from ESS portal..
    1. AS soon as you click on the submit button of the applicaiton then you need to trigger a workflow right in that case you make sure that you need to pass some data to the workflow container I hope you might be using either SAP_WAPI_CREATE_EVENT or SAP_WAPI_START_WORKFLOW to start the workflow  in both the function module you have to fill this table in Order to pass the values from ABAP    program to workflow container.
      The answer to your question is it depends on the type of the work item ID you are passing to the SAP_WAPI_READ_CONTAINER if you are passing a top work item ID  then you will have workflow container in LT_CONTAINER if you are passing any of the child or dependent work item ids of the top work item id then you have that respective task container value.
    2. You can make use of the any foreground activity or a decision step, it depends on how you want to get back the result, if you use a foreground activity step then in that case you have to populate the result back to the task container and if let say you are using a decision step then in that case you do not have to populate the result there will be standard  container element _RESULT in the decision step it will be filled.
    Make sure if you are expecting some work item in UWL and as soon as you click on the work item your application should open then configure in SWFVISU transaction and maintain DTD in UWL any portal consultant can perform this steps in few seconds.
    3. When the workflow is started then the work item which you are able to get back is the one which helps to identify dependent work item ids it is the TOP or PARENT work item ID.
    Regards
    Pavan

  • How to trigger workflow from abap program

    Hi Experts,
    i have a user developed screen in which there is an option to approve (not a std tcode)
    for which there is no event created.
    i am very new to workflow ,
    now how to create an event and also how to trigger the workflow

    Hi,
    You can run a ABAP report or call a transaction from the BOR's Method directly.
    Check this link for more info.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/9a3cb3971c11d194c60000e82dec10/frameset.htm.
    In order to trigger an event programmatically, we would use the function module SWE_EVENT_CREATE.
    BUS1001006 ( Standard Material )
    here is the sample code.
    DATA: key LIKE sweinstcou-objkey.
    key = '68." Material Number (hard-coded)
    CALL FUNCTION 'SWE_EVENT_CREATE'
    EXPORTING
    objtype = 'BUS1001006'
    objkey = key
    event = 'CREATED'
    CREATOR = ' '
    TAKE_WORKITEM_REQUESTER = ' '
    START_WITH_DELAY = ' '
    START_RECFB_SYNCHRON = ' '
    NO_COMMIT_FOR_QUEUE = ' '
    DEBUG_FLAG = ' '
    NO_LOGGING = ' '
    IDENT =
    IMPORTING
    EVENT_ID =
    TABLES
    EVENT_CONTAINER =
    EXCEPTIONS
    OBJTYPE_NOT_FOUND = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    WRITE 'Event Triggered'.
    ENDIF.
    COMMIT WORK.
    In order to test whether the event is getting triggered or not, we can make use of Event Trace. Switch on the event trace using the transaction SWELS.
    Press ‘Switch On”.
    Now execute the program developed earlier. Now switch-off the event trace using the same transaction SWELS.
    Now go to transaction SWEL. Here you can list out the events triggered in the particular period of time. Here is the event-trace list:
    Regards

  • Trigger actionscript from end of captivate movie

    Hi Guys,
    I'm going insane trying to work out how to trigger an
    actionscript event from the last slide of my Captivate movie.
    Basically I'm doing a product walk through which I am exporting as
    a swf an then dynamically loading into my flash file.
    I need to be able to detect when the externally loaded
    Captivate swf has completed playback so that I can then continue on
    with the rest of my flash movie.
    I have tried adding a swf in Captivate with actionscript to
    trigger the event at the end of the slide but it doesn't work?
    I have also tried exporting the whole thing as an fla and
    then re exporting it from Flash MX 2004 and the animation seems to
    get ruined and out of synch.
    Any ideas on how I can detect and trigger and AS event when
    the loaded Captivate swf has completed would be much appreciated.
    Thanks heaps for reading.
    Chris

    hi Chris
    i created a similar workaround. i ran into a number of issues
    when trying to call an actionscript function at the end of a
    Captivate swf. i determined that captivate is VERY picky about
    imported swfs. for instance, i had a single imported swf that
    contained an animated background and one line of actionscript, and
    it never worked. however, when i split it into two separate swfs
    (one just for graphics, one just for actionscript), it worked! go
    figure.
    i also noticed you have to be careful where you place it on
    the captivate timeline, depending on what you're trying to do. if
    you're calling an end-of-movie function, be sure the swf is only on
    the last few frames of the last slide. sometimes when i placed the
    actionscript swf on the first frame of my last slide it wouldn't
    work, but after moving it down a bit, it worked fine.
    lastly, i had to use "_root" to get mine working. i know many
    people consider it bad form, but if it works, it works. i did the
    following:
    1. created a function in my Flash interface named "endDemo()"
    2. created an empty Flash file with one line of actionscript:
    _root.endDemo();
    3. imported the swf into my captivate movie and placed it on
    the last few frames of the last slide.
    4. set my captivate movie prefs to stop at the end of the
    movie, and not to fade out.
    worked for me... good luck!
    - philip

  • Trigger swf from main swf

    Alright so i'm fairly new to AS3 and flash in gernal, have done a bit of work in flash but nothing this major and need some help. I have a longtail flash player setup to a rtmp server to stream live events using adobe flash encoder 3. In gerneral it works fine now the problem is content i have a second swf file within the same page that was a powerpoint presentation that is now converted to a swf.
    What i need to do is somehow send a command from the longtail video player to the slide show to trigger a slide push. So lets say we are live and streaming away i would need to send some sort of command that will tell the second swf to change slides so that everything is in sync.
    Currenty we are using Windows media enncoder and we just send out a command to a iframe within the encoder which changes the slide, the slides are JPG so its easy to do. In the testing stage we have a standalone slide controller that is linked to the iframe and we can push a slide from the contoller which push the slide on the iframe. This method works if i remove wmp and put in a flash place since it not going through a video stream, but i need it to go through the video stream and then tell either a swf to change a slide or an ifreame to change a slide.
    Reason it has to go through the video stream is so we can record the video and the commands so they can be setup as archive, so video and slide will cue at the right areas. Just like how you can send out commands from within windows media encoder and archive them and they auto trigger once he video plays.
    Well i just need a way that will sync video with slides i don't really care how its done just that its done. There has to be a way to record the slide push commands so they can be used again to play the video and so it advances the slides.
    PS this is related to my Job

    If you want to inject metadata into a life stream, you, perhaps, need to look into Flash Interactive Server. This forum is not a server forum tough. Managing FMS is a special skill/knowledge set. There is FMS forum.

Maybe you are looking for

  • How can I add more than one submit button in a jsp without use of javascrip

    I want to add more than one submit button in a jsp without use of javascript

  • Can we use 1 computer w/1 Apple ID, but with 2 different iPhones?

    My husband is getting his first iPhone for Christmas, and I'm wondering if we can both use the same computer and same iTunes account for our syncing?  Right now, he has an iPod, and we're sharing the same iTunes Apple ID, and it's working okay for us

  • HT2674 Boot failure Mac Book Pro 17 "

    Hi, my Mac Book Pro suddenly don´t start. When pressing the power button the light in front light up for about two seconds, both fans inside start up and the system shuts down after a second - DEAD! Forcing PW button down, same procedure but the fans

  • Airport not connecting computer to internet

    my airport express was connecting my computer to the internet fine 2 hours ago, but suddenly, it stopped. i tried connecting my computer directly to the modem, and i am able to connect to the internet, so i'm figuring something is odd w/ the airport

  • Portal Framework /Architecture/Implementation

    Hi Experts, I want to know the architecture and framework for portal . Also want to know the approach for a new portal implementation and common customization that can be done in standard SAP portal.Any input would be helpful Regards, Amit Bagati