BAPI coding for CATSDB TABLE i.e Timesheet DB

BAPI coding for CATSDB TABLE i.e Timesheet DB
Points will be rewarded,
Thank you,
Jagrut BharatKumar Shukla

Hi Srikhar
use these bapis
BAPI_BPCONTACT_CHANGE BAPI
BAPI_BPCONTACT_CREATEFROMDATA BAPI .... BAPI_CUSTOMERCONTRACT_CHANGE
BAPI_CTRACCONTRACTACCOUNT_CH1
reward points to all helpful answers
kiran.M

Similar Messages

  • BAPI step by step to connect JAVA for catsdb table

    BAPI step by step to connect JAVA for catsdb table,
    Points will be rewarded,
    full points with example of catsdb table in bapi for JCO JAVA
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi,
    Check the thread..
    https://forums.sdn.sap.com/click.jspa?searchID=3587428&messageID=3647918
    Regards,
    Omkar.

  • Plsql coding for multiplication table

    hai i need plsql coding for multiplication table can any one plzzzz.....

    SELECT AVBELN AFKDAT AVTWEG ASPART AWAERK AKURRF AKUNAG AKNUMV
             BPOSNR BFKIMG BNETWR BMATNR
             DBEGRU ELABOR E~MATKL
             INTO CORRESPONDING FIELDS OF TABLE ITAB
             FROM VBRK AS A INNER JOIN VBRP AS B
                  ON AVBELN EQ BVBELN
             INNER JOIN J_1IEXCHDR AS C
                  ON AVBELN EQ CRDOC
             INNER JOIN KNVV AS D
                  ON DKUNNR EQ AKUNAG  AND
                     DVKORG EQ AVKORG  AND
                     DSPART EQ ASPART  AND
                     D~BEGRU NE SPACE
             INNER JOIN MARA AS E
                  ON EMATNR EQ BMATNR
             WHERE A~FKDAT IN S_FKDAT AND
                   A~FKART EQ 'F2'    AND
                   A~VTWEG IN S_VTWEG AND
                   A~SPART IN S_SPART AND
                   A~KUNAG IN S_KUNAG AND
                   A~FKSTO NE 'X'     AND
                   B~WERKS IN S_WERKS AND
                   C~TRNTYP = 'DLFC'  AND
                   E~LABOR IN S_LABOR AND
                C~SRGRP IN ('01','02','03','31','32','33','41','42','43',
                            '81','82','83','95','55','45', '48') AND
                   B~MATNR IN S_MATNR AND
                   D~BEGRU IN S_BEGRU AND
                   E~MATKL IN S_MATKL.
    but my suggestion not to use more than 2 table in inner join it will affect in performance use for all entries instead of join.
    regards
    shiba dutta

  • Sample coding for multiple table join

    Hi,
    i need a sample coding for multiple table join. can anyone help me out.
    regards
    Gokul

    SELECT AVBELN AFKDAT AVTWEG ASPART AWAERK AKURRF AKUNAG AKNUMV
             BPOSNR BFKIMG BNETWR BMATNR
             DBEGRU ELABOR E~MATKL
             INTO CORRESPONDING FIELDS OF TABLE ITAB
             FROM VBRK AS A INNER JOIN VBRP AS B
                  ON AVBELN EQ BVBELN
             INNER JOIN J_1IEXCHDR AS C
                  ON AVBELN EQ CRDOC
             INNER JOIN KNVV AS D
                  ON DKUNNR EQ AKUNAG  AND
                     DVKORG EQ AVKORG  AND
                     DSPART EQ ASPART  AND
                     D~BEGRU NE SPACE
             INNER JOIN MARA AS E
                  ON EMATNR EQ BMATNR
             WHERE A~FKDAT IN S_FKDAT AND
                   A~FKART EQ 'F2'    AND
                   A~VTWEG IN S_VTWEG AND
                   A~SPART IN S_SPART AND
                   A~KUNAG IN S_KUNAG AND
                   A~FKSTO NE 'X'     AND
                   B~WERKS IN S_WERKS AND
                   C~TRNTYP = 'DLFC'  AND
                   E~LABOR IN S_LABOR AND
                C~SRGRP IN ('01','02','03','31','32','33','41','42','43',
                            '81','82','83','95','55','45', '48') AND
                   B~MATNR IN S_MATNR AND
                   D~BEGRU IN S_BEGRU AND
                   E~MATKL IN S_MATKL.
    but my suggestion not to use more than 2 table in inner join it will affect in performance use for all entries instead of join.
    regards
    shiba dutta

  • I want the message types and basic types for catsdb table

    i want the message types and basic types for catsdb table

    Hi Jagrut,
    Message Class is "LR".
    <b>Reward points, if helpful.</b>
    Regards,
    Atin

  • SQL coding for partitioned tables

    Hi My tables are partitioned into 4 different partitions.. each one representing each quarter of a year.. do i need to specify the partition name in my sql query to grab the data or does oracle have the intelligence to go this partition based on my select statement..
    say q1, q2,q3,q4 table partitions and the table name is y1
    can i say
    <code> select * from y1 where date ='01/01/2005'</code>
    does this above written code takes you directly to the partition where this data is located..
    if it does how do we know that in the execution plan that it wasnot scanning the full table but rather one partition..
    thanks in advance

    have a look at the explain plan and you will see how oracle acces the partitioned table.
    All Oracle documentation can be found under
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    You will probably find answer to your question under
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/toc.htm
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96533/toc.htm
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96520/toc.htm

  • Matrix for single table

    Hai,
    Have any one of you done coding for Single table using Matrix.
    eg.
    <b>Field in Table</b>
    GroupCode
    GroupName
    i need to use matix for this and do following
    "ADD"
    "Update".
    1.I need to create the form using Screen painter.
    2. Bind the table and fields  to the matrix in screen painter.
    and do the above process.
    If any body sample code please post it in the form.
    regards
    Suresh S

    1. elearning contains all the information on how to use matrixes and screen painter
    2. SDK comes with a set of samples in CSharp / VB.NET / VB6
    Enjoy.

  • Hi help me on coding for a IDOC for a CATSDB TABLE

    hi help me on coding for a IDOC for a CATSDB TABLE

    Hi,
    Check this fucntion module also.It can help you.
    ALE_PTMGREXTWOSCHED_INSWCOST
    Message was edited by:
            Jayanthi Jayaraman

  • BAPI step by step Using CATSDB table full point if useful

    BAPI step by step Using CATSDB table to folder
    full point if useful

    Hi,
    "Steps for Creating a BAPI:
        1) Create a Function Module in SE37 and assign it to an active Function Group.
    (Check Remote Enable in attributes section)
        2) Fill the Import (Input) Parameters for the RFC
        3) Fill the Export (Output) Parameters
             (BAPIRETURN IS MANDATORY)
        4) Fill the Table parameters, if any
        5) Write the “functionality” in the source code
        6) Activate and Release the Function Module"
    Thanks
    Srinu

  • Custom field handling in CATSDB table through BAPI

    Hi,
    I have enhanced CATSDB table using CI_CATSDB. I have added one field QTY of type DEC(4,2).
    to enter timesheet I have written one function as per following code. But system is giving error in statement shown in bold fonts. How to overcome from this problem?
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(EMPLOYEENUMBER) TYPE  HR_PERNR
    *"     VALUE(WORKDATE) TYPE  CATSDATE
    *"     VALUE(CATSHOURS) TYPE  CATSHOURS
    *"     VALUE(WBS_ELEMENT) TYPE  PS_POSID OPTIONAL
    *"     VALUE(ACTTYP) TYPE  LSTAR OPTIONAL
    *"     VALUE(QTY) TYPE  ZLHR_TIME_QTY OPTIONAL
    *"  EXPORTING
    *"     VALUE(CATSRECORDS_OUT) TYPE  TCATSDB_EXT
    *"  CHANGING
    *"     VALUE(RETURN) TYPE  BAPIRET2_T
      DATA:
        wa_catsrecords_in TYPE bapicats1,
        int_catsrecords_in TYPE TABLE OF bapicats1,
        wa_extensionin TYPE bapicats7,
        int_extensionin TYPE TABLE OF bapicats7,
        wa_bapi_te_catsdb TYPE bapi_te_catsdb,
        wa_catsrecords_out TYPE bapicats2.
      wa_catsrecords_in-employeenumber = employeenumber.
      wa_catsrecords_in-workdate = workdate.
      wa_catsrecords_in-acttype = acttyp.
      wa_catsrecords_in-wbs_element = wbs_element.
      wa_catsrecords_in-catshours = catshours.
      APPEND wa_catsrecords_in TO int_catsrecords_in.
      CLEAR wa_catsrecords_in.
      wa_bapi_te_catsdb-row = 1. 
      wa_bapi_te_catsdb-qty = qty.
      wa_extensionin-structure = 'BAPI_TE_CATSDB'.
      wa_extensionin-valuepart1 = wa_bapi_te_catsdb+0(240).
      APPEND wa_extensionin TO int_extensionin.
      CLEAR wa_extensionin.
      CALL FUNCTION 'BAPI_CATIMESHEETMGR_INSERT'
        EXPORTING
          profile         = 'Z_DEMO'
          testrun         = ' '
          release_data    = ' '
        TABLES
          catsrecords_in  = int_catsrecords_in
          extensionin     = int_extensionin
          catsrecords_out = catsrecords_out
          return          = return.

    Hi,
       In BD64 you can do the segment level filtering. Go to BD64, search for your distribution model there drill down to "filter settings" the make the required segment filtering.
    Thanks,
    Asit Purbey.

  • Which are methods and FM for Catsdb for BAPI

    which are methods and FM for Catsdb for BAPI
    Thank you,
    points will be rewarded

    Hi Jagrut,
    BIW_CATS_CUSTOMER_EXIT
    BIW_CHECK_CATS_DATA
    BIW_CHECK_CATS_DATA2
    BIW_DELTA_CHECK_SELOPT
    BIW_DELTA_CHECK_SELOPT2
    CATS_APPROVAL0
    CATS_BIW_DELTA
    CATS_BIW_TIMESTAMP_DELTA
    CATS_BUILD_CATSD
    CATS_CHECK_CONSISTENCY_AT_SAVE
    CATS_DISPLAY_ALV_LIST
    CATS_DISPLAY_TARGET_DOCUMENTS
    CATS_DISPLAY_TARGET_DOCUMENTS0
    CATS_READ_ARCHIVED_DATA
    CATS_READ_INTERFACE_ACCOUNTING
    CATS_READ_INTERFACE_LOGISTICS
    CATS_READ_TIMESHEET_DATA
    CATS_SAVE_INTERFACE
    CATS_SHOW_LIST
    CATS_TRANSFORM_FREE_RECORDS
    EXIT_SAPLTSBW_001
    READ_INTERFACE_CPR
    Reward if useful!

  • Is there any delivered BAPI or Functional modules available for MCHB table

    Hi Experts,
    I have a requirement where I have to pull inventory data from MCHB table without custom code. Is there any delivered BAPI or Functional modules available for MCHB table?
    Kindly help!
    Thanks
    Gopal

    Hi,
    Can you check using the Fun Modules
    MG_BATCH_CHECK_STOCK
    VB_READ_BATCH_WITHOUT_STOCK
    VB_BATCH_GET_ALL_STOCKS
    Regards,
    Anji

  • Any BAPI for PAYR table updation

    Hi All,
    Is there any BAPI available for payment medium file table (PAYR) update?
    Thanks,
    Anil.

    check with FM : INSERT_PAYR
    You may have to use FM DEQUEUE_EFPAYR ENQUEUE_EFPAYR alongwith above FM..
    also try
    HRPY_RGDIR_CHANGE_PAYROLL
    BAPI_EXTPAYROLL_INSERT_OUT
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • How to retrieve data from catsdb table and convert into xml using BAPI

    How to retrieve data from catsdb table and convert into xml using BAPI
    Points will be rewarded,
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi,
    This is not your requirment but u can try this :
    CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
    GRANT READ ON DIRECTORY text_file TO fah;
    GRANT WRITE ON DIRECTORY text_file TO fah;
    DROP TABLE load_a;
    CREATE TABLE load_a
    (a1 varchar2(20),
    a2 varchar2(200))
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY text_file
    ACCESS PARAMETERS
    (FIELDS TERMINATED BY ','
    LOCATION ('data.txt')
    select * from load_a;
    CREATE TABLE A AS select * from load_a;
    SELECT * FROM A
    Regards
    Faheem Latif

  • BDC coding for TABLE controls

    how to write BDC coding based on Table Controls...

    http://www.sap-basis-abap.com/abap/handling-table-control-in-bdc.htm
    How to deal with table control / step loop in BDC
    Steploop and table contol is inevitable in certain transactions. When we run BDC for such transactions, we will face the situation: how many visible lines of steploop/tablecontrol are on the screen? Although we can always find certain method to deal with it, such as function code 'NP', 'POPO', considering some extreme situation: there is only one line visible one the screen, our BDC program should display an error message. (See transaction 'ME21', we you resize your screen to let only one row visible, you can not enter mutiple lines on this screen even you use 'NP')
    Now with the help of Poonam on sapfans.com developement forum, I find a method with which we can determine the number of visible lines on Transaction Screen from our Calling BDC program. Maybe it is useless to you, but I think it will give your some idea.
    Demo ABAP code has two purposes:
    1. how to determine number of visible lines and how to calculte page number;
    (the 'calpage' routine has been modify to meet general purpose usage)
    2. using field symbol in BDC program, please pay special attention to the difference in Static ASSIGN and Dynamic ASSIGN.
    Now I begin to describe the step to implement my method:
    (I use transaction 'ME21', screen 121 for sample,
    the method using is Call Transation Using..)
    Step1: go to screen painter to display the screen 121, then we can count the fixed line on this screen, there is 7 lines above the steploop and 2 lines below the steploop, so there are total 9 fixed lines on this screen. This means except these 9 lines, all the other line is for step loop. Then have a look at steploop itselp, one entry of it will occupy two lines.
    (Be careful, for table control, the head and the bottom scroll bar will possess another two fixed lines, and there is a maximum number for table line)
    Now we have : FixedLine = 9
                  LoopLine  = 2(for table control, LoopLine is always equal to 1)
    Step2: go to transaction itself(ME21) to see how it roll page, in ME21, the first line of new page is always occupied by the last line of last page, so it begin with index '02', but in some other case, fisrt line is empty and ready for input.
    Now we have: FirstLine = 0
              or FirstLine = 1 ( in our case, FirstLine is 1 because the first line of new page is fulfilled)
    Step3: write a subroutine calcalculating number of pages
    (here, the name of actual parameter is the same as formal parameter)
    global data:    FixedLine type i, " number of fixed line on a certain screen
                    LoopLine  type i, " the number of lines occupied by one steploop item
                    FirstLine type i, " possbile value 0 or 1, 0 stand for the first line of new                                                               " scrolling screen is empty, otherwise is 1
                    Dataline  type i, " number of items you will use in BDC, using DESCRIBE to get
                    pageno    type i, " you need to scroll screen how many times.
                    line      type i, " number of lines appears on the screen.
                    index(2)  type N, " the screen index for certain item
                    begin     type i, " from parameter of loop
                    end       type i. " to parameter of loop
    *in code sample, the DataTable-linindex stands for the table index number of this line
    form calpage using FixedLine type i (see step 1)
                       LoopLine  type i (see step 1)
                       FirstLine type i (see step 2)
                       DataLine  type i ( this is the item number you will enter in transaction)
              changing pageno    type i (return the number of page, depends on run-time visible                                                                             line in table control/ Step Loop)
              changing line      type i.(visible lines one the screen)
    data: midd type i,
          vline type i, "visible lines
    if DataLine eq 0.
       Message eXXX.
    endif.
    vline = ( sy-srows - FixedLine ) div LoopLine.
    *for table control, you should compare vline with maximum line of
    *table control, then take the small one that is min(vline, maximum)
    *here only illustrate step loop
    if FirstLine eq 0.
            pageno = DataLine div vline.
            if pageno eq 0.
               pageno = pageno + 1.
            endif.
    elseif FirstLine eq 1.
            pageno = ( DataLine - 1 ) div ( vline - 1 ) + 1.
            midd = ( DataLine - 1 ) mod ( vline - 1).
            if midd = 0 and DataLine gt 1.
                    pageno = pageno - 1.
            endif.
    endif.
    line = vline.
    endform.
    Step4 write a subroutine to calculate the line index for each item.
    form calindex using Line type i (visible lines on the screen)
                        FirstLine type i(see step 2)
                        LineIndex type i(item index)
              changing  Index type n.    (index on the screen)
      if  FirstLine = 0.
            index = LineIndex mod Line.
            if index = '00'.
                    index = Line.
            endif.
      elseif FirstLine = 1.
            index = LineIndex mod ( Line - 1 ).
            if ( index between 1 and 0 ) and LineIndex gt 1.
                    index = index + Line - 1.
            endif.
            if Line = 2.
                    index = index + Line - 1.
            endif.
    endif.
    endform.
    Step5 write a subroutine to calculate the loop range.
    form calrange using Line type i ( visible lines on the screen)
                        DataLine type i
                        FirstLine type i
                        loopindex like sy-index
            changing    begin type i
                        end type i.
    If FirstLine = 0.
       if loopindex = 1.
            begin = 1.
            if DataLine <= Line.
                    end = DataLine.
            else.
                    end = Line.
            endif.
       elseif loopindex gt 1.
            begin = Line * ( loopindex - 1 ) + 1.
            end   = Line * loopindex.
            if end gt DataLine.
               end = DataLine.
            endif.
       endif.
    elseif FirstLine = 1.
      if loopindex = 1.
            begin = 1.
            if DataLine <= Line.
                    end = DataLine.
            else.
                    end = Line.
            endif.
      elseif loop index gt 1.
            begin = ( Line - 1 ) * ( loopindex - 1 ) + 2.
            end =   ( Line - 1 ) * ( loopindex - 1 ) + Line.
            if end gt DataLine.
                    end = DataLine.
            endif.
      endif.
    endif.
    endform.
    Step6 using field sysbol in your BDC, for example: in ME21, but you should calculate each item will correponding to which index in steploop/Table Control
    form creat_bdc.
    field-symbols: <material>, <quan>, <indicator>.
    data: name1(14) value 'EKPO-EMATN(XX)',
          name2(14) value 'EKPO-MENGE(XX)',
          name3(15) value 'RM06E-SELKZ(XX)'.
    assign:         name1 to <material>,
                    name2 to <quan>,
                    name3 to <indicator>.
    do pageno times.
    if sy-index gt 1
    *insert scroll page ok_code"
    endif.
            perform calrange using Line DataLine FirstLine sy-index
                             changing begin end.
    loop at DataTable from begin to end.
            perform calindex using Line FirstLine DataTable-LineIndex changing Index.
            name1+11(2) = Index.
            name2+11(2) = Index.
            name3+12(2) = Index.
            perform bdcfield using <material> DataTable-matnr.
            perform bdcfield using <quan>     DataTable-menge.
            perform bdcfield using <indicator> DataTable-indicator.
    endloop.
    enddo.
    Cheers
    VJ

Maybe you are looking for

  • Sorry, there was a problem and we can't open that document.

    I set up my office web apps server according to the directions here: http://technet.microsoft.com/en-us/library/jj219455(v=office.15).aspx and http://technet.microsoft.com/en-us/library/ff431687(v=office.15).aspx When I navigate to any word document

  • Why can't upload video on Facebook from Iphoto

    why can't upload video on Facebook from Iphoto?

  • How to cancel an engineer appointment?

    How do I cancel an engineer appointment, as the problem I had has now been rectified? I have been calling the Sky number all evening and trying to get somebody on live chat but to no avail.  The engineer is due tomorrow between 8am and 5pm.  I would

  • How to increase spool file width?

    Hi, I've a spool file with lot of columns. When I display it (in graphical format) through SM37, the columns appear in two rows and thus it becomes difficult to understand the data. How can I increase the width so that all columns appear in a single

  • How to compare two select quieres parallelly from 2 different Dbs(pls help)

    I have tried doing it from my previous question : pls look at this link and help me with parallelly looping 2 different databases :- http://forums.sun.com/thread.jspa?threadID=5368358&messageID=10620723#10620723 i am attaching the code i wrote to ach