SAP customer block table

Hello,
Can someone tell me the table where I can see the SAP customer block ?
Thanks.
Regards,
Rajesh.

Hi,
There are several types of customer blocks (search for "block" in table KNA1) each of which have a check table associated with it.  For example, table TVFS contains billing blocks (KNA1-FAKSD), table TVLS contains delivery blocks (KNA1-LIFSD), TVAST contains central order blocks (KNA1-AUFSD), etc.
Regards,
Jamie

Similar Messages

  • Negative values for Custom field in SAP coding block !

    Hi All,
    Hope all of you are doing fine.
    I need your valuable suggestion/possible workaround for the following requirement.
    u2022 The project requires me to add a custom new field to SAP coding block, which can take negative numeric values.
    u2022 The standard u201Caddition of custom fieldu201D configuration allows me to have the data type of the newly added custom field as either NUMC or CHAR. NUMC data type does not allow negative values. Standard configuration does not allow me to choose other data types (for custom field addition) like QUAN which can allow negative values (by checking the Sign at domain level in data type).
    u2022 Moreover, once I have added the custom field, itu2019s not possible to change the data type of the newly added field (say from NUMC to QUAN).
    I wanted to know if anyone of you have any project experience/knowledge about possible workaround, where we can add a custom field in SAP coding block, which can accept negative numeric values (through standard configuration or otherwise).

    No experience on that, but I strongly advise you to not trying to do something else than what was designed by SAP. So, you can create a character type field, with for example a field exit (though this technology is obsolete, it's very useful in that case) to validate its content (and reformat it if needed).
    Note that from a functional perspective, I think an amount is strange in the coding block, so maybe ask the functional people to know why they need it...

  • Need help in transferring data from flatfiles to SAP R/3 tables

    Hi,
    I need to *transfer data in the flatfiles (NON SAP SYSTEM) to SAP R/3 tables*. Can we do it with a help of program ?
    Please help me out
    Thanks and regards,
    Shiva shekar k

    Hi Shiva,
        This code will be helpful to you.
    *Code used to create BDC
    *& Report  ZBDC                                               *
    *& Example BDC program, which updates net price of item 00010 of a     *
    *& particular Purchase order(EBELN).                                   *
    REPORT  ZBDC  NO STANDARD PAGE HEADING
                          LINE-SIZE 132.
    Data declaration
    TABLES: ekko, ekpo.
    TYPES: BEGIN OF t_ekko,
        ebeln TYPE ekko-ebeln,
        waers TYPE ekko-waers,
        netpr TYPE ekpo-netpr,
        err_msg(73) TYPE c,
    END OF t_ekko.
    DATA: it_ekko  TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko  TYPE t_ekko,
          it_error TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_error TYPE t_ekko,
          it_success TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_success TYPE t_ekko.
    DATA: w_textout            LIKE t100-text.
    DATA: gd_update TYPE i,
          gd_lines TYPE i.
    *Used to store BDC data
    DATA: BEGIN OF bdc_tab OCCURS 0.
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.
    *Used to stores error information from CALL TRANSACTION Function Module
    DATA: BEGIN OF messtab OCCURS 0.
            INCLUDE STRUCTURE bdcmsgcoll.
    DATA: END OF messtab.
    *Screen declaration
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
                                        TITLE text-001. "Purchase order Num
    SELECT-OPTIONS: so_ebeln FOR ekko-ebeln OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME
                                        TITLE text-002. "New NETPR value
    PARAMETERS:  p_newpr(14)   TYPE c obligatory.  "LIKE ekpo-netpr.
    SELECTION-SCREEN END OF BLOCK block2.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Retrieve data from Purchase order table(EKKO)
      SELECT ekkoebeln ekkowaers ekpo~netpr
        INTO TABLE it_ekko
        FROM ekko AS ekko INNER JOIN ekpo AS ekpo
          ON ekpoebeln EQ ekkoebeln
       WHERE ekko~ebeln IN so_ebeln AND
             ekpo~ebelp EQ '10'.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Check data has been retrieved ready for processing
      DESCRIBE TABLE it_ekko LINES gd_lines.
      IF gd_lines LE 0.
      Display message if no data has been retrieved
        MESSAGE i003(zp) WITH 'No Records Found'(001).
        LEAVE TO SCREEN 0.
      ELSE.
      Update Customer master data (instalment text)
        LOOP AT it_ekko INTO wa_ekko.
          PERFORM bdc_update.
        ENDLOOP.
      Display message confirming number of records updated
        IF gd_update GT 1.
          MESSAGE i003(zp) WITH gd_update 'Records updated'(002).
        ELSE.
          MESSAGE i003(zp) WITH gd_update 'Record updated'(003).
        ENDIF.
    Display Success Report
      Check Success table
        DESCRIBE TABLE it_success LINES gd_lines.
        IF gd_lines GT 0.
        Display result report column headings
          PERFORM display_column_headings.
        Display result report
          PERFORM display_report.
        ENDIF.
    Display Error Report
      Check errors table
        DESCRIBE TABLE it_error LINES gd_lines.
      If errors exist then display errors report
        IF gd_lines GT 0.
        Display errors report
          PERFORM display_error_headings.
          PERFORM display_error_report.
        ENDIF.
      ENDIF.
    *&      Form  DISPLAY_COLUMN_HEADINGS
          Display column headings
    FORM display_column_headings.
      WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
      SKIP.
      WRITE:2 'The following records updated successfully:'(013).
      WRITE:/ sy-uline(42).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(004), sy-vline,
              (11) 'Old Netpr'(005), sy-vline,
              (11) 'New Netpr'(006), sy-vline.
      WRITE:/ sy-uline(42).
    ENDFORM.                    " DISPLAY_COLUMN_HEADINGS
    *&      Form  BDC_UPDATE
          Populate BDC table and call transaction ME22
    FORM bdc_update.
      PERFORM dynpro USING:
          'X'   'SAPMM06E'        '0105',
          ' '   'BDC_CURSOR'      'RM06E-BSTNR',
          ' '   'RM06E-BSTNR'     wa_ekko-ebeln,
          ' '   'BDC_OKCODE'      '/00',                      "OK code
          'X'   'SAPMM06E'        '0120',
          ' '   'BDC_CURSOR'      'EKPO-NETPR(01)',
          ' '   'EKPO-NETPR(01)'  p_newpr,
          ' '   'BDC_OKCODE'      '=BU'.                      "OK code
    Call transaction to update customer instalment text
      CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'
             MESSAGES INTO messtab.
    Check if update was succesful
      IF sy-subrc EQ 0.
        ADD 1 TO gd_update.
        APPEND wa_ekko TO it_success.
      ELSE.
      Retrieve error messages displayed during BDC update
        LOOP AT messtab WHERE msgtyp = 'E'.
        Builds actual message based on info returned from Call transaction
          CALL FUNCTION 'MESSAGE_TEXT_BUILD'
               EXPORTING
                    msgid               = messtab-msgid
                    msgnr               = messtab-msgnr
                    msgv1               = messtab-msgv1
                    msgv2               = messtab-msgv2
                    msgv3               = messtab-msgv3
                    msgv4               = messtab-msgv4
               IMPORTING
                    message_text_output = w_textout.
        ENDLOOP.
      Build error table ready for output
        wa_error = wa_ekko.
        wa_error-err_msg = w_textout.
        APPEND wa_error TO it_error.
        CLEAR: wa_error.
      ENDIF.
    Clear bdc date table
      CLEAR: bdc_tab.
      REFRESH: bdc_tab.
    ENDFORM.                    " BDC_UPDATE
          FORM DYNPRO                                                   *
          stores values to bdc table                                    *
    -->  DYNBEGIN                                                      *
    -->  NAME                                                          *
    -->  VALUE                                                         *
    FORM dynpro USING    dynbegin name value.
      IF dynbegin = 'X'.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-program,
               value TO bdc_tab-dynpro,
               'X'  TO bdc_tab-dynbegin.
        APPEND bdc_tab.
      ELSE.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-fnam,
               value TO bdc_tab-fval.
        APPEND bdc_tab.
      ENDIF.
    ENDFORM.                               " DYNPRO
    *&      Form  DISPLAY_REPORT
          Display Report
    FORM display_report.
      FORMAT COLOR COL_NORMAL.
    Loop at data table
      LOOP AT it_success INTO wa_success.
        WRITE:/      sy-vline,
                (10) wa_success-ebeln, sy-vline,
                (11) wa_success-netpr CURRENCY wa_success-waers, sy-vline,
                (11) p_newpr, sy-vline.
        CLEAR: wa_success.
      ENDLOOP.
      WRITE:/ sy-uline(42).
      REFRESH: it_success.
      FORMAT COLOR COL_BACKGROUND.
    ENDFORM.                    " DISPLAY_REPORT
    *&      Form  DISPLAY_ERROR_REPORT
          Display error report data
    FORM display_error_report.
      LOOP AT it_error INTO wa_error.
        WRITE:/      sy-vline,
                (10) wa_error-ebeln, sy-vline,
                (11) wa_error-netpr CURRENCY wa_error-waers, sy-vline,
                (73) wa_error-err_msg, sy-vline.
      ENDLOOP.
      WRITE:/ sy-uline(104).
      REFRESH: it_error.
    ENDFORM.                    " DISPLAY_ERROR_REPORT
    *&      Form  DISPLAY_ERROR_HEADINGS
          Display error report headings
    FORM display_error_headings.
      SKIP.
      WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
      SKIP.
      WRITE:2 'The following records failed during update:'(008).
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(009), sy-vline,
              (11) 'Netpr'(010), sy-vline,
              (73) 'Error Message'(012), sy-vline.
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_NORMAL.
    ENDFORM.                    " DISPLAY_ERROR_HEADINGS

  • DB Size for a custom cluster table?

    Hi friends,
    I have a requirement where in i need to store huge attachments into SAP DB.
    For that i created a Custom cluster table just like INDX table and storing the binary read attachments(PDF/JPEG) into it.
    Can some one help me how much size from DB side this table would take.
    Suppose i am reading a PDF file of size 3.5 MB and storign this into my custom cluster table, which would span into 1200 records, what is the DB size taken by this ?
    Appreciate any help on this.
    SAP Version - 4.7EE
    DB - DB2
    OS - AIX
    Regards,
    Simha
    Edited by: Simha on Aug 5, 2008 7:27 AM

    Hi Simha,
    simple question complex answer ....
    The answer mainly depends on the length of the RAW column in the INDX type table. In my answer I assume that your database is running with the default of 16K tablespace page size.
    (1) if the length of the RAW column is below 4K on a unicode system or below 12K in a non unicode system,
         the ABAP RAW column is mapped to a VARCHAR FOR BIT DATA column on database level.
         VARCHAR FOR BIT DATA colunms are buffered in the database buffer pool and can benefit from DB2 row compression.
         DB2 row compression may not help for PDF or JPEG data since this data is already compressed
         but buffering will provide better performance.
         Since VARCHAR FOR BIT DATA columns will be stored in the DB2 data pages, the overall space requirement will be
         minimal if the space in the 16K pages can be used optimal. E.g. if the size of our RAW column is 8,5 K and most rows
         contain values with maximun length in this column only one row can be stored per data page.
    (2) if (1) does not apply, the ABAP RAW column is mapped to a LONG VARCHAR FOR BIT DATA
         column on database level.
         LONG data is stored in seperate LONG pages on database level. The LONG data is stored in blocks of
         512 bytes time 2^N ( 512, 1024, 2048, 4K , 8K, 16K ). The overall space requirement will be
         minimal if the space in the LONG blocks can be used optimal.
    Given the explanation above I would guess that in worst case you may need a factor of 2 more space in the database than your document size. Each additional row will require some bytes overhead in the DB2 data pages and will create additional index entries. So you may want a large maximum size of your RAW column but this will give you LONG data types.
    If read performance is not critical I would suggest to choose 16K as your size of the RAW column. This should completely fill the LONG blocks.
    If read performance is more critical you should choose a small size for the RAW column ( e.g. 2K ) to benefit from data buffering and to avoid sparsely filled data pages.
    Regards
                   Frank

  • How to add the entries and how to delete the entries from custom Z-table?

    Hi Experts,
    My requirement is I need to add the entries from program to three custom z-tables . Assume as zabc1,zabc2,zabc3.
    Here how to add the entries from program to Z-table.???
    And one more requirement is I want to provide a deletion checkbox in selection screen . Initial it was unchecked. If I am giving tick mark then the entries should be deleted from above custom Z-tables. this all will done in backgroung job?
    Could you please guide me the logic how to crack this???
    Let me know if you need more Info
    Thanks
    Sanju

    Hi Sanjana,
    What you can do is to use the ABAP keyword INSERT or MODIFY to add or modify records to a given database table. Here are the syntax taken from SAP documentation:
    *Insert Statement
    INSERT dbtab
    Syntax
    INSERT { {INTO target VALUES source }
           | {     target FROM   source } }.
    Effect
    The INSERT statement inserts one or more rows specified in source in the database table specified in target. The two variants with INTO and VALUES or without INTO with FROM behave identically, with the exception that you cannot specify any internal tables in source after VALUES.
    System Fields
    The INSERT statement sets the values of the system fields sy-subrc and sy-dbcnt.
    sy-subrc Meaning
    0 At least one row was inserted.
    4 At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.
    The INSERT statement sets sy-dbcnt to the number of rows inserted.
    Note
    The inserted rows are finally included in the table in the next database commit. Up until this point, they can still be removed by a database rollback.
    *Modify Statement
    MODIFY dbtab
    Syntax
    MODIFY target FROM source.
    Effect
    The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.
    System fields
    The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.
    sy-subrc Meaning
    0 At least one line is inserted or changed.
    4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table.
    The MODIFY statement sets sy-dbcnt to the number of processed lines.
    Note
    The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback.
    Hope it helps...
    P.S. Please award points if it helps...

  • SAP customer number unknown for installation number

    Hi There,
    We're facing some problems after a reconfiguration of some things in Solution Manager. We have SAP EHP 1 for SAP Solution Manager 7.0. Have made two days ago the installation of the latest SP, but not the kernel yet.
    The problem is in the job SEND_SYSTEM_RELATIONSHIP_TO_SUPP. The error is:
    08.01.2010 10:43:24 Job started                                                                                00           516          S
    08.01.2010 10:43:24 Step 001 started (program AI_SC_SEND_SYSTEM_RELATIONSHIP, variant , user ID SOLMAN_BTC)      00           550          S
    08.01.2010 10:43:24 SOL determined as monitoring Solution Manager system                                      AI_SC_EN        075          S
    08.01.2010 10:43:24 SAP customer number unknown for installation number 00XXXXXXXX               AI_SC_EN        097          E
    08.01.2010 10:43:24 Job cancelled after system exception ERROR_MESSAGE                                           00           564          A
    The info about the system:
    solman:soladm 21> disp+work
    disp+work information
    kernel release                701
    kernel make variant           701_REL
    compiled on                   HP-UX B.11.23 U ia64
    compiled for                  64 BIT
    compilation mode              UNICODE
    compile time                  Feb 24 2009 21:53:01
    update level                  0
    patch number                  32
    source id                     0.032
    supported environment
    database (SAP, table SVERS)   700
                                  701
    operating system
    HP-UX B.11
    Thanks,
    Joao

    Hi João Cesar,
    I´m faccing with the same error... I installed the solution manager Ehp1 and it have SPS20 applied which correspond to ST 400 level 20 (SAPKITL430).
    When I am in transaction SMSY in section Systems and I press the button "READ SYSTEM NUMBER" is shown an error message that says "SAP customer number unknown for installation" the details of help says:
    Diagnosis
    Installation number &V1& that is assigned to some system(s) in transaction SMSY is not assigned to an SAP customer number in table AIINSTALLATIONS.
    Procedure
    Please check the log of background job REFRESH_ADMIN_DATA_FROM_SUPPORT for errors.
    So, when I entry in that job log I found this error:
    No customer numbers maintained in view V_AISAPCUSTNOS   |  AI_SC_EN   |  106
    Then I went in table/view V_AISAPCUSTNOS and inside does not contain any data!!!
    All the notes I found were related to lower versions and so I could not implemented the snotes corrections!!  Any notes for my release that are related with this problem?
    Joao Cesar what you did for solve this problem??? You didn´t mentioned!! You only mentioned that you implemented some notes.. but which ones?!!?

  • Partner functions for SAP Customer Master

    I am in the MDM solution definition phase for SAP Customer Master at one of our Cients place. The requirement is to set up a central master data scenario where creation & modification of any customer record will be done via MDM. The following components of Netweaver are in the landscape - SAP MDM, EP, XI.
    I need clarification on the following points -
    -  Is it possible to set up the partner function in MDM, if so, how?
    -  Need to replicate the standard SAP functionality where the system can be configured to create Ship To, Payer, Bill To automatically when a Sold To record is created. Is this possible? Are there any work arounds?
    Regards
    Arvind

    Hi,
    Hi Arvind,
    -  Is it possible to set up the partner function in MDM, if so, how?
    Partner Function comes under Condition Technique in SAP ECC.here some config has to be done.
    For mapping it in MDM, First create a Qualified Table - Partner Function.Determine the Non-Qualifiers and Qualifiers.Then as said by Suresh, u need Java API stuff to complete this task and frontend being EP.
    - Need to replicate the standard SAP functionality where the system can be configured to create Ship To, Payer, Bill To automatically when a Sold To record is created. Is this possible? Are there any work arounds?
    It can be done using EP as front end and Java API to dertermine the partner based on the account group.
    Thanks,
    Felix
    Edited by: Felix on May 9, 2008 1:38 PM

  • Acess the sap r/3 table

    hi everyone,
        can i access the sap r/3 tables directly without rfc .....
       any possibility is there means plz send me reply........
       present i am doing bapi via jco using RFMs.........
      with regards,'
      satish

    Hi,
    This question has already been asked (and answered) here - without FM can i acess sap table via jco? and here - bapi problem via jco and here - through jdbc driver connect to sap  Not sure if points are getting awarded or not...
    Anil, you are posting very confusing answers that don't help people who don't know about SAP and RFC technology.  A BAPI is a type of function module.  An RFC is a type of function module.  A function module is a function module.  To clarify, there is only one object called remotely, that is a function module.  For this to happen it HAS to be RFC enabled (Remote Function Call.)  A BAPI is a function module that completes a certain piece of business logic in entirety, such as creating a document or changing a document - typically methods of business objects as you suggest.  There should be no distinction between RFC and BAPI.  Typically, all BAPI function modules are RFC-enabled so they can be accessed from remote systems/applications.  Any function module that is RFC enabled can be accessed from a remote system.  To access SAP data from external systems/applications via JCo you need a function module that is RFC enabled.  There are a lot of RFC enabled function modules supplied by SAP - if you are developing custom logic or working with custom tables on the SAP system then you will need to develop a custom RFC enabled function module (call it a BAPI if you want!) that you can then call via JCo.
    I'd also say that connecting directly to a SAP database is very bad practice and shouldn't be suggested to resolve issues - data integrity can suffer and cause serious problems for the SAP system.  This method should be used with custom database instances (say created via the dictionary builder in NDS.)
    Gareth.

  • Custom Data Table in Work Manager 6.1 / SMP 3.0

    Hi folks,
    was trying to create a custom Data Table in Work Manager. Unfortunately I was not successful to get it working - probably I am missing out something.
    Have created the DataTable in the Agentry Editor and configured the Java Class to use the DataTable class like for the other DataTables. Then created the 4 config values in the parameters of the Mobile Application Configuration (DT_MDOID, TABLE_CHECK, TABLE_REFRESH, ENABLE_TABLE). Also created a MDO that is mapped to the DT_MDOID which is derived from the /SYCLO/CL_CORE_DT_HANDLER class.
    During sync, I am getting the following errors in the server logs - in the client it is Error 13 => Java...
    08/13/2014 18:18:36, 1,         0,         2, Thr      10364, class RCP<class DT::DataTable>, D:\Syclo_BuildBot\rc_7.0server\Syclo\refcount.h#220:RCP<class DT::DataTable>::operator ->
    2014/08/13 18:18:36.505:             + BackEnd=Java-SAPJavaConnection
    2014/08/13 18:18:36.505:               Using Java code for <DATA_TABLE_NAME>
    2014/08/13 18:18:36.506:               Java Exception "<DATA_TABLE_NAME>" Update Data Table: - java.util.NoSuchElementException
    Do you have some pointers on what I may miss out?
    Cheers,
    Florian

    Make sure that 'DT_MDOID" parameter entries are maintained correctly "That there is no typo's" in config panel. I don't think you need any entries for TABLE_CHECK, TABLE_REFRESH, ENABLE_TABLE parameters which are only relevant for complex table.  Same in Agentry  the data table should match with  SAP name.
    Let me know if you still have issues.
    Thanks
    Manju

  • Change documents for customer Z table - serious help wanted

    Hi all,
    I am no beginner and I don't expect any comments from beginners.
    Situation: My customer wants to replace the material valuation transactions MRN1 MRN2 MRN3 due to bad performance and locking problems with own developed programs.
    The valuation results will be stored in a customer Z-Table on a monthly base. For auditing and transparency purposes, this Z-table has to get a change object and the update routines will have to write change documents.
    Due to the expected size of the new Z-table, it is not advisable to simply switsch on table logging.
    In this huge project (and in none I participated!) nobody ever implemented the change document process for a Z-table. <b>BUT EVERYBODY CAN TELL YOU THI IS NO PROBLEM AT ALL.</b>
    I read some documentation at SAP and serached for threads or blogs here. I could not find anything desribing that in depth.
    So before I start, I'd be happy to get some hints from people who created own change documents and implemented the process. Links to documentation and other helpful pages are also welcome.
    If I can keep the process simple, I'd like to create a BLOG on this - because I think, in the future it will get more and more difficult to pass the auditing process with undocumented features and uncontrolled table changes.
    TIA.
    Regards,
    Clemens

    Hi,
    Please check this thread.
    http://www.sapdevelopment.co.uk/tips/changedoc/cd_createch.htm
    Once you create your change document object using generate update pgm option then  please check the WRITE document fm.
    I have done this long back i am updating CDHDR and CDPOS for 2 table YATT and YATTPLANTS. Here YATT have single record (header table) and YATTPLANTS have multiple records (item table)
    function yatt_write_document           .
      call function 'CHANGEDOCUMENT_OPEN'
        exporting
          objectclass             = 'YATT           '
          objectid                = objectid
          planned_change_number   = planned_change_number
          planned_or_real_changes = planned_or_real_changes
        exceptions
          sequence_invalid        = 1
          others                  = 2.
      case sy-subrc.
        when 0.                                   "ok.
        when 1. message a600 with 'SEQUENCE INVALID'.
        when 2. message a600 with 'OPEN ERROR'.
      endcase.
    if upd_yctc                           ne space.
       call function 'CHANGEDOCUMENT_SINGLE_CASE'
         exporting
           tablename              = 'YATT                          '
           workarea_old           = o_yatt
           workarea_new           = n_yatt
            change_indicator       = upd_yattc
            docu_delete            = 'X'
         exceptions
           nametab_error          = 1
           open_missing           = 2
           position_insert_failed = 3
           others                 = 4.
        case sy-subrc.
          when 0.                                "ok.
          when 1. message a600 with 'NAMETAB-ERROR'.
          when 2. message a600 with 'OPEN MISSING'.
          when 3. message a600 with 'INSERT ERROR'.
          when 4. message a600 with 'SINGLE ERROR'.
        endcase.
      endif.
      if upd_yctcauthplnts                  ne space.
        call function 'CHANGEDOCUMENT_MULTIPLE_CASE'
          exporting
            tablename              = 'YATTPLANTS                 '
            change_indicator       = upd_yattplants
            docu_delete            = 'X'
          tables
            table_old              = yyattplants
            table_new              = xyattplants
         exceptions
           nametab_error          = 1
           open_missing           = 2
           position_insert_failed = 3
           others                 = 4.
        case sy-subrc.
          when 0.                                "ok.
          when 1. message a600 with 'NAMETAB-ERROR'.
          when 2. message a600 with 'OPEN MISSING'.
          when 3. message a600 with 'INSERT ERROR'.
          when 4. message a600 with 'MULTIPLE ERROR'.
        endcase.
      endif.
      call function 'CHANGEDOCUMENT_CLOSE'
        exporting
          objectclass             = 'YATT           '
          objectid                = objectid
          date_of_change          = udate
          time_of_change          = utime
          tcode                   = tcode
          username                = username
          object_change_indicator = object_change_indicator
          no_change_pointers      = no_change_pointers
        exceptions
          header_insert_failed    = 1
          object_invalid          = 2
          open_missing            = 3
          no_position_inserted    = 4
          others                  = 5.
      case sy-subrc.
        when 0.                                   "ok.
        when 1. message a600 with 'INSERT HEADER FAILED'.
        when 2. message a600 with 'OBJECT INVALID'.
        when 3. message a600 with 'OPEN MISSING'.
    *    WHEN 4. MESSAGE A600 WITH 'NO_POSITION_INSERTED'.
    * do not abort, if positions are not inserted!!!
        when 5. message a600 with 'CLOSE ERROR'.
      endcase.
    endfunction.

  • How to Import customized internal table to smartform from Print Program

    Hi Gurus,
    I want to Import customized internal table to smartform from print program, Can anybody tell me how it is possible.
    With regards,
    S.Saravanan

    There is no problem passing an internal table to a smarforms, smartforms have the same interface as a function module ([Defining the Form Interface|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm] in [Smart Forms|http://help.sap.com/saphelp_nw70/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm]) so could you elaborate a little more on your requirement (is it a standard a custom forms, etc.)
    Regards,
    Raymond

  • INSERT in the custom database table to create a new entry.

    Hello Experts,
    I'm trying to INSERT the entry in my custom databse table that i have created. But I'm not sure what i'm missing as i'm getting the sy-subrc = 4 after the INSERT statement and my records are not added to the database table.
    I'm using the INSERT as below:-
          APPEND gw_relax TO gt_relax.
          INSERT  INTO zmm_bg_relax VALUES gw_relax.
    Please let me know your helpful responses on this,
    Thanks,
    Naveen

    Check [INSERT dbtab|http://help.sap.com/abapdocu_70/en/ABAPINSERT_SOURCE.htm] [FROM TABLE itab [ACCEPTING DUPLICATE KEYS]|http://help.sap.com/abapdocu_70/en/ABAPINSERT_SOURCE.htm#&ABAP_ALTERNATIVE_2@2@],
    If the addition ACCEPTING DUPLICATE KEYS  is specified, all rows are inserted for which this is possible. The remaining rows are rejected and sy-subrc is set to 4. The system field sy-dbcnt  is set to the number of lines that are inserted.
    So if you get sy-subrc = 4, some of the records of the internal table are already contained in the database table.
    You cannot put 2 or more records in a database table with the same primary key, primary keys are unique keys with the addition of a not-null constraint. If you need multiple records with a same key, you must add another key to the primary key. (use a timestamp or a counter)
    Regards,
    Raymond

  • Customer block information

    Hi All,
           I want to create the report to get customer block information. How can I determine the user who has deactivated that particular customer and on which date?
    Regards
    Saurabh

    Changes of this type are stored in TABLEs:  CDHDR and CDPOS.
    Look in table CDHDR first.
    OBJECTCLAS = 'DEBI'
    OBJECTID = the customer number
    TCODE = 'VD05'
    This will expose all blocking changes to the customer.
    Note the userid and date/time.

  • How to create IDOC for customer defined table

    hi,
    How to create IDOC for customer defined table Records and how to send this IDOC to target system.
      what message type will be used and on receiving system how to post these records.
      thankx.
      pillac.

    Hi,
    You need to create a custom message type and custom IDOC type for this with whatever fields you want send. You need to create segments (WE30), IDOC type (WE30), Message types (WE81) and assign the message type to the IDOC type (WE82).
    You will have trigger the IDOC using a Report or something after doing the partner profile settings.
    Similary in the target system also, you will have do all the settings.
    Take a look the links to find out what settings needs to be done.
    http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm
    http://www.sappro.com/downloads/OneClientDistribution.pdf
    Regards,
    Ravi
    Note : Please mark the helpful answers and close the thread if the issue is resolved.

  • Event on customer Z** table

    Hello!
    I have got a customer Z** table. How can I do workflow that will start when this table rows add or change?
    Thanks for you help!

    HI,
    I think your requirement can be done using CDO (Change document Objects)
    At data element level for the field values you want to log, in Further Characteristics Tab , check the Change Document check box.
    Create a custom change document object for your table and then trigger the workflow using CDO.
    For more please refer this article [Trigger WF using Custom CDO|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80ddeba4-e780-2b10-7bb2-fc7a33efabbd;jsessionid=(J2EE3414700)ID2055518550DB20097956748016851379End]
    Hope this solves your issue...!
    Regards
    Narin

Maybe you are looking for

  • Copy web site ~/directory does not exist

    I have used VS Express 2010 for many years and have successfully copied files to our server. All of a sudden, I am getting the error "The ~/ directory does not exist" on the server side of the website copy screen. I contacted ISP and they say all loo

  • SUMA of days from invoice to payment

    Hello, I have a query bellow, I would like to have an extra column called SUMA of DateDiff(DD,T3.DocDate,T2.DocDate) As DAYS for each T0.CardCode ... Is it possible to create it? Thank you in advance, jonmar7 SELECT T0.CardCode, T0.CardName, T1.Pymnt

  • Java role for User Management

    Hi , I would like to know how can i restrict the access from java front in pi server I would like to give only all access to the User managerment links and everything else either no display or view details Rgds Aditya

  • Can't connect wirelessly to C7250 on Mac OS X 10.10.1

    My HP C7250 has a spotty connection. Last week, wireless printing and scanning worked fine, this week I can't connect. The printer does not show up on my router as a connected wireless device thought the LCD screen and a test page per the printer it

  • How can I to solve the error 404?

    I received  this message: https://caldav.calendar.yahoo.com/principals/users/MYEMAIL ADDRESS http error 404 Please, how to solve it?