Any bapi for t.code IW21

Hi experts,
when i want to add notification in IW 21 tcode  for that i am using this
BAPI_ALM_NOTIF_DATA_ADD but it's not woking . any one send me sample code for that .
thank you for advance.
with best regards
vas

Hi,
you can use these FM's ALM_PM_NOTIFICATION_CREATE , ALM_PM_NOTIFICATION_SAVE and  BAPI_TRANSACTION_COMMIT to create entries in IW21
See this sample code.
*& Report  Z94406_BAPI_ASSIGNMENT
DATA : ITAB TYPE BAPI2080_NOTHDRI,
       NOTNO LIKE BAPI2080_NOTHDRE-NOTIF_NO,
       NOTIF LIKE BAPI2080-NOTIF_TYPE,
       p_filename TYPE STRING,
       notifheader_export TYPE BAPI2080_NOTHDRE,
       notifheader TYPE BAPI2080_NOTHDRE,
       RETURN TYPE TABLE OF BAPIRET2 WITH HEADER LINE,
       RETURN1 TYPE TABLE OF BAPIRET2 WITH HEADER LINE,
       RETURN2 TYPE BAPIRET2,
       MSG TYPE BAPIRET2-MESSAGE,
       TYP TYPE BAPIRET2-TYPE.
DATA: BEGIN OF DATA_TAB OCCURS 0,
      notype TYPE QMEL-QMART,
      txt TYPE QMEL-QMTXT,
      floc TYPE IFLOT-TPLNR,
      END OF DATA_TAB.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
PARAMETERS : p_file TYPE RLGRAP-filename.
SELECTION-SCREEN END OF BLOCK b1.
    P_FILENAME =  P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename                      = P_FILENAME
    filetype                      = 'ASC'
    has_field_separator           = '#'
  TABLES
    data_tab                      = DATA_TAB
LOOP AT DATA_TAB.
  NOTIF = DATA_TAB-NOTYPE.
  ITAB-FUNCT_LOC = DATA_TAB-FLOC.
  ITAB-SHORT_TEXT = DATA_TAB-TXT.
CALL FUNCTION 'ALM_PM_NOTIFICATION_CREATE'*
    EXPORTING
      notif_type               = NOTIF
      notifheader              = ITAB
    SENDER                   = SENDER
    ORDERID                  = ORDERID
    IMPORTING
      notifheader_export       = NOTIFHEADER_EXPORT
   TABLES
    NOTITEM                  = NOTITEM
    NOTIFCAUS                = NOTIFCAUS
    NOTIFACTV                = NOTIFACTV
    NOTIFTASK                = NOTIFTASK
    NOTIFPARTNR              = NOTIFPARTNR
    LONGTEXTS                = LONGTEXTS
    KEY_RELATIONSHIPS        = KEY_RELATIONSHIPS
     return                   = RETURN
IF RETURN IS NOT INITIAL.
MSG = RETURN-MESSAGE.
TYP = RETURN-TYPE.
MESSAGE MSG TYPE 'I'.
ELSE.
  CALL FUNCTION 'ALM_PM_NOTIFICATION_SAVE'
    EXPORTING
      number      = NOTIFHEADER_EXPORT-NOTIF_NO
    IMPORTING
      notifheader = NOTIFHEADER
    TABLES
      return      = RETURN1.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait   = 'X'
    IMPORTING
      return = RETURN2.
ENDIF.
ENDLOOP .
IF RETURN IS INITIAL.
message 'The Notification is created' type 'I'.
endif.
Hope it helps.
Regards,
Syed

