BAPI_SERVNOT_MODIFY_DATA

Hi all,
I need to use <b>BAPI_SERVNOT_MODIFY_DATA</b> to modify a field for the service notification.
Can anyone show me an example of the code?
Service Notification Number = 2510034692
I want to add "<i>Testing</i>" into Small Text field
After which I need to Save and Commit.
Thank you for the help.

Functionality
This BAPI enables you to modify the header, items, causes, activities, tasks, and partners of the service notification.
Notes
Errors are returned in the parameter RETURN.
Technical note
If you want to change a field you have to specify the new value of the field in the data structure e.g. NOTIFHEADER-SHORT_TEXT . In addition the corresponding X-structure field e.g. NOTIFHEADER_X-SHORT_TEXT must be checked.
If you want to change a partner in the notification, the fields PARTN_ROLE_OLD and PARTNER_OLD must be specified and the X-structure must be filled as described above.
Parameters
NUMBER
NOTIFHEADER
NOTIFHEADER_X
NOTIFHEADER_EXPORT
NOTIFITEM
NOTIFITEM_X
NOTIFCAUS
NOTIFCAUS_X
NOTIFACTV
NOTIFACTV_X
NOTIFTASK
NOTIFTASK_X
NOTIFPARTNR
NOTIFPARTNR_X
RETURN
call function 'BAPI_SERVNOT_ADD_DATA'
       exporting
            number            = p_number
     IMPORTING
          NOTIFHEADER       =
          NOTIFHDTEXT       =
       tables
            notfulltxt        = pt_longtext
            notitem           = pt_item
            notifcaus         = pt_caus
            notifactv         = pt_actv
            notiftask         = pt_task
            notifpartnr       = pt_partnr
            key_relationships = pt_keyinfo
            return            = lt_return.
  append lines of lt_return to pt_return.

