Planner group is not updated in service notification using BAPI

Hi,
Planner group is not updated in service notification using BAPI BAPI_ALM_ORDER_MAINTAIN.
I have written the below code, but planner group is not updated in the service notification.
Please advice which parameters do i need to pass to update planner group in the service notification.
          wa_methods-refnumber      = '000001'.
          wa_methods-objecttype     = 'PARTNER'.
          wa_methods-method         = 'CREATE'.
          wa_methods-objectkey      = wa_subscr1-aufnr.
          APPEND wa_methods TO i_methods.
          wa_methods-refnumber      = '000002'.
          wa_methods-objecttype     = 'HEADER'.
          wa_methods-method         = 'CREATE'.
          wa_methods-objectkey      = wa_subscr1-aufnr.
          APPEND wa_methods TO i_methods.
          wa_methods-refnumber      = '000000'.
          wa_methods-objecttype     = ' '.
          wa_methods-method         = 'SAVE'.
          APPEND wa_methods TO i_methods.
          REFRESH i_partner.
          CLEAR wa_partner.
          wa_partner-orderid        = wa_subscr1-aufnr.
          wa_partner-partn_role     = 'VW'.
          wa_partner-partn_role_old = ''.
          wa_partner-partner        = wa_subscr1-parnr.
          wa_partner-partner_old    = ''.
          APPEND wa_partner TO i_partner.
          REFRESH i_planrgrp.
          CLEAR wa_planrgrp.
          wa_planrgrp-orderid        = wa_subscr1-aufnr.
          wa_planrgrp-plangroup      = wa_subscr1-ingpr.
          APPEND wa_planrgrp TO i_planrgrp.
          REFRESH i_planrgrp_up.
          CLEAR wa_planrgrp_up.
          wa_planrgrp_up-orderid     = wa_subscr1-aufnr.
          wa_planrgrp_up-plangroup   = 'X'.
          APPEND wa_planrgrp_up TO i_planrgrp_up.
*----Change order details with Technician name
          CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
            TABLES
              it_methods   = i_methods
              it_header    = i_planrgrp
            it_header_up = i_planrgrp_up
              it_partner   = i_partner
              return       = i_return.
Thanks & regards,
Krishna

Try this way
CALL FUNCTION 'BAPI_SERVNOT_CREATE'
EXPORTING
* EXTERNAL_NUMBER =
notif_type = 'S3'
notifheader = ls_notif_h
* TASK_DETERMINATION = ' '
* SENDER =
* ORDERID =
IMPORTING
NOTIFHEADER_EXPORT = ls_notif_e
TABLES
* NOTITEM =
* NOTIFCAUS =
* NOTIFACTV =
* NOTIFTASK =
* NOTIFPARTNR =
* LONGTEXTS =
* KEY_RELATIONSHIPS =
return = lt_return
* IF lt_return IS INITIAL.                                               " <<< Comment this lie
read table  lt_return into ls_return with key type = 'E'. " << Change
if sy-subrc ne 0.                                                             " << Change
COMMIT WORK AND WAIT.
write: / ls_notif_e-NOTIF_NO.
ELSE.
LOOP AT lt_return INTO ls_return.
WRITE:/ 'errors'.
* ls_return.
ENDLOOP.
endif.