Similar Messages

  • Is there any BAPI for T-CODE:XK05?

    The same as the title. Thanks!

    Hi,
    1.Execute tcode xk05 find a package.
    2.execute se80 provide package name
    extend BUSINES ENGINERING
    BUSINESS OBJECT TYPES
    METHODS SELECT RELEASED ONE
    DOUBLE CLICK ON RELEASED METHOD
    ONE WINDOW WILL OPEN
    CLICK ON ABAP TAB
    HERE U WILL GET BAPI FOR U R TCODE.
    This is the way to find a BAPI for a prticular tcode.
    Thanks&Regards,
    Phani.

  • BAPI FOR T-CODE PA30

    Hi GURU ,
    Is there any BAPI for T-Code PA30 .
    Please reply me.

    Hi
    Go through This link
    bapi for pa30
    Ranga

  • BAPI for t-code F-43

    Any one can tell me, is there any BAPI for t-code F-43.
    I have a req to create BDC session for t-Code F-43.
    I think instead of BDC,better BAPI.Please anyone knows,tell me.
    Thanks

    thanks for bapi..but in this bapi,there is no field for payee(EMPFB),what it is in t-code f-43.
    So if any other bapi,pls send me
    Thanks in advance

  • BAPI for Transaction Codes FMV1 and FMZ1

    hi,
    is there any bapi for transaction codes FMV1 and FMZ1?!
    please advice!
    thanks JE

    HI,
    For FMZ1
    use this
    FMFR_CREATE_FROM_DATA
    FMFR_CHANGE_FROM_DATA
    FMFR_CHANGE_COMPLETION_FLAG
    Regards
    Hiren K.Chitalia

  • BAPI for t-code MIR7

    Hi Friends,
    Can anybody help me get the BAPI for t-code MIR7? Also, please provide the code if available.
    Thanks and Regards
    Abinash Kumar

    Hi Amit,
    Can you give me a sample code for BAPI .. if you have any..... Also I need to know what all mandatory data I need to supply to HEADERDATA and  ITEMDATA.
    Thanks and Regards
    Abinash

  • BAPI for T-Code MB31

    Hi All,
    Is there is any BAPI for the T-Code MB31?
    Regards,
    Raghu

    Hi,
    Please take a look at this links for sample coding of BAPI_GOODSMVT_CREATE.
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    http://www.4ap.de/abap/bapi_goodsmvt_create.php
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    Take a look at the sample code provided by Rich in the thread below
    Re: BAPI_GOODSMVT_CREATE
    Please award points if found helpful.

  • Any BAPI for Transaction VF01??

    Hi Experts ,
    Is there any Bapi for transaction VF01.
    If it is then plz. do help me to use that one with coding .
    Regards,
    Rahul

    Hi,
    Check this sample code of creating the billing document using the bapi BAPI_BILLINGDOC_CREATEMULTIPLE.
    DATA: t_success TYPE STANDARD TABLE OF bapivbrksuccess WITH HEADER LINE.
    DATA: t_billing TYPE STANDARD TABLE OF bapivbrk WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapireturn1 WITH HEADER LINE.
    t_billing-salesorg = vbak-vkorg.
    t_billing-DISTR_CHAN = vbak-vtweg.
    t_billing-DIVISION = vbak-spart.
    t_billing-DOC_TYPE = vbak-auart.
    t_billing-ref_doc = vbak-vbeln.
    t_billing-ref_item = vbap-posnr.
    t_billing-doc_number = vbak-vbeln.
    t_billing-ITM_NUMBER = vbap-posnr.
    t_billing-ordbilltyp = 'BILLING TYPE'.
    t_billing-price_date = sy-datum.
    t_billing-ref_doc_ca = vbak-vbtyp.
    t_billing-sold_to = vbak-kunnr.
    t_billing-material = vbap-matnr.
    t_billing-plant = vbap-werks.
    APPEND t_billing.
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    TABLES
    billingdatain = t_billing
    return = t_return
    success = t_success.
    commit work.
    <b>Reward points</b>
    Regards

  • Is there any Bapi for Physical Sample creation

    Hi Folks,
    Is there any Bapi for physical sample creation. My scenario is like this I have the data in the table (material, plant, batch, type,vendor, vendorbatch ). For each material i have to create a  physical sample......
    Any ideas or suggestions would be appreciated..
    thanks
    chaithanya.

    HI Chaitanya,
    You can use : BAPI_BATCH_CREATE
    it has import paramaters like Material, Plant , batch , Batch Attributes ( Vendor No, Vendor Batch etc)... I guess this is what you are looking for.
    Regards,
    -Venkat.

  • BAPI for T.Code F-02

    Hi Dear Friends,
    Thanks in Advance.
    Is there any BAPI for the Transaction F-02.
    Regards;
    Sridhar.J

    Hi.
    Business Add-in
    050S008                                FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger
    BAS_CIN_LTAX1F02                       Tax interface
    BAS_CIN_MF05AFA0                       EWT - Downpayment Clearing - Tax transfer for CIN
    ISPLIT                                 Online Split: Cash Discount, Exchange Rate Differences
    I_AUTHORITY_ITEM                       Extended Authorization Check for Document Display (FB03)
    I_DOC_DISP_LI                          Diversion to Document Items (FB03)
    I_FB08_SUBST_BUDAT                     FB08: Check Posting Date for Reversal of FI Doc. with FB08
    I_GET_INV_PYMT_AMT                     BAdI for determining the payment amount for an invoice
    I_HEADER_SUB_1300                      Screen Enhancement for Document Header SAPMF05A
    I_PAYREF_BADI_010                      BAdI: Payment Reference Number
    I_RES_ITEM_CURRENCY                    Document of Residual Item with Invoice Currency
    I_TRANS_DATE_DERIVE                    Derive BKPF-WWERT from Other Document Header Data
    NVOIC_FI_INBOUND                       BADIs for Inbound IDoc INVOIC FI (Vendor Invoice)
    FESR000_BADI_001                       BAdI for Own Processing of POR Item
    VFZ                                    Replacement for Function Modules of Function Group FVFZ
    C_QUANTITY_GET                         Transfer of Quantities to Accounting - Customer Exit
    DJUST_NET_DAYS                         Change to Net Due Date
    ADI_ENJ_ALT_ADR                        Go to alternative vendor/customer data
    ADI_F040_SCREEN_600                    Screen Enhancement on F040 0600 Document Header
    ADI_FDCB_SUBBAS01                      Screen Enhancement 1 on FDCB Basic Data Screen (010, 510)
    ADI_FDCB_SUBBAS02                      Screen Enhancement 2 on FDCB Basic Data Screen (010, 510)
    ADI_FDCB_SUBBAS03                      Screen Enhancement 3 on FDCB Basic Data Screen (010, 510)
    ADI_FDCB_SUBBAS04                      Screen Enhancement 4 on FDCB Basic Data Screen (010, 510)
    ADI_FDCB_SUBBAS05                      Screen Enhancement 5 on FDCB Basic Data Screen (010, 510)
    ADI_PRKNG_NO_UPDATE                    BAdI for Deactivating Update of Parked Documents
    Enhancement/ Business Add-in            Description
    Enhancement
    FARC0002                                Additional Checks for Archiving MM Vendor Master Data
    F180A001                                Balance Sheet Adjustment
    F050S007                                FIDCCH Outbound: Influence on IDoc for Document Change
    F050S006                                FI Outgoing IDoc: Reset Clearing in FI Document
    F050S005                                FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S004                                FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S003                                FIDCC2: Change IDoc/do not send
    RFAVIS01                                Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00                                Line item display: Checking of selection conditions
    RFKORIEX                                Automatic correspondence
    SAPLF051                                Workflow for FI (pre-capture, release for payment)
    F050S001                                FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002                                FIDCC1: Change IDoc/do not send
    Regards.
    Jay

  • Any BAPI for Auto clearing of Vendor accounts

    Hai,
    Any body know, any BAPI for Auto clearing of the Vendor account(transaction F.13).
    This urgent issue.
    Reward will promote you.
    Bye ,
    Elamaran

    no, there's no bapi
    -> another report is rfbibl00 with transaction fb05
    -> you've to fill structures bselk and bselp
    regards Andreas

  • Is there any BAPI for BOM creation? which does by RCSBI010 / Batch Input.

    Hi Experts,
    I need to Upload the extracted Excel-file(.txt) for BOM creation, so, pls, let me know that, Is there any BAPI for this purpose. In detail the requirement is that,
    The suggested idea shuld work as like as pgm. RCSBI010
    thanq
    Edited by: Srinivas on Feb 14, 2008 6:18 PM

    Hi Srinivas,
    Try these Function Modules
    CS_BI_BOM_CREATE_BATCH_INPUT   - Create BOM Via Batch Input
    CS_BI_BOM_CREATE_BATCH_INPUT1  - Create BOM Via Batch Input (Corrected Session Handling)
    There are two BAPI's too, which can be used
    ALE_MATERIAL_BOM_GROUP_CREATE
    BAPI_MATERIAL_BOM_GROUP_CREATE - Creation of a material BOM group
    Hoe this helps.
    Edited by: Priyabrata Samanta on Feb 15, 2008 3:56 AM

  • Do we have any BAPI for FBL3N or FBL4N?

    Hi Experts,
    Pls. let me know that, Is there any BAPI for FBL3N or FBL4N? really, am struggling!!
    thanq

    THANQ
    looks like its working.
    so,  pls. let me know example input parameters. bcoz, I hv the values of  comapny codeYEAR; month, GL ACCOUNT #; PROFIT CENTER AND KOST CENTER.
    bcoz, when I see the input paras, they r confusing.
    thanq

  • Are there any bapi for create Business Partner

    Dear Sir,
    Do you know  are there any bapi for create Business Partner in CRM
    Please advise.
    Thank you and best ergards,
    Vimol

    Dear Vimol,
    BAPI_BUPA_CREATE_FROM_DATA     ......SAP BP, BAPI: Create Business Partner
    BAPI_BUPA_FS_CREATE_FROM_DATA  .......SAP BP, BAPI: Create Business Partner
    BAPI_BUPA_FS_CREATE_FROM_DATA2 .......SAP BP, BAPI: Create Business Partner
    Hope this will help.
    Regards,
    Naveen.

  • Is there any BAPI  FOR TASKLIST CREATION OF ANY EQUIPMENT ?

    Dear Sir,
    Is there any BAPI  FOR TASKLIST CREATION OF ANY EQUIPMENT .
    Thanks.
    Regards,
    Pooja Joshi.

    Hello Pooja
    Perhaps the following link may be useful:
    <a href="http://www.sapfans.com/forums/viewtopic.php?p=906052">FAQ: Plant Maintenance and Customer Service BAPIs</a>
    Regards
      Uwe