Similar Messages

  • BAPI_SERVNOT_MODIFY_DATA for modify the vendor for as per notification.

    hello friends,
    i want to modify vendor data in tcode IW52.
    for that i am using bapi BAPI_SERVNOT_MODIFY_DATA here they r displying so many tables among them i have tried to use all them , but i acn not find real thing so will any one help me in this.
    i want to modify vendor data element VIQMEL-QMCOD.
    THANKS
    RAJAN.

    SOLVED BY SELF

  • Service notification change

    Hi,
    Is there any BAPI or a direct input program,that would enable me to update a Service Notification.The BAPI should have reference to the QMEL table of Service Notification.
    We have added two custom fields to the Additional Tab1
    of the standard Service notification transaction namely
    IW51 and also to the QMEL table.I want a BAPI which would help me update these two custom fieds in the QMEL table.
    Please help me solve this requirement.I will reward the perosn with points.
    Regards,
    Amit.

    BAPI_SERVICENOTIFICAT_CREATE ?
    or
    BAPI_SERVNOT_MODIFY_DATA ?
    Rob
    Message was edited by: Rob Burbank

  • Updation/Creation of service notification

    I want to create a service notification using transaction iw51& iw52. The notification has a few custom fields to be updated I am using BAPI_SERVNOT_CREATE to create the notification but i am not able to update the custome fields the BAPI doesnot have Extension_In/Extension_out fields also. I have tried using BAPI_ALM_NOTIF_DATA_ADD , BAPI_SERVNOT_MODIFY_DATA , BAPI_SERVNOT_ADD_DATA these too have the same issue. I want to know the BAPI which can be used for updating the custom fields 
    I am prefering to use BAPI instead of BDC.
    Kindly Respond urgently.
    Thanks.

    Hi Ayushi,
    In the Include MV45AFZZ you need to write you code.
    First check for whcih service notification. I mean Notification Type.
    Then use you BAPI if it is correct for the notification type.
      CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
           EXPORTING
                notif_type         = p_header-tables-mnmisc-notif_type
                notifheader        = p_header-tables-mnhead
                task_determination = p_header-tables-task_determination
                orderid            = p_header-tables-mnmisc-orderid
           IMPORTING
                notifheader_export = l_head
           TABLES
                notitem            = l_it_item         " Since you dont have any items to create leave it blank.
                notifcaus          = l_it_caus      " Since you dont have any causes to create leave it blank.
                notifactv          = l_it_act          " Since you dont have any activities to create leave it blank.
                notiftask          = l_it_task         " Since you dont have any tasks to create leave it blank.
                notifpartnr        = l_it_part       "etc ditto
                longtexts          = l_it_text
                return             = l_it_return.
    read table it_return index 1 / read table it_return TYPE = 'S'
    if sy-subrc = 0.
    lv_notNumber = MESSAGE_V1 / MESSAGE_V2 .
      message  'Notification created' with lv_notnumber type 'S'.
    endif.
    The above logic is a Psuedo or a hint only. Hope this helps.
    Thanks & regards,
    Bhargav.
    Finally in the user exit give the message

  • Suitable FM/BAPI for Change Notification  QM02

    Hi
    I need to simulate transaction QM02. Change Notification -Vendor fault List
    I have found two FM's
    1. IQS0_CHANGE_NOTIFICATION
    2. IQS0_MODIFY_NOTIFICATION
    But not sure which one to use.
    Can somebody throw some light on this.
    Thanks and Regards
    Sree Ramya

    Hi,
    Check this..
    BAPI_SERVNOT_ADD_DATA          Added Items, Causes, Activities, Tasks, Partners of the service notif.   
    BAPI_SERVNOT_CHANGEUSRSTAT     Change the user status of a service notification                         
    BAPI_SERVNOT_CLOSE             Complete service notification                                            
    BAPI_SERVNOT_CREATE            Create service notification                                              
    BAPI_SERVNOT_DEL_DATA          Delete Items, Causes, Activities, Tasks, Partners of the service notif.  
    BAPI_SERVNOT_GET_DETAIL        Get details about a service notification                                 
    BAPI_SERVNOT_MODIFY_DATA       Modify a service notification or associated subdata                      
    BAPI_SERVNOT_POSTPONE          Postpone service notification                                            
    BAPI_SERVNOT_PUTINPROGRESS     Put in process a service notification                                    
    BAPI_SERVNOT_SAVE              Save service notification                      
    Regards

  • BAPI to remove leading zeros from the serial number

    Hi All ,
    plz can anybody suggest me the alternative BAPI for 'BAPI_SERVNOT_MODIFY_DATA ',whose function is to delete the leading zeros,from the serial number.
    Thanks.

    Perhaps instead of using a BAPI you can code it like this.
    DATA:serial(10) TYPE n VALUE '0000340078',
    pos TYPE i VALUE 1.
    START-OF-SELECTION.
      WHILE pos <= 10 AND serial+pos(1) = 0.
        pos = pos + 1.
      ENDWHILE.
      REPLACE ALL OCCURRENCES OF '0' IN serial(pos) WITH space.
      WRITE serial.

  • BAPI to update notification(IW52)

    Hi,
    I hv a requirement to update the VBELN field of the service notification (IW52). Is there any BAPI to do this. I am using th following BAPIs, but the data is not getting updated.
    BAPI_ALM_NOTIF_DATA_MODIFY
    BAPI_SERVNOT_MODIFY_DATA
    IWON_NOTIFICATION_DATA_MODIFY.
    Pls sugest.
    Regards
    Anand

    Hi Janagar,
    I am using the the BAPI_TRANSACTOIN_COMMIT, but still the field is not getting updated, also the interesting thing to note is that I m getting an information message in the return table as 'Order is not a maintenance contract', but stiil the updation fails.
    Regarding the include could you pls elaborate which part of it should I refer?
    Thanks in advance.
    Regards
    Anand

  • Error in BAPI used for  QM02

    Dear All ,
                 I need to upload the Changes in QM02 , as per Sales Order Changes For that I am using Enhancement spot in VA02 and uploaded QM02 data using BAPI's :
    1. BAPI_SERVNOT_ADD_DATA        -  To add new line item
    2. BAPI_SERVNOT_DEL_DATA         -  To delete a Line item
    3. BAPI_SERVNOT_MODIFY_DATA  -  To Modify the Data
    But for all the three Bapi's I am getting One common Error Ie... ' Notification type Q1 not defined ' . Here I am modifying the Notification Numbers in QM02 that is of Type "Q1" Only . But even then I am getting this error. Can some one guide me  to solve this Error . Or any other alternative solution for my Requirement .
    Thanks and Regards
    Syed Akbar

    HI
    Notification Type is Not Define Here. This has been Done By Configuration.
    Try This........
    http://help.sap.com/saphelp_46c/helpdata/en/44/158bb8dd3c11d29a520000e8a529f3/content.htm
    Regards
    Ajit

  • Get the Sales Order number from Service Notification

    Hi Experts,
                       Please let me know if there are any BAPI's or standard Function modules to get the Sales order for a given Service Notification number.
    Thanks a lot

    Hi Ashish,
    Hope the listed BAPI's let you solve the issue:
    BAPI_SERVNOT_CLOSE Complete service notification
    BAPI_SERVNOT_CREATE Create service notification
    BAPI_SERVNOT_DEL_DATA Delete Items, Causes, Activities, Tasks, Partners of the service notif.
    BAPI_SERVNOT_GET_DETAIL Get details about a service notification
    BAPI_SERVNOT_MODIFY_DATA Modify a service notification or associated subdata
    BAPI_SERVNOT_POSTPONE Postpone service notification
    BAPI_SERVNOT_PUTINPROGRESS Put in process a service notification
    BAPI_SERVNOT_SAVE Save service notification
    BAPI_SERVICENOTIFICAT_CREATE Create service notification
    BAPI_SERVICENOTIFICAT_GETLIST Select service notifications according to customer or contact person
    BAPI_SERVNOT_CHANGEUSRSTAT Change the user status of a service notification
    Regards,
    Soundarya.

  • Any cache available for CIS

    Hi all,
    I am using ucm10g, using java api to access content, the function is for listing subdirectories of father directory, list files of 1 directory, download some files, search keywords,etc.
    I reseached ucm doc, seems ucm offers the following cache:
    Search caches: I can use it.
    Reverse proxy web caching and page caching: since I don't use site studio and wcm, seems I can't use this cache.
    cacheInclude Idoc: I don't know what's this cache for.
    The question is whether ucm offer cache for listing subdirectories and listing files when user use CIS?
    Best regards

    HI
    GOOD
    CHECK WITH THE FOLLOWING FUNCTION MODULES
    BAPI_SERVICENOTIFICAT_CREATE - CREATE SERVICE NOTIFICATION
    BAPI_SERVNOT_DEL_DATA -        Delete Items, Causes, Activities, Tasks, Partners of the service notif. 
    BAPI_SERVNOT_GET_DETAIL        Get details about a service notification                                 
    BAPI_SERVNOT_MODIFY_DATA       Modify a service notification or associated subdata                      
    BAPI_SERVNOT_POSTPONE          Postpone service notification                                            
    BAPI_SERVNOT_PUTINPROGRESS     Put in process a service notification                                    
    BAPI_SERVNOT_SAVE              Save service notification                 
    THANKS
    MRUTYUN

  • PM Notification

    Hi, I have a problem.
    I have to change the status of a maintenance Notification
    (PM, transaction iw52) in complete mode in automatic way: through a BAPI or function. Can someone help me?

    Check out this function group.  Maybe there is something here that you can use.
    IQS6                           SM notifications BAPIs                                               
    BAPI_SERVNOT_ADD_DATA          Added Items, Causes, Activities, Tasks, Partners of the service notif.
    <b>BAPI_SERVNOT_CHANGEUSRSTAT     Change the user status of a service notification                     </b> BAPI_SERVNOT_CLOSE             Complete service notification                                        
    BAPI_SERVNOT_CREATE            Create service notification                                          
    BAPI_SERVNOT_DEL_DATA          Delete Items, Causes, Activities, Tasks, Partners of the service notif
    BAPI_SERVNOT_GET_DETAIL        Get details about a service notification                             
    BAPI_SERVNOT_MODIFY_DATA       Modify a service notification or associated subdata                  
    BAPI_SERVNOT_POSTPONE          Postpone service notification                                        
    BAPI_SERVNOT_PUTINPROGRESS     Put in process a service notification                                
    BAPI_SERVNOT_SAVE              Save service notification                                           
    Regards,
    Rich HEilman

  • Any  BAPIs to post Service entery details

    Hi SAP Gurus,
    I need to create an interface program to upload Service entry details received from the different system to sap.
    Details:
    Service Entry Sheet will be posted manually for the accepted services in case of Maintenance, Repair and Licensing. A batch job will be created to post the Service Entry Sheet from the file extracted out of the EPM system, based on the number of actual hours worked by each Contractor on a Project.
    Kindly inform whether any BAPI is available to post this data or I need to go for BDC method only.
    Regards
    Hari

    hi,
    chk out these BAPI's
    BAPI_SERVICENOTIFICAT_GETLIST  Select service notifications according to customer or contact person    
    BAPI_SERVICENOTIFICAT_CREATE   Create service notification   
    BAPI_SERVNOT_ADD_DATA          Added Items, Causes, Activities, Tasks, Partners of the service notif.   
    BAPI_SERVNOT_CHANGEUSRSTAT     Change the user status of a service notification                         
    BAPI_SERVNOT_CLOSE             Complete service notification                                            
    BAPI_SERVNOT_CREATE            Create service notification                                              
    BAPI_SERVNOT_DEL_DATA          Delete Items, Causes, Activities, Tasks, Partners of the service notif.  
    BAPI_SERVNOT_GET_DETAIL        Get details about a service notification                                 
    BAPI_SERVNOT_MODIFY_DATA       Modify a service notification or associated subdata                      
    BAPI_SERVNOT_POSTPONE          Postpone service notification                                            
    BAPI_SERVNOT_PUTINPROGRESS     Put in process a service notification   
    BAPI_PROC_CHAR_GET_HELPVALUES  Read allowed values for a process characteristic                         
    BAPI_PROC_CHAR_GET_LIST        Read process characteristics, incl. detail data                          
    BASB                           Service Master Record: BAPIs                                             
    BAPI_SERVICE_GET_DETAIL        Read Detailed Data for a Service Master Record                           
    BAPI_SERVICE_GET_LIST          List Display for Service Master Records     
    BAPI_SERVICE_GET_DETAIL        Read Detailed Data for a Service Master Record                           
    BAPI_SERVICENOTIFICAT_CREATE   Create service notification  
    BAPI_SERVICENOTIFICAT_GETLIST  Select service notifications according to customer or contact person
    Regards,
    Arunsri

