Hr-abap payroll (payslip problem)

Hi,
I am modifying the payslip.
Here in input screen we r using plant option.
my problem is if the person shifts from one plant to another plant then the payslip of that person must be latest plant payslip.
but if the end user takes payslip of the persons according to plant wise then that particular persons payslip is comming in both the plants.
I am using the following FM.
CALL FUNCTION 'LAST_DAY_OF_MONTHS'
    EXPORTING
      DAY_IN            = W_BEGDA
    IMPORTING
      LAST_DAY_OF_MONTH = W_ENDDA.
  IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
is there any function module like a person joining the middle of the month
for example:
he joins on 15 th of the month and it has to calculate the last day ofthe month.

Hi
Eg:
parameters: s_date type sy-datum,
                  e_date type sy-datum.
  s_date = sy-datum.
  call function 'RP_LAST_DAY_OF_MONTHS'
       exporting
            day_in            = s_date
       importing
            last_day_of_month = e_date.
write : e_date.
Regards
Raj

Similar Messages

  • HR-ABAP(Payroll Management)

    Hi All,
    I am new to HR-ABAP.
    I wanted to know more about HR-ABAP(Payroll Management).
    Please send me the links or documents if u have collected.
    Regards,
    Mihira

    1.http://www.atomhr.com/know_preview/Reading_Payroll_Results_with_ABAP.htm
    2.http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Payroll
    3. http://www.sap-press.com/product.cfm?account=&product=H967
    http://www.sapdevelopment.co.uk/hr/payres_abap.htm
    http://www.sapdevelopment.co.uk/hr/payres_tcode.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
    http://www.atomhr.com/training/Technical_Topics_in_HR.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    you can see some Standard Program examples in this one..
    http://www.sapdevelopment.co.uk/programs/programshr.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification
    These are the FAQ's that might helps you
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapgenie.com/faq/hr.htm

  • HR-ABAP Payroll-reports-interfaces-forms

    Hi everybody,
                     Please can any body send me the code for HR-ABAP  Payroll, time management  in case of REPORTS, Interfaces.
    I mean  to  get  coding fof retrievel of data from Payroll and Time Management modules.
    Waiting for reply.

    Hi,
    please go thorugh following links
    HR deals with the INFOTYPES which are similar to Tables in General ABAP.
    There are different ways of fetching data from these infotypes.
    There are different areas in HR LIKE Personal Admn, Orgn Management, Benefits, Time amangement, Event Management, Payroll etc
    Infotypes for these areas are different from one another area.
    storing of records data in each type of area is different
    LDBS like PNP are used in HR programing.
    Instead of Select.. we use some ROUTINES and PROVIDE..ENDPROVIDE.. etc
    and in the case of Pay roll we use Clusters and we Import and Export them for data fetching.
    On the whole Normal ABAP is different from HR abap.
    For Personal Admn the Infotypes start with PA0000 to PA1999
    Time Related Infotypes start with PA2000 to PA2999.
    Orgn related Infotypes start with HRP1000 to HRP1999.
    All custom developed infotypes stsrat with PA9000 onwards.
    In payroll processing we use Clusters like PCL1,2,3 and 4.
    Instead of Select query we use PROVIDE and ENDPROVIDE..
    You have to assign a Logical Database in the attributes PNP.
    Go through the SAp doc for HR programming and start doing.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/report%2bin%2bhr%2babap%2b(without%2bLDB)
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    See:
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
    Please check this link for HR sample programs.
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://www.sapfans.com/forums/viewtopic.php?p=498530&sid=d7ec5866e3fb26880da129de45ce79de
    http://www.sapcookbook.com/preview_hr_questions.htm
    http://www.atomhr.com/library_full.htm
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci983590,00.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b74ce990-0201-0010-a595-8c1203c93e56
    http://www.planetsap.com/hr_abap_main_page.htm
    http://www.sap-img.com/abap/sample-hr-reports-allocate-petrol-allowance.htm
    http://www.planetsap.com/HR_ABAP_LDB.htm
    http://help.sap.com/erp2005_ehp_02/helpdata/en/16/b8b83b5b831f3be10000000a114084/content.htm
    http://help.sap.com/saphelp_45b/helpdata/en/1e/728d281d5e11d289d30000e82158f1/content.htm
    http://diocio.wordpress.com/2007/04/27/sap-abap-insert-infotype-data-with-maintain-text/
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • HR ABAP - PAYROLL - Copy existing payroll function and changes

    Hello all,
    Required a help over an issue with HR ABAP - Payroll module.
    My requirement is to Copy an existing custom Payroll Function (Transaction PE04), into a new one. The existing payroll function has the code for updating payroll results in RT table. I have to change the statements in the new function making sure that now it will update  IT/OT table instead of RT table.
    Kindly help me with the issue.
    Thanks,
    Ruchir.
    Edited by: Ruchir Pathak on Nov 17, 2011 9:09 AM

    Hi,
    you can not copy function as i know. you should create a new one and copy code from the existing function to new function and modify code for the new requirement. this will be mush easier.
    Çağatay

  • ABAP interactive report problem

    ABAP - Interactive Report problem.
    In Interactive report when I double click to one field a window arises (here sy-lsind = 0) displaying some required info. And again after double clicking the appeared window another window will open (here sy-lsind = 1). from the 2nd window I can't go to the previous window.
    If there is only one way to go to the previous window is to activate the RIGHT UPPER CROSS OPTION of the particular window, then please help me giving the code or idea about how to activate it. Thanks.

    Moderator message - Welcome to SCN
    Cross posting is not allowed in these forums.
    Please read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    Thread locked
    Rob

  • RE: HR ABAP Multiple selection problem on input selection-screen

    hi friends,
    I AM Facing one problem in HR abap report  selection-screen , in my report  employee details data getting based on payroll area
    of selection-screen. Here iam  SELECTION-SCREEN  declarations made in program level NOT created REPORT CATEGORY FOR
    PNP LDB.
    ACTUAL MY PROBLEM IS IF I SELECT SINGLE PAYROLL AREA IN SELECTION-SCREEN IT GETTING DATA PERFECTLY FOR THAT
    PAYROLL AREA  
    EX. ZA - PAYROLL AREA IF I SELECT IN SELECTION SCREEN IT FETCHING THAT PAYROLL  AREA DATA PERFECTLY, PROBLEM
    IS IF I SELECT MULTIPLE PAYROLL AREAS IN SELECTION-SCREEN PAYROLL AREA FIELD  ZA AND ZB PAYROLLS IT FETCHING
    ONLY ZA -PAYROLL DATA ONLY IT IS NOT FETCHING DATA FROM ZB PAYROLL AREA.MY REQUIREMENT IS IT SHOULD FETCH
    BOTH PAYROLL DATA  AND SHOWING  .
    HERE  IAM GIVING MY SELECTION SCREEN DECLARATION SYNTAX.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:
                    S_ABKRS FOR P0001-ABKRS NO INTERVALS," NO-EXTENSION,     " PAY ROLL AREA
                    S_PERSA FOR P0001-WERKS NO INTERVALS," NO-EXTENSION,     " PERS.AREA
    SELECTION-SCREEN END OF BLOCK B2 .
    PLEASE Any body knows solution for this selection give me reply.
    regards,
    gopal

    If you are using Logical DB PNP why are you coding Selection Fields for ABKRS and WERKS?   Both of these fields are defined in the PNP Selection Screen and if you use those fields then SAP will handle filtering the data.

  • RE:HR-ABAP selection screen problem.

    hi,
    hi friends iam facing one problem regarding hr ABAP  selection screen ,in my program iam using PNP LDB for bonus details report
    i have using selection screen declaration present  for single selection.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006.        
    SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION,
                    S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION,
                    S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION,
                    S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
                    S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.   
    SELECTION-SCREEN END OF BLOCK B3.
    based on this selection iam fetching the information from infotypes using  macros.
    now my requirement is iam fetch the information for multiple  selections means like payroll areas z1,z2 and z3 payroll informations
    should be  fetching once.  pls any body knows solution please give me reply.
    thanks & regards,
    mgrao.

    You should be using a selection view (HR Report Category in the programs attributes) to filter results from the LDB.
    Why is this in the objects forum?

  • ABAP User Interface problem

    Hi All,
    My Screen consist of 3 Input/Output Field and a Radio button group which consist of 8 radio button.
    Problem 1:
    When select a radio button, 2 of the Input/Output Field data that was define previously was clear and 1 of the Input/Output Field data still remain.
    Problem 2:
    Data was enter in the 3 Input/Output Field. When i submit,  the program will validate the 1st Input/Output Field. When it validate, the 2 of the Input/Output Field data was clear off.
    How to prevent the data being clear off?
    Code Sample:
    ==============================================================
    Flow Logic
    ==============================================================
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9000.
    PROCESS AFTER INPUT.
    CHAIN.
        FIELD:
          TB_OBJECTID,
          TB_LOADID,
          TB_LOADDESC.
       MODULE USER_COMMAND_9000.
    ENDCHAIN.
    ==============================================================
    ==============================================================
    ABAP Program
    ==============================================================
    REPORT ZTEST_RADIOBTN.
    DATA: TB_OBJECTID(20) TYPE c,
          TB_OBJECTDESC(100) TYPE c,
          RB_STEP1(1) TYPE c,
          RB_STEP2(1) TYPE c,
          RB_STEP3(1) TYPE c,
          RB_STEP4(1) TYPE c,
          RB_STEP5(1) TYPE c,
          RB_STEP6(1) TYPE c,
          RB_STEP7(1) TYPE c,
          RB_STEP8(1) TYPE c.
      START-OF-SELECTION.
        CALL SCREEN 9000.
    " Main Screen - PBO.
    MODULE STATUS_9000 OUTPUT.
       SET PF-STATUS 'MAIN_SCREEN'.
      SET TITLEBAR 'MAIN_SCREEN'.
    ENDMODULE.
    " Main Screen - PAI.
    MODULE USER_COMMAND_9000 INPUT.
       CASE sy-ucomm.
         WHEN 'EXIT'.
           LEAVE PROGRAM.
         WHEN 'BACK'.
           Leave to SCREEN '0'.
         WHEN 'EXECUTE'.
           CASE TB_OBJECTID.
             WHEN '1'.
               TB_OBJECTDESC = '1'.
             WHEN '2'.
               TB_OBJECTDESC = '2'.
             WHEN OTHERS.
               TB_OBJECTDESC = 'Invalid Input'.
           ENDCASE.
           PERFORM validate_ObjectID.
       ENDCASE.
    ENDMODULE.
    FORM validate_ObjectID.
      IF TB_OBJECTID IS INITIAL.
       SET CURSOR FIELD 'TB_OBJECTID'.
       MESSAGE e000(ZSCSDM_MSG) WITH 'Please define Object ID'.
      ENDIF.
    ENDFORM.
    Best Regards,
    Rayden

    Hi Ray,
             The issue seems to be that there is no varaible decalred in your top include to hold the values of the screen variables.
    Concept is that on any user actio like an 'Enter' etc causes the flow logic ( PBO & PAI ) to be executed. So during these first the system transfers the screen field values to the available variables ( Only if it finds any .. so declare variables in Top Include with same name.)
    Later during PBO execution it transfers the values back from variables in Top include ( Local variables ) to the screen field.
    <b>On User Action :
    PAI Executed    => Screen Values --> Local Var.
    then
    PBO Executed  =>  Local Var     --> Screen Values.
    This is the flow concept.</b>
    <i><b>Reward Points if useful .</b></i>

  • Abap select query problem

    This report will take delivery document number and delivery date from user and fetches details from delivery table and fetches
    corresponding sales order details and billing details  and displays sales order details with ALV list.
    << Please only post the relevant portions of your code >>
    i just want to know that is this way of fetching the data into internal table okay ?are there any better ways of fetching the data into the internal table ? why  is it looping in work area of lips, why not in likp?
    (plz dont use field-symbols or oo abap or macros) I WANT TO USE PLAIN AND SIMPLE ABAP STATEMENTS LIKE ABOVE..
    By using "vbeln type lips-vbeln" are we refering to the field or data element? plz suggest.
    P.S.           [my approach was to inner join likp and lips into itab(my internal table).
    select data from kna1, vbak,vbap,vbrp into respective internal tables like it_kna1,it_vbak etc.
    then using individual loops into the tables, i would use read table to insert data into itab(my final internal table) plz suggest which method wud be more efficient? ]
    Edited by: Rob Burbank on Jun 8, 2009 11:54 AM

    ok i am posting the select queries once again.
    i want to know why are we looping in t_lips and why not t_likp? bcoz tlikp is the header table, if we loop thru it and then read the rest tables then what will be the problem? plz clarify with examples._
    [my idea was to loop at t_likp then read t_lips.append the lips data into t_order(main internal table).then do read table on t_kna1,t_vbap etc indexing t_order. so plz suggest whether my approach was write or wrong?if wrong why?plz site any other ways of doing this query.
    types: begin of ty_vbap,
           vbeln type vbap-vbeln,
           posnr type vbap-posnr, .....
    does the declaration statement in types refer to tables or data elements? what is the difference if we declare it like:
       types: begin of ty_vbap,
           vbeln type vbeln,
           posnr type posnr, .....
    select-options:
    s_deldoc FOR likp-vbeln, " Delivery
    s_dldate FOR likp-lfdat. " Delivery Date
    Get delivery document number,delivery date,customer number from
    delivery header table
    SELECT vbeln " Delivery
    lfdat " Delivery Date
    kunnr " Customer Number 1
    FROM likp
    INTO TABLE t_likp
    WHERE vbeln IN s_deldoc
    AND lfdat IN s_dldate.
    IF sy-subrc EQ 0.
    Get Customer name for customer numbers from Customer master table
    SELECT kunnr " Customer Number 1
    name1 " Name 1
    FROM kna1
    INTO TABLE t_kna1
    FOR ALL ENTRIES IN t_likp
    WHERE kunnr EQ t_likp-kunnr.
    IF sy-subrc EQ 0.
    Get delivery item number,sales document number,sales item number,
    delivery quantity from delivery item table
    SELECT vbeln " Delivery
    posnr " Delivery Item
    vgbel " Document number of
    " reference document
    vgpos " Item number of reference item
    lfimg " Actual quantity delivered
    vrkme " Sales unit
    FROM lips
    INTO TABLE t_lips
    FOR ALL ENTRIES IN t_likp
    WHERE vbeln EQ t_likp-vbeln.
    IF sy-subrc EQ 0.
    Get sales document number,item number,material,material description,
    ordered quantity from sales item table
    SELECT vbeln " Sales Document
    posnr " Sales Document Item
    matnr " Material Number
    arktx " Short text for sales order
    " item
    kwmeng " Cumulative Order Quantity
    vrkme " Sales unit
    FROM vbap
    INTO TABLE t_vbap
    FOR ALL ENTRIES IN t_lips
    WHERE vbeln EQ t_lips-vgbel
    AND posnr EQ t_lips-vgpos.
    IF sy-subrc EQ 0.
    Get sales document number ,created date,purchase order number from
    sales header table
    SELECT vbeln " Sales Document
    erdat " Date on Which Record Was" Created
    aufnr " Order Number
    FROM vbak
    INTO TABLE t_vbak
    FOR ALL ENTRIES IN t_lips
    WHERE vbeln EQ t_lips-vgbel.
    IF sy-subrc EQ 0.* Get billing document number,billing item,reference delivery document
    number,delivery item number,billing item from billing item table
    SELECT vbeln " Billing Document
    posnr " Billing item
    vgbel " Document number of the
    " reference document
    vgpos " Item number of the" reference" item
    fklmg " Billing quantity in" stockkeeping unit
    vrkme " Sales unit
    FROM vbrp
    INTO TABLE t_vbrp
    FOR ALL ENTRIES IN t_lips
    WHERE vgbel EQ t_lips-vbeln
    AND vgpos EQ t_lips-posnr.
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ELSE.
    Display message if records are not found for entered values
    MESSAGE S000.
    EXIT.
    ENDIF. " IF SY-SUBRC EQ 0
    Looping Delivery item internal table to assign values to order
    internal table
    LOOP AT t_lips INTO fs_lips.
    Get delivery date and customer number for delivery document number
    from delivery header internal table
    READ TABLE t_likp WITH KEY vbeln = fs_lips-vbeln
    INTO fs_likp.
    Get customer name for customer number from customer master internal
    table
    IF sy-subrc EQ 0.
    READ TABLE t_kna1 WITH KEY kunnr = fs_likp-kunnr
    INTO fs_kna1.
    Get sales document number,item number,ordered quantity for delivery
    document number,item number from sales item internal table
    IF sy-subrc EQ 0.
    READ TABLE t_vbap WITH KEY vbeln = fs_lips-vgbel
    posnr = fs_lips-vgpos INTO fs_vbap.
    Get goods issue date and purchase order number for sales document
    number from sales header internal table
    IF sy-subrc EQ 0.
    READ TABLE t_vbak WITH KEY vbeln = fs_vbap-vbeln INTO fs_vbak.
    IF sy-subrc EQ 0.
    Get billing document number,billing item,billing quantity for delivery
    document number,delivery item number from billing item internal table
    READ TABLE t_vbrp WITH KEY vgbel = fs_lips-vbeln
    vgpos = fs_lips-posnr INTO fs_vbrp.
    Assign sales,delivery,billing fields into respective fields of sales
    order internal table
    IF sy-subrc EQ 0.
    fs_order-vbeln = fs_vbap-vbeln.
    fs_order-posnr = fs_vbap-posnr.
    fs_order-erdat = fs_vbak-erdat.
    fs_order-kunnr = fs_likp-kunnr.
    fs_order-name1 = fs_kna1-name1.
    fs_order-aufnr = fs_vbak-aufnr.
    fs_order-matnr = fs_vbap-matnr.
    fs_order-arktx = fs_vbap-arktx.
    fs_order-kwmeng = fs_vbap-kwmeng.
    fs_order-vrkme = fs_vbap-vrkme.
    fs_order-vbeln1 = fs_lips-vbeln.
    fs_order-posnr1 = fs_lips-posnr.
    fs_order-lfimg = fs_lips-lfimg.
    fs_order-vrkme1 = fs_lips-vrkme.
    fs_order-vbeln2 = fs_vbrp-vbeln.
    fs_order-posnr2 = fs_vbrp-posnr.
    fs_order-fklmg = fs_vbrp-fklmg.
    fs_order-vrkme2 = fs_vbrp-vrkme.
    APPEND fs_order TO t_order.
    CLEAR fs_order.
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDLOOP. " LOOP AT T_LIPS INTO FS_LIPS

  • Abap dictionary activation problem when transfer request dev to prod

    hi experts
    i develop enhancement in that i append structure in afru table.
    when transfering requset dev to production there is error
    abap dictionary activation .
    thanks
    ajay

    hi
    problem not solve.
    see below error.
      Activate table ZZAFRUD
       Field RPM: Component type or domain used not active or does not exist
       Nametab for table ZZAFRUD cannot be generated
       Table ZZAFRUD was not activated.
    structure zzafrud is active but in error it shows not active.
    i used domain zrpm it also active.
    thanks
    ajay.

  • ABAP HR Payslip Development

    Hi Friends,
    Coud u plz tell me how is payslip develoded in ABAP HR.
    give me the details .....its urgent...plz help me.
    thanks in advance.
    regards,
    priya.s

    Hi ,
    for Payslips , u can use Tcode HRFORMS(find for standard Payslip for country) this is just line Smartforms.
    or
    PE51.
    need to copy the stanard one, do the modifications.
    regards
    Prabhu

  • ABAP OO Event Problem

    Hi,
    I read the blog posted by Jocelyn Dart-<b><i>Raising ABAP OO Events for Workflow</i></b>...
    <b>/people/jocelyn.dart/blog/2006/07/27/raising-abap-oo-events-for-workflow
    When I tried the same using my own Class, I am getting some problem.
    Well, I created my Class with two Attributes
    1) <i>M_POR</i>(Persistent Object Reference Attribute)
    2) <i>PERNR</i>(Employee Number)
    And I created a Constructor with one parameter.
    And I also coded the remaining standard methods as per that blog - <b><i>USING ABAP OO Methods in Workflow Tasks</i></b>.
    Finally I activated my CLASS and each individual method.
    I created one small report that raises ABAP OO Event as mentioned in the blog with the below mentioned code.
    <i>report  yworkflowtrigger_ooabap.
    data : ls_ywftest1_key type p_pernr,
           lv_objtype type sibftypeid,
           lv_event   type sibfevent,
           lv_objkey  type sibfinstid,
           lr_event_parameters type ref to if_swf_ifs_parameter_container,
           lv_param_name       type swfdname,
           lv_visit_date       type datum.
      lv_objtype = 'YWFTEST1'.
      lv_event = 'STARTEVENT'.
    Set up the LPOR Instance id
      ls_ywftest1_key = '00000024'.
      move ls_ywftest1_key to lv_objkey.
      try.
        call method cl_swf_evt_event=>raise
          exporting
            im_objcateg        = cl_swf_evt_event=>mc_objcateg_cl
            im_objtype         = lv_objtype
            im_event           = lv_event
            im_objkey          = lv_objkey
           IM_EVENT_CONTAINER =
         catch cx_swf_evt_invalid_objtype .
         catch cx_swf_evt_invalid_event .
      endtry.</i>
    I switched on my event trace and tried raising the Event. But event is not raised even after execution of this code. I checked the SY-SUBRC value at the ENDTRY, But this seems perfect(SY-SUBRC = 0).
    Why is my event not getting triggered even after the execution of above code?
    Is there anything which I have missed.
    We are on <b>ECC 5.0</b>
    Regards,
    <i><b>Raja Sekhar</b></i>

    I missed this tip in that blog.
    "<i><b>Tip! Just as for Business Object events, the COMMIT WORK statement is crucial when raising a Workflow event - without this the event will not be raised.</b></i>"
    Regards,
    <i><b>Raja Sekhar</b></i>

  • ABAP-PI port problem

    Hi,
    I have a scenario in which i have to generate a MBGMCR IDOC whenever a material document is posted ans send this to XI.
    Now i have to put a condition to process only IDOCs that have  a particular vendor number must be sent out to XI and others have to stop inside the SAP system itself.
    I saw that we could use ABAP-PI port to control the IDOC before being sent out. So i added the ABAP-PI port with a FM
    ZOWN_FUNCTION which is a copy of OWN_FUNCTION with the following code added in the end.
    CALL FUNCTION 'IDOC_INBOUND_ASYNCHRONOUS' DESTINATION 'XIDCLNT100'
      TABLES
        idoc_control_rec_40       = I_EDIDC
        idoc_data_rec_40          =  I_EDIDD
    But when execute this is get an error,
    "IDoc adapter inbound: Sender port is initial"
    But i can see that the sender port value in the EDI_DC has a value 'SAPECD'.
    I've not had much luck with resolving this error. I feel the error is misleading and the sender port is not really the problem, but im not sure.
    Is the approach i'm using right or should i use some other function?
    Any suggestions?

    I resolved it myself.
    Its the same procedure.
    Copy own_function to my fm ZOWN_FUCTION. Call the FM IDOC_INBOUND_ASYNCHRONOUS in destination XI.
    I just found that when i call the FM the import parameters are of type EDI_DC40 and EDI_DD40 whereas the type im passing to it is EDIDC and EDIDD. thats why the mismatch.

  • Installation ABAP import phase problem

    Dear Friends,
    I am installing ABAP application server within Netweaver 7.02 which has been downloaded from this site on  my LAPTOP.
    Phases 1 -15 took about 2 hrs to install.
    After that it entered Phase 16 i.e Import ABAP and it has gone on for more that 12 hrs.
    Of the 37 processes in this phase the last 2 doesn't complete. One is shown as running and other is waiting.
    My Laptop has around 320GB HDD(100 GB free) 4 GB RAM of which only 3GB is usable as it as 32 bit OS,2.4 GHZ Core 2 Duo
    processor and Windows Vista.
    I think it is abnormal to continue for so long.
    It does not show any error message nor any problem in the log.
    What is the problem?
    Pls advise.
    Thamk for your efforts.

    Hi Sunny,
    "Speed of this phase depends on number of things:
    1) How many number of parallel jobs you have selected in sapinst ?
    2) 4 GB of RAM is not much. So, it will take time."
    1)How do I check the number of parallel jobs?
    I think only one job is running because in the taskbar for the Installer it shows:
    Import job Monitor: Running 1, Waiting 1, Failed 0, Completed 35, Total 37
    The phase is Import ABAP and it has several jobs i.e threads of which only one is running.
    2) Of the 4 Gb RAM only 3 GB is usable by Windows as it is 32 bit.Now of this Memory utilization is 65- 70%.
    CPU utilization is 10-15%.
    Since resource utilization is very less it is taking enormous amount of time.
    As per documentation installation on a Laptop should not take more than 8 hrs but it has taken double the time i.e 16 hrs.
    How much more time will it take?
    Is there any way to speed it up ?
    Thanks.

  • ABAP Inbound Proxy Problem

    Hello -
    I have an Legacy DB2 to R/3 interface and am using a JDBC Sedner adapter and inbound ABAP proxy in R/3.
    Since this is an intial load i am trying to Insert all the records.
    Though i don't get any errors the table that i am trying to update is not getting updated through the ABAP Proxy though there are 1000 records in the legacy DB2 table.
    I have a COMMIT WORK in the proxy.
    Thanks,
    Tirumal

    Hi,
    Please can you check in the SXMB_MONI if the data is going to ABAP Proxy in Payload.
    If yes then there is some problem with the code. Try debugging the code by putting a break point.
    Also, check in the SXMB_MONI of the application system if the data has come.
    Regards
    Vijaya