Maybe you are looking for

  • RAM Memory question for Mac Pro 2.66 Ghz

    Hi all. I've got a MacPro 2.66 Ghz machine and I'm wondering if I need more RAM. Depending on who I talk to, I get a different answer so I'm hoping for some educated opinions. I've been monitoring my system and I get the following numbers from the Ac

  • When I try to finalize my project a message pops up, "Sharing requires more memory to be available." How do I work this issue out?

    When I try to finalize my project a message pops up, "Sharing requires more memory to be available." How do I work this issue out?

  • Create Image not working

    Hi all, I am trying to draw my graphics off screen. To do this i created an image of the width and height of the component under consideration. But i got a null reference. But when i tried to create the image inside the overridden paint call , i was

  • Select and SQL sorting

    LedgerID Name    Type  ParentID 1001 AA CLASS 1 1002 BB A/C 1001 1003 CC A/C 1001 1004 EE CLASS 1008 1005 DD A/C 1004 1006 FF A/C 1004 1007 GG A/C 1001 1008 HH CLASS 1001 1009 II A/C 1008 1010 JJ A/C 1009 First sorting Type=CLASS  then  add child ID

  • Only 5.5 Mbit with a Aironet 2600 AP

    Hi, we have some (2) HP Notebooks with a Broadcon 4313 b/g/n WLAN Chip and use the latest drivers (2012). This Chip can provide up to 72 mbit/s with 2,4 ghz. If we connect this notebooks to a Aironet 2600 AP (10 feet distance) the Windows 7 WLAN Dial