Maybe you are looking for

  • Upgraded to iOS4.1; can't read or write e-mail

    Hi, I just recently did a full system restore, and then updated to iOS 4.1 (iPhone 4) Everything appeared to install with no problems, however now when I go to check my e-mail through the mail app, on the summary page that lists the e-mail titles and

  • My dashboard and iTunes keeps quitting unexpectedly everytime

    Everytime I try to open iTunes or my dashboard, it keeps saying it quit unexpectedly. I've tried uninstalling and installing iTunes again but with no luck. I also did repair disk permission but no luck again. This is what the details are for the dash

  • PDF previewer not working in Outlook

    All, I have recently updated to Adobe reader 11.0.10, I can now open the documents I was not able to open, but the previewer in Outlook stopped working. The error I get is that the doc is not supported by my currect reader and that I have to upgrade

  • Email on Idoc Failure with Status 56 64 68 69 70

    We have standard inbound idoc processing for Basic Type : DELVRY01 and Message Type : DESADV using the function module IDOC_INPUT_DESADV1. We currently have a requirement to send an email, when any of these type of Idocs fail with status 56, 64, 68,

  • Flash Builder failed to lunch after installation.

    Adobe Flash Builder can't lunch after installation completed successfully. it says to uninstall and reinstall again. if problem continues, contact adobe support. and it says: "error: 5" ~ Then after I uninstalled it. Download it again and reinstall a