Problem in UCCHECK  (*kna1 = Kna1)

Hi All,
1) What is the meaning of  ABAP statement
TABLES: *KNA1.
2) What will happen if i execute ABAP statement
   *KNA1 = KNA1
3) In UCCHECK t-code system is giveing me error in an object which contains the above statements, the error message is
"OF KNA1" is not expected
Pls can anyone brief on this 3 points
Regard
Anees

Hi Sudheer,
Thanks
Ur answe was helpfull enough to solve my UCCHECK problem
We solve the problem.
Instead of *kna1 = Kna1
we use corresponding  statement.
Regard
Anees

Similar Messages

  • Problem in Updating KNA1 table fields.

    Hi,
       I have small issue , i need to block the customer while creating im using BADI(ADDRESS_UPDATE) to block the customer created.In the BADI im trying to update few fields of KNA1 table using UPDATE statement.
    Like this...
        WA_KNA1-SPERR = 'X'.
        WA_KNA1-CASSD = 'X'.
        WA_KNA1-AUFSD = '01'.
        WA_KNA1-FAKSD = '01'.
        WA_KNA1-LIFSD = '01'.
        UPDATE KNA1 SET SPERR = WA_KNA1-SPERR
                                        AUFSD = WA_KNA1-AUFSD
                                         LIFSD = WA_KNA1-LIFSD
                                       FAKSD = WA_KNA1-FAKSD
                                        CASSD  = WA_KNA1-CASSD
                    WHERE KUNNR = W_KUNNR.
    when this statement excutes it is updating
                                                                         1) SPERR
                                                                         2) AUFSD this two field remaining 3 fields it is not updating
    Can anyone pls let me know the reason .
    thanks in Adv.

    see note 1469543
    it is not possible to update kna1 directly, you must create a bim
    oops sorry see that you're question is it inside a badi and not bapi
    kind regards
    arthur
    Edited by: A. de Smidt on Jul 20, 2010 10:45 AM

  • View maintenence problem in UCCHECK?

    Hi everyone,
    Does anyone know anything about the unicode error 'VIEW'. I got this when I executed the tcode UCCHECK.
    The message I got is:
    'Generated Code for View Maintenance Dialog is not Unicode-Compatible You can regenerate with the program RSVIMT_UC_VIEW_MAINT_GEN'.
    I tried to regenrate with the current program, but no use.
    I read in one of the threads, that if we set the unicode checks active flag in the error program it will be solved.
    Tried it but no result again.
    I even tried to activate the view related to this program in SE11, as you can expect didn't work again.
    So has anyone ever come across this problem? if so please help me in solving this.
    Thank you all in anticipation.
    Goldie.

    hi ,
    You need to use the transaction UCCHECK.
    The report documentation is here
    ABAP Unicode Scan Tool UCCHECK
    You can use transaction UCCHECK to examine a Unicode program set for syntax errors without having to set the program attribute "Unicode checks active" for every individual program. From the list of Unicode syntax errors, you can go directly to the affected programs and remove the errors. It is also possible to automatically create transport requests and set the Unicode program attribute for a program set.
    Some application-specific checks, which draw your attention to program points that are not Unicode-compatible, are also integrated.
    Selection of Objects:
    The program objects can be selected according to object name, object type, author (TADIR), package, and original system. For the Unicode syntax check, only object types for which an independent syntax check can be carried out are appropriate. The following object types are possibilities:
    PROG Report
    CLAS Class
    FUGR Function groups
    FUGX Function group (with customer include, customer area)
    FUGS Function group (with customer include, SAP area)
    LDBA Logical Database
    CNTX Context
    TYPE Type pool
    INTF Interface
    Only Examine Programs with Non-Activated Unicode Flag
    By default, the system only displays program objects that have not yet set the Unicode attribute. If you want to use UCCHECK to process program objects that have already set the attribute, you can deactivate this option.
    Only Objects with TADIR Entry
    By default, the system only displays program objects with a TADIR entry. If you want to examine programs that don't have a TADIR entry, for example locally generated programs without a package, you can deactivate this option.
    Exclude Packages $*
    By default, the system does not display program objects that are in a local, non-transportable package. If you want to examine programs that are in such a package, you can deactivate this option.
    Display Modified SAP Programs Also
    By default, SAP programs are not checked in customer systems. If you also want to check SAP programs that were modified in a customer system (see transaction SE95), you can activate this option.
    Maximum Number of Programs:
    To avoid timeouts or unexpectedly long waiting times, the maximum number of program objects is preset to 50. If you want to examine more objects, you must increase the maximum number or run a SAMT scan (general program set processing). The latter also has the advantage that the data is stored persistently. Proceed as follows:
    Call transaction SAMT
    Create task with program RSUNISCAN_FINAL, subroutine SAMT_SEARCH
    For further information refer to documentation for transaction SAMT.
    Displaying Points that Cannot Be Analyzed Statically
    If you choose this option, you get an overview of the program points, where a static check for Unicode syntax errors is not possible. This can be the case if, for example, parameters or field symbols are not typed or you are accessing a field or structure with variable length/offset. At these points the system only tests at runtime whether the code is sufficient for the stricter Unicode tests. If possible, you should assign types to the variables used, otherwise you must check runtime behavior after the Unicode attribute has been set.
    To be able to differentiate between your own and foreign code (for example when using standard includes or generated includes), there is a selection option for the includes to be displayed. By default, the system excludes the standard includes of the view maintenance LSVIM* from the display, because they cause a large number of messages that are not relevant for the Unicode conversion. It is recommended that you also exclude the generated function group-specific includes of the view maintenance (usually L<function group name>F00 and L<function group name>I00) from the display.
    Similarly to the process in the extended syntax check, you can hide the warning using the pseudo comment ("#EC *).
    Applikation-Specific Checks
    These checks indicate program points that represent a public interface but are not Unicode-compatible. Under Unicode, the corresponding interfaces change according to the referenced documentation and must be adapted appropriately.
    View Maintenance
    Parts of the view maintenance generated in older releases are not Unicode-compatible. The relevant parts can be regenerated with a service report.
    UPLOAD/DOWNLOAD
    The function modules UPLOAD, DOWNLOAD or WS_UPLOAD and WS_DOWNLOAD are obsolete and cannot run under Unicode. Refer to the documentation for these modules to find out which routines serve as replacements.
    http://www.pac.co.il/infoweek/Resources%5CKeter_ECC6_Upgrade_Presentation_170107.ppt
    The above link gives u a power point file on ecc 6.0 updation and what are required .
    Check the below links for understanding of unicode.
    UCCHECK downporting
    UCCHECK
    http://www.sap.com/korea/Company/Events/techday05/img/data_01.pdf
    http://www.sap-press.de/download/dateien/1240/sappress_unicode_in_sap_systems.pdf
    Re: ECC 6.0 Upgrade & changes required in programs
    regards,
    venkat.

  • Transport KNA1 table data to other machine

    Guys,
      I am using KNA1 in all  of my SAP queries in different versions of sap ( 4.6c, 4.7, 5.0, 5.0uc, 6.0uc, 64bit ). Problem is table KNA1 doesn't have same data on all machines. I want to make it in sync.
    Can we transport the KNA1 data from 4.7 to 5.0. ( i am using IDES , it has very less data ).
    Any suggestions....plzz

    HI
    Create a work bench request and classify it as development/correction
                                                      program id:R3TR
                                                        Objectid:TABU
                                                      Object Name:KNA1                                                
    Double  click on the entry it will take u to new screen there give *
    and press enter and save
    Transport the request
    Thanks & Regards,
    janakiram.

  • Customer Master Duplication

    Dear All,
    when i am creating a customer master i want to check weather customer name already exist or not.how can i do the development for this? which userexist can be us for this
    Thanks
    Moderator message: please search for available information before asking.
    Edited by: Thomas Zloch on Dec 7, 2010 3:28 PM

    Hi
    If you're creating master data programatically you should do the validation before uploading it, else you can put your validation in the exit EXIT_SAPMF02D_001.
    The name field is case sensitive, so it should be used the field KNA1-MCOD1: here the name is always upper case, the problem can be KNA1-MCOD1 is 25 char against 35 char of KNA1-NAME1
    Max

  • IDOC - Problem booking CLFMAS idoc for kna1 (customers)

    Hello,
    currently im working on  data migration using the lsmw transaction.
    My project is to add the classifcation using the message type CLFMAS to customers in kna1.
    Every time im trying to process the idocs it fails with error:
    "Object 0000010035 (KNA1 ) not found", but the customer exists and is not deleted.
    The contents of my idoc:
    E1OCLFM
      OBTAB       <b>KNA1</b>
      OBJEK       <b>0000010035</b>
      KLART        <b>011</b>
    E1AUSPM
      ATNAM      WST_CM_DEALERTYPE     
      ATWRT      ESA                   
      ATZIS        000                   
    E1DATEM
      KEY_DATE  00000000
    Why it fails?
    Regards,
    Christian

    HI,
    I am also getting the same error while posting CLFMAS idocs for Customer Master Data. Did you resolve this issue? If yes, could you please let me know how to fix this?
    Thanks
    Dev

  • BP upload from CRM to ECC 6.0 in table KNA1

    Hello @ll,
    I have a problem with created business partners in CRM and the upload to ECC 6.0. I use the IS-M solution in ECC 6.0. The requirements of the process interdicts the entries in table BUT000 (which is mandatory in IS-Media). Only the debitor entry in KNA1 is allowed.
    Does anybody got the experience with this scenario? Is it possible with standard customizing and/or additional BADIs?
    Thanks and Regards
    Olli

    Hi,
    I am facing the same scenario. Coul you please tell me the solution you found?
    Lots of thanks in advance.
    Mikel

  • Custom Fields in BP to be replicated to KNA1

    Hi.
    I am working on the SAP CRM 4.0 and SAP r/3 4.6C.
    I have extended the BP by custom fields by EEWB and also the KNA1 table in R/3.
    ZBSTC000000000C is the structure in the BUT000 with the field ZZSHIPTOSTOR0001.
    ZBSTC000000000C is also added in KNA1 table with the field ZZSHIPTOSTOR0001.
    We would be creating the BP's in the CRM and have them delta downloaded to R/3.
    The data in the field ZZSHIPTOSTOR0001 should also be replicated to the R/3.
    <b>IN CRM.</b>
    I have created the FM : Z_BANK_MASTER_SMOUTIL2 in the CRM and made entry in the table TPS34 for the Procss SMOUTIL2.
    The Code is as below.
    FUNCTION Z_BANK_MASTER_SMOUTIL2.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(I_HEADER) TYPE  SMW3_FHD
    *"     VALUE(I_TRANSACTION_HEADER) TYPE  SMO8_TMSG
    *"     VALUE(I_TRANSACTION_MESSAGE) TYPE  ANY
    *"     VALUE(I_MESSAGE_EXT) TYPE  ANY
    *"     VALUE(I_SITE_ID) TYPE  SMOG_SITE
    *"     REFERENCE(I_RECIPIENTS) TYPE  SMW_RECTA2
    *"     REFERENCE(I_QNAME) TYPE  TRFCQNAM
    *"  TABLES
    *"      T_BAPIMTCS STRUCTURE  BAPIMTCS
    *"      T_BAPICRMSFK STRUCTURE  BAPICRMSFK
    *"      T_BAPIPAREX STRUCTURE  BAPIPAREX
    *"      TI_QRFCRCV STRUCTURE  QRFCRCV
    *"  CHANGING
    *"     REFERENCE(E_STATUS) TYPE  SMW3_RECST
    *"     REFERENCE(E_SUCCESS_BEHAVIOUR) TYPE  SMOFSUCBEF
    *"     REFERENCE(E_NO_STANDARD_UPLOAD) TYPE  XFELD
    *"     REFERENCE(ERROR_SEGMENTS) TYPE  SMW_ERRTAB
    *"     REFERENCE(E_BAPICRMUH1) TYPE  BAPICRMUH1
      data : ls_ZZSHIPTOSTOR0001 type ZILGCUSTOMFIELDS.
      data : ls_bapimtcs TYPE bapimtcs,
             lv_partner_guid TYPE bu_partner_guid_32,
             next_free_currdno TYPE currdno VALUE 1.
      CASE i_header-bdoc_type.
    Extension for Business Transaction
        WHEN 'SALESDOCUMENT'.
    Extension for Business Partner
        WHEN 'BUPA_MAIN'.
          CALL FUNCTION 'Z_MAP_BUPA_TO_MW'
            EXPORTING
              i_header              = i_header
              i_transaction_header  = i_transaction_header
              i_transaction_message = i_transaction_message
              i_message_ext         = i_message_ext
              i_site_id             = i_site_id
              i_recipients          = i_recipients
            TABLES
              t_bapimtcs            = t_bapimtcs
              t_bapicrmsfk          = t_bapicrmsfk
              t_bapiparex           = t_bapiparex
            CHANGING
              e_status              = e_status
              e_success_behaviour   = e_success_behaviour
              e_no_standard_upload  = e_no_standard_upload
              error_segments        = error_segments
              e_bapicrmuh1          = e_bapicrmuh1.
      ENDCASE.
    *Use the following macro definition to get full Unicode support:
    Macro MOVE_CASTING *************************************
      FIELD-SYMBOLS: <unicode_x1> TYPE x,
      <unicode_x2> TYPE x.
      DEFINE move_casting.
        assign &1 to <unicode_x1> casting.
        assign &2 to <unicode_x2> casting.
        move <unicode_x1> to <unicode_x2>.
      END-OF-DEFINITION.
    ENDFUNCTION.
    FUNCTION Z_MAP_BUPA_TO_MW.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(I_HEADER) TYPE  SMW3_FHD
    *"     REFERENCE(I_TRANSACTION_HEADER) TYPE  SMO8_TMSG
    *"     REFERENCE(I_TRANSACTION_MESSAGE) TYPE  ANY
    *"     REFERENCE(I_MESSAGE_EXT) TYPE  ANY
    *"     REFERENCE(I_SITE_ID) TYPE  SMOG_SITE
    *"     REFERENCE(I_RECIPIENTS) TYPE  SMW_RECTA2
    *"  TABLES
    *"      T_BAPIMTCS STRUCTURE  BAPIMTCS
    *"      T_BAPICRMSFK STRUCTURE  BAPICRMSFK
    *"      T_BAPIPAREX STRUCTURE  BAPIPAREX
    *"  CHANGING
    *"     REFERENCE(E_STATUS) TYPE  SMW3_RECST
    *"     REFERENCE(E_SUCCESS_BEHAVIOUR) TYPE  SMOFSUCBEF
    *"     REFERENCE(E_NO_STANDARD_UPLOAD) TYPE  XFELD
    *"     REFERENCE(ERROR_SEGMENTS) TYPE  SMW_ERRTAB
    *"     REFERENCE(E_BAPICRMUH1) TYPE  BAPICRMUH1
      tables : bnka,but000.
      data : int type i.
      data : ls_ZZSHIPTOSTOR0001 type ZILGCUSTOMFIELDS.
      data : ls_ZBSTC000000000C type ZBSTC000000000C.
      data : ls_ZILGCUSTOMFIELDS type ZILGCUSTOMFIELDS.
      data : ls_bapimtcs TYPE bapimtcs,
             lv_partner_guid TYPE bu_partner_guid_32,
             next_free_currdno TYPE currdno VALUE 1.
      data : ls_but000 type but000.
      FIELD-SYMBOLS: <fs_msg_bupa> TYPE bus_ei_main,
      <fs_msg_bpext> TYPE bus_ei_extern.
      DATA lr_cast_illegal TYPE REF TO cx_sy_assign_cast_illegal_cast.
      DATA lr_cast_unknown TYPE REF TO cx_sy_assign_cast_unknown_type.
      DATA : LS_BNKA     TYPE BNKA,
             LS_BNKA_MEM TYPE BNKA,
             LT_BNKA     TYPE TABLE OF BNKA,
             LT_BNITAB   TYPE TABLE OF BNKT,
             UNAME       LIKE SY-UNAME.
      DATA: BEGIN OF PARAMETER_TAB OCCURS 0.
              INCLUDE STRUCTURE ZPARAMETER.
      DATA: END OF PARAMETER_TAB.
      loop at T_BAPIMTCS.
        if T_BAPIMTCS-currdno > next_free_currdno.
          next_free_currdno = T_BAPIMTCS-currdno + 1.
        endif.
      endloop.
      assign i_message_ext to <fs_msg_bupa>.
      if sy-subrc <> 0.
        exit.
      endif.
      LOOP AT <fs_msg_bupa>-partners
      ASSIGNING <fs_msg_bpext> WHERE header-object_instance-bpartnerguid EQ T_BAPIMTCS-OBJKEY.
        select single * from But000 where PARTNER_GUID eq T_BAPIMTCS-OBJKEY.
    pack data into transfer structure
        CLEAR: ls_bapimtcs.
        ls_bapimtcs-tabname =  'ZBSTC000000000C'.
        ls_bapimtcs-segtype = 'DA'.
        ls_bapimtcs-currdno = next_free_currdno.
        ls_bapimtcs-objkey = lv_partner_guid.
        ls_bapimtcs-relkey = lv_partner_guid.
        move-corresponding But000 to ls_ZBSTC000000000C.
        move_casting ls_ZBSTC000000000C ls_bapimtcs-data.
        APPEND ls_bapimtcs TO t_bapimtcs.
      ENDLOOP.
    ENDFUNCTION.
    The table t_bapimtcs is populated with the structure ZBSTC000000000C.The data is also populated.
    <b>IN R/3 system.</b>
    I have created the FM "ZSAMPLE_PROCESS_CRM0_300".
    The table TPS34 is added with CRM0_300 as procs and the FM "ZSAMPLE_PROCESS_CRM0_300" is assigned.
    FUNCTION ZSAMPLE_PROCESS_CRM0_300.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(I_BAPICRMUH1) LIKE  BAPICRMUH1 STRUCTURE  BAPICRMUH1
    *"  EXPORTING
    *"     REFERENCE(E_NO_STANDARD_UPLOAD) LIKE  CRM_PARA-XFELD
    *"  TABLES
    *"      T_BAPIMTCS STRUCTURE  BAPIMTCS
    *"      T_BAPIPAREX STRUCTURE  BAPIPAREX
    *"      T_BAPICRMSFK STRUCTURE  BAPICRMSFK
    *"      T_BAPICRMMSG STRUCTURE  BAPICRMMSG
    *"  EXCEPTIONS
    *"      EVENT_NOT_CALLED
      data : int type i.
      data : c_kunnar like kna1-kunnr.
      data : o_kna1 like standard table of kna1,
             n_kna1 like standard table of kna1,
             I_KNA1 like standard table of kna1,
             i_knb1 like standard table of knb1.
      data :   o_but000 like standard table of but000,
               n_but000 like standard table of but000.
    tables : kna1.
      data : ls_ZBSTC000000000C type ZBSTC000000000C.
      data : ls_ZZSHIPTOSTOR0001 like kna1-ZZSHIPTOSTOR0001.
      case I_BAPICRMUH1-OBJNAME.
        when 'CUSTOMER_MAIN' OR 'BUPA_MAIN'.
      endcase.
      field-symbols : <fs_msg_kna1> type kna1,
                      <fs_msg_cuext> type ZBSTC000000000C.
      data : g_kunnr like kna1-kunnr.
      loop at T_BAPIMTCS where tabname eq 'BSC_MAINI'.
        move t_bapimtcs-data+0(10) to g_kunnr.
      endloop.
      loop at T_BAPIMTCS where tabname = 'ZBSTC000000000C'.
          move_casting t_bapimtcs-data ls_ZZSHIPTOSTOR0001.
      endloop.
      field-symbols : <unicode_x1>  type x,
                      <unicode_x2>  type x.
      define move_casting.
        assign &1 to <unicode_x1>casting.
        assign &2 to <unicode_x2>casting.
        move  <unicode_x1> to <unicode_x2>.
      end-of-definition.
    ENDFUNCTION.
    The table t_bapimtcs is populated with the data.
    But i am not able to have the data in the table KNA1 table of the R/3 system.
    How can i unpack the data in t_bapimtcs  and modify the table KNA1.
    Could any one pls advise.
    Thanks.
    Muraghendra D

    Hello Muraghendra, I had a very similar requirement in my project and ran in to similar problems. The idea of packing data on the CRM side and unpacking on the R/3 side was relatively straight forward, but how to update KNA1 or KNVV in my particular case, was a bit tricky. It turned out that one needs to manipulate an IDOC. In our correspondence with SAP on the matter they said the following:
    +"In R/3 the processing(in both cases replication and updation) is done in the following manner.
    1.The BAPIMTCS structures are converted to complex structures.
    2.The complex structures are converted to Idocs.
    3.The checks for required fields is made.
    4.The data is saved to the data base via a batch input transaction.
    Note: Unlike in CRM, R/3 does not use BAPIs for saving to data base.
    The function module PI_BP_DE_BALE_VTBER in the R/3 system(this is present in the UD1 system) can be used as a template for converting the BAPIMTCS to complex structure and to Idocs. Once the data is present in
    the Idocs, the batch input would take care of saving the data. The flow would be the same in both the cases (replication and updation).
    You may register your function module with the event DE_BALE. This function module would be called just before the system executes Step 3.
    Note: The Idocs that are used are mapped directly to the underlying tables table(for example KNA1, KNVV etc.) and will have the necessary field(in this case KNVV-PERFK)."+
    In my particular example I had to enhance the business partner on the CRM side with the field PERFK. This field already exist on the R/3 side and the task was then to allow CRM to be the master of all customer updates and consequently transfer any changes of the field PERFK in CRM to KNVV-PERFK in R/3. I think you will find that this requirement is similar to your own requirement.
    In the end my code looked like this in R/3:
      DATA: LV_FOUND   TYPE C,
            LS_E1KNVVM LIKE E1KNVVM,
            LS_E1KNA1M LIKE E1KNA1M,
            LS_IDOC_DATA LIKE EDIDD,
            LS_PERFK type BSS_CENTI.
      constants: c_vkorg_6002 type VKORG value '6002',
                 c_vtweg_60 type VTWEG value '60',
                 c_spart_60 type SPART value '60',
                 c_msgfn_004 type msgfn value '004'.
      FIELD-SYMBOLS <unicode_x1> type c.
      FIELD-SYMBOLS <unicode_x2> type c.
      DEFINE move_casting.
        assign &1 to <unicode_x1> casting.
        assign &2 to <unicode_x2> casting.
        move <unicode_x1> to <unicode_x2>.
      END-OF-DEFINITION.
      CHECK NOT is_complex_structure IS INITIAL.
      LOOP AT it_bapimtcs WHERE tabname = 'BSS_CENTI'
          AND relkey(32) =
          is_complex_structure-header-object_instance-bpartnerguid.
        CLEAR LV_FOUND.
        CLEAR LS_E1KNVVM.
        move_casting IT_BAPIMTCS-DATA LS_perfk.
        LOOP AT CT_IDOC_DATA WHERE SEGNAM = 'E1KNVVM'. "Hvis E1KNVVM
          LS_E1KNVVM = CT_IDOC_DATA-SDATA.             "segmentet allerede
          LV_FOUND = 'X'.                              "eksisterer
          MOVe LS_perfk-zzperfk TO LS_E1KNVVM-perfk.
          CT_IDOC_DATA-SDATA = LS_E1KNVVM.
          MODIFY CT_IDOC_DATA.
          EXIT.
        ENDLOOP.
        IF NOT LV_FOUND = 'X'.
          CALL FUNCTION 'PI_BP_INIT_IDOC_STRUCTURES'
               IMPORTING
                    ES_E1KNVVM = LS_E1KNVVM
               EXCEPTIONS
                    OTHERS     = 0.
          MOVe LS_perfk-zzperfk TO LS_E1KNVVM-perfk.
          LS_E1KNVVM-MSGFN = c_msgfn_004. "Beskeden indeholder ændringer
          LS_E1KNVVM-VKORG = c_vkorg_6002.
          LS_E1KNVVM-VTWEG = c_vtweg_60.
          LS_E1KNVVM-SPART = c_spart_60.
          CT_IDOC_DATA-SEGNAM = 'E1KNVVM'.
          CT_IDOC_DATA-SDATA  = LS_E1KNVVM.
          APPEND CT_IDOC_DATA.
        ENDIF.
      ENDLOOP.
    I hope this helps. Otherwise, please ask again.
    Rgds.
    Anders

  • Logical Database DDF - GET KNA1 - change KUNNR to another customer....

    Hi
    Question 1a:
    When using logical database DDF I perform a GET KNA1 a check is performed in order to see if customer should be within selection or not. In some cases this customer refers to another customer (fiscal address) that should be used instead.
    So Customer KNA1-KUNNR: 123 should instead be Customer 456 which contains the relevant data for the next step in the selections from the logical database.
    ..GET KNB1
    ..GET BSID...
    How is it possible to replace customer 123 with customer 456 so the continous processing of the logical database will use the new customer number instead.
    Question 1b
    And a follow up question - If there is a solution to question above....
    How can I make sure that IF customer 456 pops up in the regular selection from the logical database - It is excluded since it was already used (when customer 123 was replaced with 456 above)...
    Best regards
    Henrik

    Hi Ranganath!
    Thankyou for looking into my problem.
    Ranganath Ramesh wrote:
    ...If you want to do something like that then you need to manually populate the customer numbers which are related to the selection screen field....
    Could you please clarify how I manually could add this new customer number to my selection screen field...whithout disturbing the origianal selection with GET KNA1 - at the same time as the CHECK-statement for my old customer number fails and is excluded from the selection.
    BR
    Henrik

  • KNA1.CREATED with Event based on Change Documents -- No Receiver

    Good morning experts,
    I set up a subtype of Object KNA1 ZKNA1 with 2 events CREATED and CHANGED, KNA1 is delegated to ZKNA1.
    Additionally, I set up two ansynchronous methods "CREATEASYNCHRON" and "CHANGEASYNCHRONE" in ZKNA1, both are a simple CALL TRANSACTION, these methods should be terminated by the two mentioned events.
    I added 2 entries in TA SWEC for triggering the both events when change documents are posted --> works fine, everytime I create or change a customer the systems creates the linked event, the event container is filled with the customer number.
    Afterwards, I set up 2 standard tasks for the two mentioned methods with terminating event CREATED and CHANGED,  the Instance Linkage was done in TA SWEINST and is active.
    My problem now is that the event is triggered correctly, but the tasks are not getting terminated, the event trace also tells me that that there would be no event receiver entered.
    Can you tell me what I did wrong? I made this for a lot of other workflows before and everything worked fine, so I don't understand what's the problem...
    Thanks for your support!

    Hi,
    I am not sure if this will work...
    Simulate 1 event using SWUO...
    Under Potential tasks to be terminated... find your task ... right click-> Event Linkage -> Select "Event Linkage activated" ...
    and try once more ....
    Regards
    Gautam

  • KNA1 Mass Maintenance with a BADI implemented.

    Hi Everyone,
    We have implemented a Customer Master BADI to maintain some additional KNA1 and KNVV fields.
    when we execute XD99 to mass maintain an SAP field (KNVV-AUFSD)we receive an error "Enter a valid value". When I debug I dsicover that it is attempting to update the extra fields from the BADI using a value of '/' which is usually the null value even though I have not and can not select these fields for update.
    Has any one encountered this problem before?
    Thank you in advance.
    Dennis Walsh

    Hi,
      Can you mention the name of the BADI:
    Is it anyone of these you are using or is it a custom one. I can take a look at the issue if you can provide more details.
    CUSTOMER_ADDRSCR_CHG
    CUSTOMER_ADD_DATA
    CUSTOMER_ADD_DATA_BI
    CUSTOMER_ADD_DATA_CS
    Aveek

  • Requirment to add new field in kna1 and maintiane using XD02

    hi
    i have a requirment need suggestion on that
    1) the requirmen is to add a new field email id on kna1 standard table
    ( it can be done by append structure pls give me full steps to do it and complication involved in it)
    2) now is it possible that user able to maintiane this new field by using Tcode XD02
    will it be visible there if we use a new zappend structure and how the data will be populate in that field by Xd02 do any change required in Xd02
    3) we have to create another tcode for display of these threee fields kunnr name1 and email id that will be done by moudle pool again so is there any compication in thati method later is above steps are done
    main th ing is how data will be populated in kna1 using xd02
    regards
    ARora

    hi Seshu
    my main problem in this is that
    since we are using append structure how data wil be populated in the kna1 table in this new field email id?
    as we need to find some user exists to do so as it is a structre not a field so population of data is a problem in that?
    2) and wheter i should new ztable but customer is asking to add in the standard table and maintian by some xtransaction whetehr it is possible or not?
    #) also can us suggeest on the primary keys i should give for t his data types and records as pasted below if i create a new table and should i check init check box also?
    kunnr        email id                                       name1
    100400     [email protected]      TECHNOLOGY HONG KONG LTD
    100400     [email protected]      TECHNOLOGY HONG KONG LTD
    100400     [email protected]     TECHNOLOGY HONG KONG LTD
    100400     [email protected]               TECHNOLOGY HONG KONG LTD
    100550     [email protected]      INDUSTRIAL CO. LTD.
    100550     [email protected]      INDUSTRIAL CO. LTD.
    100550     [email protected]                      INDUSTRIAL CO. LTD.
    100550     [email protected]                      INDUSTRIAL CO. LTD.
    100550     [email protected]      INDUSTRIAL CO. LTD.
    100550     [email protected]                       INDUSTRIAL CO. LTD.
    regards
    Arora

  • Performance Issue on Select Condition on KNA1 table

    Hi,
    I am facing problem when i am selecting from the table KNA1 for given account group and attribute9 it is taking lot of time .
    Please suggest the select query or any other feasible soln to solve this problem
    select
    kunnr
    kotkd
    from kna1
    where kunnr eq parameter value and
    kotkd eq 'ZPY' and katr9 = 'L' or 'T'.
    Firstly i am using in in katr9 then i removed dur to performance issue using read further please suggest further performanace soln

    Hi,
    The select should be like:
    select
    kunnr
    kotkd
    from kna1
    where kunnr eq parameter value
        and kotkd eq 'ZPY'
         and katr9 in r_katr9. "  'L' or 'T'.
    create a range for katr9 like r_katr9 with L or T.
    Because while selecting the entries from KNA1, it will check for KATR9 = L and then KATR9 = T.
    Hope the above statement is useful for you.
    Regards,
    Shiva.

  • Select name1 frm kna1 table on basis of customer number

    hi below is my PAI code
    my requiremnt is to select name1 field from kna1 table where
    kan1-kunnr = t_ZCUST_EM_create-ship_to
    where to code it pls suggest and how it will be displayed in the screen 200 ie when user press enter the name1 should automatically populate and display on the screen...
    PROCESS AFTER INPUT.                                                                               
    MODULE CANCEL_200 AT EXIT-COMMAND.                                                                               
    LOOP WITH CONTROL TABLE_ZCUST_EM_CREATE ."AT T_AIMS_OPN_CREATE ." .".
       MODULE USER_COMMAND_0200.                                                                               
    CHAIN.                                                                               
    FIELD t_ZCUST_EM_create-ship_to .                                                                               
    MODULE set_field_validation ON CHAIN-REQUEST.

    hi anji
    here is my code i ahve written in PAI event but facing problem that whne i save entering the third firled in table zcustemal which has ship_to ship to name
    and email id, kunnr is matched against kna1 table and eror msg comes if the kunnr in not in kna1 table it is working ok
    now also name 1 is being populated in the field in the screen as per my code
    but problem is
    1) when just typing kunnr and email id ( and press save without enter the data for all three is saved ie kunnr name1 ( which is selected from table kna1) and e mail id
    2) but whne i press enter after entering kunnr number on screen and then enter email id an dsave email id is not saved only kunnr and name1 is saved pls suggest
    where should i code dont know pls suggest??????
    CODe in screen
    PROCESS BEFORE OUTPUT.
      LOOP   WITH CONTROL TABLE_ZCUST_EM_CREATE."AT T_ZCUST_EM_CREATE
        MODULE STATUS_0200.
      ENDLOOP.
    *Process after input
    PROCESS AFTER INPUT.
      MODULE CANCEL_200 AT EXIT-COMMAND.
      LOOP WITH CONTROL TABLE_ZCUST_EM_CREATE ."AT T_zcust_em_CREATE ." .".
        CHAIN.
          FIELD t_ZCUST_EM_create-ship_to .
          MODULE set_field_validation ON CHAIN-REQUEST.
        ENDCHAIN.
        MODULE USER_COMMAND_0200.
      ENDLOOP.
      module read_table_value_0200.
    <b>MODULE set_field_validation INPUT.</b>
    nv added for  three email id and ship_to name
      select single * from zcustemail   where ship_to eq
      t_zcust_em_create-ship_to
      and ship_to_name = t_zcust_em_create-ship_to_name
      and email_id = t_zcust_em_create-email_id.
      if sy-subrc eq 0.
        t_gui1-fcode = 'BACK'.
        append t_gui1.
        t_gui1-fcode = 'EXIT'.
        append t_gui1.
        t_gui1-fcode = 'SAVE'.
        append t_gui1.
        SET PF-STATUS 'AIMS_200' excluding t_gui1.
        message e001 with 'Record already Exists in Zcusteamil'(001).
      else.
    *nv
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
              EXPORTING
                 INPUT         = t_zcust_em_create-ship_to
              IMPORTING
                  OUTPUT       = t_zcust_em_create-ship_to.
         select single kunnr from kna1 into v_kunnr
         where kunnr = t_zcust_em_create-ship_to.
        if sy-subrc = 0.
           select single name1 from kna1 into t_zcust_em_create-ship_to_name
           where kunnr = t_zcust_em_create-ship_to.
          SET PF-STATUS 'AIMS_200'.
           else.
           message E001 with 'customer number does not exists'.
       endif.
    *nv
      endif.
    ENDMODULE.                 " set_field_validation  INPUT
    *Setting it for select/deselect entries
      move:t_zcust_em_create to t_zcust_em_create_sel.
      append t_zcust_em_create_sel.
      clear:t_zcust_em_create_sel.
    *Getting internal table t_zcust_em_create with control
      read table t_zcust_em_create
             with key ship_to = t_zcust_em_create-ship_to.
    *Getting internal table for create entries: screen-200
      if sy-subrc ne 0 and t_zcust_em_create-ship_to ne space .
        append  t_zcust_em_create     .
        move:t_zcust_em_create to t_zcust_em_create_tmp.
        append t_zcust_em_create_tmp .
        clear:t_zcust_em_create_tmp  ,
              t_zcust_em_create      .
      endif.
      clear:t_cols.
    *Getting the value of  w_fill_200.
      describe table t_zcust_em_create lines w_fill_200.

  • JOINING KNA1 TO VBRK

    Hi everyone,
    I am SAP ECC 6.0 and I am trying to create a query with KNA1 and VBRK and VBPA . I join the tables together and proceed to test, when I click execute  immediately I receive a message "no data selected". I am trying to get invoiced sales by State, City and Ship-to . What could I be doing wrong?

    I am trying to use Quickviewer to create a report... total sales dollars for ship to addresses in a city,  I select the fields I need then generate the report, input the information into selection screen and click execute and immediately it returns "NO DATA SELECTED". The funny thing is before we upgraded to ECC 6.10, I did not have this problem. I know to join the tables, so that's not it. It seems as if the two tables do not work together what so ever.
    The tables are KNA1 and VBRK and VBPA..
    Edited by: Tia Garrison on Mar 20, 2009 7:43 PM