Maybe you are looking for

  • Indexing documents storaged in Documentum Content Server

    Hello experts, I've a question about how i can do the next project. My development team wants develop in our SAP ECC 6.0 system an application that allows them work with the documents storaged in our Documentum Content Server, and after they must be

  • Is there a connection that i can use to plug my new i pad into a ion paino apprentice keyboard ?

    I have recently bought a new i pad. I have the ION PIANO APPRENTICE and it has an older connection, compared to the new i pad. Is there an adapter or a connection you can buy that will allow you to plug the new i pad into an older device ?

  • ITunes in Yosemite keeps freezing up- ideas?

    Ever since migrating to Yosemite a few days ago, I've been having issues with iTunes *not responding.* Looking at my Activity Monitor, it looks like the following processes are *not responding:* • iTunes • identityservicesd • coreaudiod • com.apple.M

  • How to make simple GUI application that use oracle 9i intermedia

    Mr Lawrence, i want to make a GUI application for storing and retrieving image data, can i build this application using delphi? i try using borland delphi 7, but delphi doesnt know object type ORDImage and ORDImageSignature. do u have any reference a

  • Playing a .exe PC-flash file on a Mac

    Hi folks, actually, its not that I'm new to Flash. Instead, I have never worked on it. Although Im a Graphic Designer, printed matter is my role. I don't even have a copy of Flash (well, just the Flash Player...) so... OK, here's the tip: A collabora