Similar Messages

  • Why is creation of a service notification using BAPI not working?

    I need to create a service notification.
    I have found 2 BAPIs.
    BAPI_SERVICENOTIFICAT_CREATE
    BAPI_SERVNOT_CREATE
    The code below using the second BAPI is not creating a notification and the return parm does not have any errors.
    You can see it does a call to commit after the BAPI call
    Perhaps I am missing something critical in the parms.
    We are trying to creat a service type notification using equipment.
    DATA ls_notif_h TYPE bapi2080_nothdri.
    data ls_notif_e type BAPI2080_NOTHDRE.
    DATA lt_return  TYPE STANDARD TABLE OF bapiret2.
    DATA ls_return  LIKE LINE OF lt_return.
    ls_notif_h-equipment = '10000044'.
    CALL FUNCTION 'BAPI_SERVNOT_CREATE'
      EXPORTING
      EXTERNAL_NUMBER          =
        notif_type               = 'S3'
        notifheader              = ls_notif_h
      TASK_DETERMINATION       = ' '
      SENDER                   =
      ORDERID                  =
    IMPORTING
        NOTIFHEADER_EXPORT       = ls_notif_e
    TABLES
      NOTITEM                  =
      NOTIFCAUS                =
      NOTIFACTV                =
      NOTIFTASK                =
      NOTIFPARTNR              =
      LONGTEXTS                =
      KEY_RELATIONSHIPS        =
        return                   = lt_return
    IF lt_return IS INITIAL.
      COMMIT WORK AND WAIT.
      write: / ls_notif_e-NOTIF_NO.
    ELSE.
      LOOP AT lt_return INTO   ls_return.
        WRITE:/ 'errors'.
       ls_return.
      ENDLOOP.
    Thanks.
    Scott

    Try this way
    CALL FUNCTION 'BAPI_SERVNOT_CREATE'
    EXPORTING
    * EXTERNAL_NUMBER =
    notif_type = 'S3'
    notifheader = ls_notif_h
    * TASK_DETERMINATION = ' '
    * SENDER =
    * ORDERID =
    IMPORTING
    NOTIFHEADER_EXPORT = ls_notif_e
    TABLES
    * NOTITEM =
    * NOTIFCAUS =
    * NOTIFACTV =
    * NOTIFTASK =
    * NOTIFPARTNR =
    * LONGTEXTS =
    * KEY_RELATIONSHIPS =
    return = lt_return
    * IF lt_return IS INITIAL.                                               " <<< Comment this lie
    read table  lt_return into ls_return with key type = 'E'. " << Change
    if sy-subrc ne 0.                                                             " << Change
    COMMIT WORK AND WAIT.
    write: / ls_notif_e-NOTIF_NO.
    ELSE.
    LOOP AT lt_return INTO ls_return.
    WRITE:/ 'errors'.
    * ls_return.
    ENDLOOP.
    endif.

  • Batch not updating while creating delivery using bapi

    Hi
    I have used following bapi to create delivery BAPI_DELIVERYPROCESSING_EXEC and passed the following parameters into bapi
    lt_request-document_type = 'A'.
            lt_request-document_numb = deltab-vbeln.
            lt_request-document_item = deltab-posnr.
            lt_request-batch        = deltab-charg.
            lt_request-material = deltab-matnr.
            lt_request-plant = '3200'.
            lt_request-quantity_base__uom = deltab-kwmeng.
            lt_request-delivery_date = sy-datum.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    EXPORTING
    DELIVERY_EXTEND =
    TECHN_CONTROL =
          TABLES
          request = lt_request
          createditems = lt_createditems
          return = lt_return.
    here i am able to create delivery successfully but the batch which i passed in bapi is not getting updated in vl02n to do PGI.
    again i need to go to vl02n and give batch and quanitty manually to do PGI.is there anyway that batch gets updated in vl02n also.
    Regards,
    Venkat.

    Hi
    My answer is pure assumption.
    Please check the following OSS notes
    Note 758810 - BAPI_PO_CHANGE vendor batch and batch not visible
    Note 1230268 - Field Vendor Batch never filled for PO BAPIs
    Please take help from BASIS and SAP, before implementing the OSS note
    Regards
    Madhan D

  • AD Group membership not updating in Sharepoint Foundation when adding Active Directory group to Sharepoint group

    I have Sharepoint Foundation installed with the latest CU updates.  It is running on a VMware box (Windows Server 2008 R2 Standard) with its backend on a SQL Server 2008 R2 vmware box.  The farm account is a domain user and has been given all appropriate
    replication rights, etc to active directory.
    Everything seems to be working fine except for security integrated with AD groups.  When I go to edit permissions I can add individual AD users just fine and remove them just fine and their access is taken away right away or given to them right away.
     I can also find AD groups in the people picker and add them to the site. When I add new groups to AD, they are found immediately within Sharepoint, and when I delete groups from AD, they are taken out of the people picker right away.  Now comes
    the weird part.  When I add an AD group to the site, all users currently within that AD group are given access to the Sharepoint Site.  This works for the first time only.  Now when I add or remove users from the AD groups, it does not update
    in SharePoint.  For example, I have an AD testuser1 in the AD Group "All Users".  testuser1 does not have access to SharePoint.  So I add  the AD group to the Sharepoint group "Visitors".  testuser1 now has read access to the sharepoint
    site.  Now, I remove testuser1 from the AD group, but testuser 1 still has access to the site even though he is not part of the AD group, nor does he have any individual permissions to the site.  Now, I add testuser2 to the ad group.  testuser2
    does not have access to the site, even though he is part of the ad group.
    It seems that the only time AD group security is working for me is when I first initially add the AD group to the site.  From then on, it's like sharepoint is caching the members of the group and not updating any new adds or deletes from the groups.
     Any ideas?  I am lost on where to go from here as I have tried everything from clearing cache files, rebooting servers, iisresets....

    I think I have at least cornered the problem, but am not 100% sure yet that it is the correct answer.  I think it could be 1 of the following 2 scenarios.
    Scenario 1:  We have 3 web applications setup on our web server ports 80 - Our sharepoint Web app, 2020 - Our My Site Web App, 2040 - Our Search Web app.  We are using host headers (http://sharepoint.***.com) instead of a server name.  So
    we setup our access mappings (Central Admin -> Application Management -> Configure Alternate access mappings) to use the host header (http://sharepoint.***.com) as the default mapping and the server name as the intranet access mapping.  By
    setting the default access mapping to host headers, i noticed that Sharepoint automatically assumes that all web apps are on port 80.  You can see this by going to (Central Admin -> Manage Web Applications).  The port listed all 3 web apps on
    port 80.  So I think when I was doing a profile sync and using mysites, it was messing with my AD security because of this.  What I did was the following.  I went to Central Admin -> Manage Service Applications -> [Name of your user profile
    service] -> Setup my sites.  I made sure that my preferred search center had the correct port number on it (mine originally had no port number), that my my site host had a port (again no port number originally), as well as the personal site location.
     I then saved this.
    Scenario 2:  Our user profile sync had 2 BDC connections that were corrupt and throwing errors.  I rebuilt the connections, remapped them to the proper user profile property.
    I did both of these scenarios above around the same time.  I then restarted all my servers, and at last the AD Group security is now functioning appropriately.  I have done multiple IIS resets and server restarts.  The issue has only reappeared
    once.  After restarting the machine again, we were back to the AD groups functioning correctly.  Because we had the issue reappear once after doing the above, I still do not feel 100% sure that either one of the above corrected the issue completely.
    As long as we are up and running currently, I am moving on to other tasks with this project.  My only concern that it will break again and I will have to revisit it is when we restart the servers....which is never fun.  I will update as I find
    a "true" answer to this issue....  Let me know if any of the above helped you or if you find something I may not have thought of.

  • Problem in customer address while creating service notification using IW51

    Hi Experts,
    I am trying to create a BDC recording for creating Service Notification using transaction IW51. I have done the recording as follows. On the First screen I am entering notification type. Then on the next screen I am entering the Sold to party  and its address by clicking on the icon besides it. After that i enter Functional location, equipment, priority and req end date and save it.  When I am running this recording after transferring it to a progam , somehow the address disappears for the newly created notification. I am not able to figure out the reason. Kindly guide me.
    Thanks,
    Sonal

    I assume you have tried this with update mode = 'A'-all and watched it actually work correctly?  May I ask why the BDC instead of BAPI?  Is it because you're creating a new partner?  If so, are you pressing save on that partner creation?

  • HT6147 Why haven't they done a patch for those of us who have not updated and prefer to use iOS 6?

    Why haven't they done a patch for those of us who have not updated and prefer to use iOS 6?

    Totally agree with Andy. Apple needs to support its users whether or not they decide to update to iOS 7.
    The reviews from i Pad 3 owners (like me) is that when they've updated to iOS 7 they've experienced latency and sluggishness. Why would I ruin a perfectly good iPad by updating to iOS 7?
    Please let me know where I can find a patch for iOS 6.
    Thanks!

  • Updating T'code ME23N using BAPI's

    Dear All,
    I am updating T'code ME23N using BAPI  " BAPI_PO_CHANGE". First i m tried in SE37 there its not updating it giving error like " PO could not be changed using the Enjoy-BAPI"  for this  i m trying in 4.6c.
    Here i have to update only two check boxes those are NO_MORE_GR(ELIKZ) and FINAL_INV(EREKZ).
    Please tell me any one there are  any other BAPI's are  avialable or how to slove this porblem.
    Best Regards,
    Srinivas.

    Hello
    I just have run this code in 4.6C. It working fine.
    DATA: xreturn  like BAPIRET2      occurs 0 with header line,
          xpoitem  like BAPIMEPOITEM  occurs 0 with header line,
          xpoitemx like BAPIMEPOITEMX occurs 0 with header line.
    xpoitem-po_item = p_ebelp.  " set position here
    xpoitem-no_more_gr = 'X'.
    xpoitem-final_inv = 'X'.
    append xpoitem.
    xpoitemx-po_item = p_ebelp. " set position here
    xpoitemx-no_more_gr = 'X'.
    xpoitemx-final_inv = 'X'.
    append xpoitemx.
    CALL FUNCTION 'BAPI_PO_CHANGE'
         EXPORTING
                  purchaseorder    = p_ebeln "set ebeln here
         TABLES
                  return           = xreturn
                  poitem           = xpoitem
                  poitemx          = xpoitemx.
    if sy-subrc = 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING WAIT = 'X'.
    endif.

  • User and Group information not updated in Sharepoint 2010

    Hi,
    Recently, our orgnisation has maked update of user and group in the Active Diractory. The information was not update in the site collection. I was try to :
    -recreate and synchronize a new service application ( no effect)
    - Delete old database synchronisation( stsadm -o sync -deleteolddatabases 5)
    - stsadm -o sync -synctiming m:5 and stsadm -o sync -sweeptiming m:5 (No effect)
    -I have no error or warning whn i make the synchronisation, all data bases is started.
    Anyone can help me please??
    Thks

    Is User Profile to SharePoint Full Synchronization job up and running? Do you see any errors when this job runs? Turn on verbose logging to see details when this job runs.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Catalog group membership not updating

    Hi,
    I am experiencing a problem with my catalog groups. I have just created a new catalog group and added a user account as a member and also removed that user account from another group by logging in as administrator in answers and using settings - manage presentation catalog groups and users.
    If i now log in as that user the membership hasn't updated and when I click on My Account for that user it still shows as a member of the old group and not the new one.
    My security for users is done through LDAP and in Tools - Options in Admin console on the repository tab I have the LDAP Cache refresh interval set to 1 minutes.
    I know if I restart the presentation services that it will work ok but I don't want to have to do that as I have users using the system.
    Any advice would be appreciated.
    Thanks
    Patricia

    hi,
    you can try to set in the instanceconfig.xml
    the tags
    --->
    <CacheMaxExpireMinutes>2</CacheMaxExpireMinutes>
    <CacheMinExpireMinutes>1</CacheMinExpireMinutes>
    <CacheMinUserExpireMinutes>1</CacheMinUserExpireMinutes>
    <ClientSessionExpireMinutes>10</ClientSessionExpireMinutes>
    <SearchIDExpireMinutes>9</SearchIDExpireMinutes>
    <---
    they control the cache of the browser
    check administrator guide for more informations
    --check in other pc or check with an other browser at the same
    i hope i helped....
    http://greekoraclebi.blogspot.com/
    Edited by: eejimkos on Jul 15, 2009 4:52 AM
    Edited by: eejimkos on Jul 15, 2009 5:01 AM

  • Invoice not updated for Service and limit items

    Hi All,
    For service and limit we are not able to see the invoice document in the "Related Documents" tab in the Purchase order.
    For material I am able to find the entry in the tab but the invoice statistics data is not getting updated for service POu2019s and also for limit item POu2019s.
    Found a note for the same : 1462644 - Empty statistics in PO in case of Extended Classic Scenario but it works only for material line items only.
    Please let me know if any config change need to be made else if there is any SAP note that would resolve this issue.
    Thanks in advance.
    Regards,
    Catherine

    A knowledge based article note was applied to resolve the issue.
    Regards,
    Catherine

  • Assignemnt field (ZUONR) not updating for Service Order RAS

    Hello Experts,
    I am facing an issue in service order RAS (Order Related Billing), here assignment field (VBRK-ZUONR and BSEG-ZUONR) is not updating against document type RV.
    Same is not reflected against customer in FBL5N also.
    Please suggest.
    Regards
    Rajat

    Hi
    Check the copy rules in tcode VTFL and/or VTFA. Check the field for assignment number. Check also the VOFM subroutines.
    Also, check Note 301077 - User exits for the interface to accounting to change the value of ZUONR in BSEG (in ACCIT in the interface of this FM)
    Regards
    Eduardo

  • Account Assignment WBS not updated in Service PR

    Dear Expert
    I am creating Service Purchase Requisition from project but in Account Assignment only network is coming , our requirement is WBS as account assignment,
    in Account assignment tab WBS field is coming but WBs is not updating,
    pls suggest , is there any configuration issue ??
    rgds
    rkp

    I think it is standard .
    If you need WBSE then create manual PR with account assignment P.

  • RRM RF Group Leader not updating RF Group Members

    We cannot get RRM RF Group Leader to update the RF Group Members. On our group leader controller, it sees our other controllers in the RF group. We have APs assigned to all four of our controllers and the tx power and dynamic channel assignment do not work. When we put all of the APs onto the RF group leader controller, the tx power levels and dynamic channel assignment both work as they are supposed to. All of our settings on our controllers are exactly the same. I guess my question is, is there a set of specific settings that I need to apply before RRM starts to update from the RF group leader?

    We have all four of our controllers on the same RF Domain Name. We have verified the status of the Mobility Group using eping and mping. We split up our APs on two of our controllers that are in the same 6500 and it still would not update from the RRM Group Leader. We "tricked" the WLC into moving the group leader onto the other controller that was in the same 6500. The same thing happened, now the 2nd controller won't send updates to the original controller. We moved all the APs onto the group leader and everything worked fine.

  • RNOTIFUPDATE01 - SAP Status not updated from Service Desk msgs

    Hi Folks,
    Already for some days we're facing the issue that SAP status of Solution Manager msgs that are sent to SAP is not updated in the SolMan itself.
    So, if a msg is send to SAP, and SAP made an update and changed their status to 'Customer Action' or 'Solution Provided', the status in SolMan is still 'Sent to SAP'. Only at the marketplace we're able to see the real status.
    The job RNOTIFUPDATE01 runs successfully every hour, no errors listed.
    However when I run the job manually in SE38, i get a message like:
    9999017765 012005041000000066052008 Read/Update Error
    9999017765 012005041000000066052008 Locked, Entry in DNOD_UPDATE Successful
    Searching for these errors in the notes, gave me some results, but unfortunately these corrections are already in our system.
    Our patch level is SAPKA70015, SAPKB70015 and SAPKITL426.
    I'm not 100% sure, but I think that it is related to installation number, as some msgs are updated and other aren't.
    Does any of you has an idea?
    Thanks a lot for your help folks!
    Roel

    Hello Roel,
    The update of the status in the Solution Manager service desk document (usually SLFN), to match the SAP one, is managed by the method AISDK_SP_CHECK_DNO. To configure this, do as follows:
    - Execute transaction SPPFC, selecting the Application DNO_NOTIF
    - Open the action profile SLFN0001_STANDARD_DNO (or the one you created as a copy)
    - Open the action definition SLFN0001_STANDARD_DNO_CHECK (or the one you created as a copy)
    - Under "Processing Types", check if the method AISDK_SP_CHECK_DNO is set (if not, set it as the method to be called)
    - Check the method parameters:
    USER_STATUS1 is the status that was set BEFORE SAP answers
    USER_STATUS2 is the status that will be set WHEN SAP answers (this is the one you should modify)
    Save everything and test.
    Please let me know if this works for you.
    Best Regards,
    Cristiano Canzone

  • AD System Group Discovery not updating System OU Name on computer object when computer moves OU

    2 related questions.
    1. We have noticed that computer objects (active clients) in ConfigMgr are not getting their System OU Name discovery data updated when a computer account is moved from one OU to another, and AD System Group Discovery runs. Since we are basing some of our Software Updates collections on AD OU name, these systems are not falling into their required collections.
    2. On a few occasions we are also seeing duplicate computer objects being created. One new record from AD System Discovery, which contains the correct 'new' System OU Name, and one 'old' computer object from before the computer account was moved to a different OU in AD. The heartbeat discovery of this second object is still updating e.g. showing new heartbeats, but the computer object still shows the old System OU Name from before the computer account was moved in AD. If we delete both objects and run a Discovery Data Collection Cycle from the client, and AD System Group Discovery, then we get one new record with the correct 'new' set of System OU names.
    This duplicates issue is happening in both our Central Primary Site and our other child Primary site. Both sites are set to create new client records for duplicate hardware IDs, and there is a possibility we're seeing the duplicate records on machines that have been re-imaged and redeployed at some point.
    It's my understanding that it is AD System Group Discovery that updates the System OU Name property on client objects. We have this set to run every 4 hours. I'm not seeing any errors in the adsysgrp.log. Any idea why discovery is not updating the System OU Name information when a computer account moves OU? As far as I understand it, nothing additional is required to happen from the client end for this property to get updated.

    The only thing I can think of would be ad sys group discovery not running at the site where the client is assigned to?
    "Everyone is an expert at something" Kim Oppalfens Configmgr expert for lack of any other expertise. http://www.scug.be/blogs/sccm
    HI Everyone..
    ANy reply or correct answer to this question???
    Same problem even i have. Duplicate machine names created when machine moved to different sites.
    And also, AD sys group discovery running on all the sites (i have 4 sites).
    System Security analyst at CapG

Maybe you are looking for

  • Getting started with EJB

    I am trying to run my first EJB program without having to use JBoss or Sun's app server. I want to write a program and understand various jar files, and be able to deploy it in app server of my choice. I looked at example in Java EE tutorial but deve

  • Button not visible in ess or mss appraisal portal.

    i have implimented custome BADI implimentation for standard BADI " HRHAP00_ADD_HEADER " for my appraisal template for ess and mss. it is showing one additional data button in header section of the template. when i see this template in R/3 system in d

  • Why does the Google home page scroll vertically in Firefox?

    It scrolls vertically only in Firefox. It doesn't scroll when I'm logged out, or if there is a special doodle.

  • Xserve RAID

    Is there a way to admin a new Xserve RAID from my Lion Xserve? I have many 1TB drives I would like to share through AFP on the Lion Server with an Xserve RAID connected to the Xserve via Fibre Channel. Is this still possible?

  • Organizing song order in a playlist

    I made a few playlists on my ipod touch but i'd like to place the songs in a particular order. I have it set to organize in alphabetical on iTunes, but i'd like to set up a certain order on my iPod touch. How do i do this? Thanks