Maybe you are looking for

  • Strange MRP behavior - creation of schedule lines we don't need

    We are having a very strange MRP issue that I'm hoping there's a solution for.  If MRP looks something like this (extremely simplified): 04/16 SchLine 100 04/17 DepReq  100 05/16 SchLine 100 05/17 DepReq 100 06/16 SchLine 100 06/16 DepReq 100 06/28 -

  • How do i get iphoto to STOP importing?

    iphoto has been IMPORTING all night from my SD card and it wont let me STOP IMPORTING it says it needs to finish but it is taking to long!! and when i click on 'commandQ' that doesnt work either!! What else can i do?? It wont let me turn off my mac b

  • Macbook Pro power button

    My boss gave me a 2008 15" Macbook Pro to set up ready for another employee, everything had been wiped off the laptop. He told me that first he wanted it fixed - the power button only worked occasionally- it always worked for me but I took it to the

  • Size of Drop down by key

    Hi, when i built value set for the first time for drop down by key, values( texts ) are displayed correctly, however when it is re-built based on other drop down instead of showing texts it is showing the key value in drop down, however if select dro

  • Oracle HA Setup - how to define resource dependency !

    - I have one resource group : oracle-rg- I created three resource in this resource group: oracle-ha-rs ( type SUNW.HAStoragePlus) oracle-listener-1 ( type SUNW.oracle_listener ) oracle-server-1 ( type SUNW.oracle_server )Now how do I define dependenc