Append structre to aufk

hi.
any one made append structre to aufk CI_AUFK in transaction KO02?
it is dangerous?????
ans...PLS>>>

Hi,
This is not dangerous.
The CI_AUFK is nothing but itself has given some sapce to add some fields to the customer.
It is not ata ll probllem you can ahead with u r work.
Thanks

Similar Messages

  • Not able to fetch order type prefixed with 0.

    Hi Techies,
    I have a problem in getting order category field .
    The value for order category is '00',but iam getting this value as empty.
    iam getting this value from aufk and iam assigning this value to a local structure.
    if i pass autyp= '01' iam getting only 1.
    both the data types in table and my structre are same numc(2).
    iam confused,pls guide me further.
    Thanks

    Hi ,
    try this way..
    data :  v_autyp type aufk-autyp.
    move '00' to v_autyp.
    if aufk-autyp = w_autyp.
      "write your logic
    endif.
    or
    ranges : r_autyp for aufk-autyp.
    r_autyp-low  = 'I'.
    r_autyp-option  = 'EQ'.
    r_autyp-sign  = 'I'.
    append r_autyp.
    r_autyp-low  = '2'.
    r_autyp-option  = 'EQ'.
    r_autyp-sign  = 'I'.
    append r_autyp.
    if aufk-autyp in r_autyp.
      "write your logic
    endif.
    Prabhudas

  • To create a new field in kna1 and ..

    hi
    i want to know possible to maintain an new field customer email id in std SAP customer master table, then create another new Z txn, when user able to display/maintain those information by any sorting sequence (ship to code, name and email id) thru this new Z txn instead of XD02.
    regards
    Arora

    Hi nishant
    For this type of req's i have created our fileds in append structre of sap tables if this is the case then there is no need to manually update SAP will take care,
    2. otherwise if u r creating extra table for our fileds then u have to manually update this created table
    the best way is create fields in append structres and pass the screen field values to in the exits function modules of a parameters then these values are automatically updated by sap.
    Reward points for all helpful answers,
    kiran.M

  • Custom field in Account Master Data Tcode BCA_CN_ACCT_03 - Display Account

    Hi all,
    I want to add a custom field in Basic Data tab of display account screen : Tcode BCA_CN_ACCT_03. 
    Please give step-by-step solution.
    Points assured!
    Jogdand M B
    Edited by: Jogdand M B on May 19, 2008 5:36 PM

    Solved by myself
    I write here the response because I didn't found it anywhere:
    When you are adding a custom field to MAKT table you have to add it to appending structres SKTEXT and DMAKT too because the standard uses them to read/write the data to MAKT. It's easy to do but hard to find out

  • Add custom field to MAKT to get a larger descritpion in MM01/MM02/MM03

    Hi, I already know how to add a new field to MARA and show/maintain it at MM01-03 transactions using this procedure (copied from another thread):
    Create the append structure on the MARA table.
    The SAP note 44410 describes how to add the new fields to the screen and how the updating will work.
    1. Make a copy of function group MGD1to ZMGDI as stated inthe Ossnote using program COPYMGDI.
    2. Goto Se38 enter program name SAPLZMGDI Click Display and goto> program-> other object---> enter screen number '0001' and add your fields to the subscreen which should apper on the the general data section of the basic data1 tab for the tcode MM01
    2. Make the changes stated in SAP Note.
    3. After make the changes the functional analyst will need to make some configuration changes.
    4. SPRO -> Logistic General -> Material Master -> Configuring Materal Master -> Define Structure of Data Screens Sequence.
    5. Select SSq = 21 then click on Subscreens select Basic DATA1
    6. Enter in the new screens that were built
    7. Change the row that was create putting in the program (function group program) that was created in step 2.
    But now, I need to add a language dependent description to have larger material description than MAKT-MAKTX. I've added the Z field to the MAKT table, generated the subscreen and copied the PBO and PAI from the screen 1002 (which is saving the MAKTX data). But it doesn't work and I'm not sure what I have to do...

    Solved by myself
    I write here the response because I didn't found it anywhere:
    When you are adding a custom field to MAKT table you have to add it to appending structres SKTEXT and DMAKT too because the standard uses them to read/write the data to MAKT. It's easy to do but hard to find out

  • Reference field and table for AUFK for F4 help in alv.

    Hi All,
       I need to put F4 help on ALV for order no (AUFK) what is the reference field and table for that?
      i tried giving field as aufk and table as ccss but its not working.
       ls_fcat-ref_field = 'AUFNR'.
        ls_fcat-ref_table = 'CCSS'.
    Thanks & Regards,
    Ruchi Tiwari

    Hi,
    Try this.
    Set the f4 help for the field in the fieldcatalog
      ls_fcat-f4availabl = 'X'.
    1. Create a event of ONF4 for the alv grid.
    2. Set the event handler.
    3. Append the field for the F4 help in the internal table and call the below method
        CALL METHOD g_mprn->register_f4_for_fields
        EXPORTING
          it_f4 = i_f4.
    4. create a class definition and implementation
        refer sample pgms (BCALV_F4, BCALV_GRID_EDIT_DELTA and BCALV_GRID_EDIT)
    Hope this may be helpful.
    Regards,
    Sharin.

  • RSQL error 23 when accessing table "AUFK "??What happened in the ABAP DUMP?

    Thanks a millon for your help o(u2229_u2229)o...
    The code is:
      select aufkaufnr  afkogltri afkoftrmi afkoplnbez maktmaktx afkogamng
                                     afkogmein afpowemng afko~plnnr
         inner join AFKO on AUFKAUFNR = AFKOAUFNR  and AFKO~GLTRI = '00000000'
    *and AFKOFTRMI <= sy-DATUM and AFKOFTRMI <> '00000000'
          from aufk inner join afko on aufkaufnr = afkoaufnr and afko~ftrmi <= sy-datum
          left join makt on maktmatnr = afkoplnbez and makt~spras = 'E'
          left join afpo on afpoaufnr = aufkaufnr
          into corresponding fields of table mytable1
          where aufkwerks = mywerks and aufkauart = myauart and aufk~aufnr in myaufnr
          order by aufk~aufnr.

    Hi,
    Use FOR ALL ENTIRES in place of JOIN like this:
    Select aufnr
        From aufk
        into table lt_aufk
        where aufnr in myaufnr
          and auart EQ myauart
          and werks EQ mywerks.
    Select aufnr
        From aufk
        into table lt_aufk
        where aufnr in myaufnr
          and auart EQ myauart
          and werks EQ mywerks.
    IF lt_aufk IS NOT INITIAL.
      SORT lt_aufk BY aufnr.    
      Select aufnr
             gltri
             ftrmi
             gamng
             gmein
             plnbez
             plnnr
        FROM afko
        INTO lt_afko
        FOR ALL ENTRIES IN lt_aufk
        WHERE aufnr EQ lt_aufk-aufnr
         AND ftrmi LE  sy-datum.
        SORT lt_afko BY aufnr
                        ftrmi.
       Select aufnr
              wemng
         FROM afpo
         INTO lt_afpo
         FOR ALL ENTRIES IN lt_aufk
         WHERE aufnr EQ lt_aufk-aufnr.
       SORT lt_afpo BY aufnr.
       Select matnr
              maktx
         FROM makt
         INTO lt_makt
         FOR ALL ENTRIES IN lt_afko
         WHERE matnr EQ lt_afko-plnbez
           ANd apras EQ 'E'.
       SORT lt_makt BY matnr.
    ENDIF.
    LOOP AT lt_aufk ASSIGNING <fs_aufk>.
    READ TABLE lt_afko INTO lwa_afko WITH KEY aufnr = <fs_aufk>-aufnr BINARY SEARCH.
    Now move data of respective fields of lwa_afko to lw_mytable
    Similarly read with key other internal tables and move data to lw_mytable
    Then append lw_mytable to lt_mytable.
    ENDLOOP.
    Also note that the fields in where condition should be in same order as they are in the database table otherwise you will get a dump..
    I hope it helps you.

  • Updation of 'Z' field in database table VBAP & AUFK

    Hi,
    In my report I wanted to update/modify value in a "Z" field in VBAP and a "Z" field in AUFK table.
    Could anyone please suggest me how to update/modify this field value using a BAPI or FM?
    Or any other method atleast..
    Thanks in Advance,
    Rohan.

    Hi,
    When you want to change the Zfield in VBAP we can go for the BAPI function module-
    BAPI_SALESORDER_CHANGE for the given Zfield get the header data and append it to BAPI header structure.
    I think we may use the same FM for updating the AUFK also.
    Reward points if useful.
    Regards
    Chandralekha

  • Looping and append related prob

    hi experts,
    i need to populate a final internal table from 4 diffrent internal tables,
    namely it_vbrk,
    it_vbrp,
    it_lips, it_mch1
    logic here
    **loop at it_vbrk into wa_vbrk.
    wa_final -   = wa_vbrk----
    loop at it_vbrp from idx.   then i use parallel cursor, as i needed multiple items based on single vbrk-vbeln
    wa_final---- = wa_vbrk ---
    loop at it_lips into wa_lips." based on some cond on where clause
        here also i ve to used loop , as there r multiple batch no .
    wa_final - = wa_lips-
    loop at it_mch1 into wa_mch1 where charg = wa_lips-charg
    wa_final --- = wa_mch1 .
    APPEND wa_final TO it_final.
        CLEAR wa_final.
        endloop.
    endloop.
        endloop  
      ENDLOOP."
    but in this code data getting populated are wrong ones,
    can u plz tell me  the exact sequence how to used endloops and append work area values and clear that.
    i getting confused ,plz help

    Hi,
    Reading data from 4 database table into different internal table and then read these table into a final internal table using 'FOR ALL ENTRIES'.
    Use this code, its working:-
    *          RANGES DECLARATION
    *          RANGE VALUE TO BE USED FOR THE ORDER TYPE
    RANGES : r_auart FOR aufk-auart. "for order type
    *          TYPE DECLARATION
    TYPES :
    * for table aufk (work order details)
            BEGIN OF t_aufk,
              aufnr TYPE aufk-aufnr, " order number
              ktext TYPE aufk-ktext, " description
              objnr TYPE aufk-objnr, " object number
            END OF t_aufk,
    * for table jest (object status details)
            BEGIN OF t_jest,
              objnr TYPE jest-objnr, " object number
            END OF t_jest,
    * for table afko (basic finish date details)
            BEGIN OF t_afko,
              aufnr TYPE afko-aufnr, " order number
              gltrp TYPE afko-gltrp, "basic finish date
            END OF t_afko,
    * for table qmel (notification number details)
            BEGIN OF t_qmel,
              aufnr TYPE qmel-aufnr, " order number
              qmnum TYPE qmel-qmnum, " notification number
            END OF t_qmel,
    * final table from which the records need to be displayed
            BEGIN OF t_final,
              aufnr TYPE aufk-aufnr, " order number
              ktext TYPE aufk-ktext, " description
              qmnum TYPE qmel-qmnum, " notification number
              flag(1), " for selection of records
            END OF t_final.
    *          INTERNAL TABLE & WORK AREA DECLARATIONS
    * TYPE OF T_AUFK
    * internal table to select records for damaged order types
    DATA : it_aufk TYPE STANDARD TABLE OF t_aufk,
    * work area for damaged order types
           wa_aufk TYPE t_aufk.
    * TYPE OF T_JEST
    * internal table to select object number based upon user status
    DATA : it_jest TYPE STANDARD TABLE OF t_jest,
    * work area to select object number based upon user status
           wa_jest TYPE t_jest.
    * TYPE OF T_AFKO
    * internal table to select the basic finish date corresopnding to work order
    DATA : it_afko TYPE STANDARD TABLE OF t_afko,
    * work area to select the basic finish date corresopnding to work order
           wa_afko TYPE t_afko.
    * TYPE OF T_QMEL
    * internal table to select the notification number corresopnding to object number
    DATA : it_qmel TYPE STANDARD TABLE OF t_qmel,
    * work area to select the notification number corresopnding to object number
           wa_qmel TYPE t_qmel.
    * TYPE OF T_FINAL
    * final internal table to select final records to be displayed
    DATA : it_final TYPE STANDARD TABLE OF t_final,
    * final work area to select final records to be displayed
           wa_final TYPE t_final.
    *          INITIALIZATION
    *          TO INITIALIZE ALL THE VARIABLES TO BE USED
    *          IN THE PROGRAM
    INITIALIZATION.
      r_auart-sign = 'I'.             " for inclusive
      r_auart-option = 'BT'.          " for between operator
      r_auart-low = 'PM01'.           " order type(low value)
      r_auart-high = 'PM02'.          " order type(high value)
      APPEND r_auart.                 " append values for range
    *          START-OF-SELECTION
    START-OF-SELECTION.
    *          CLEAR ALL THE CONTENTS OF ALL INTERBAL TABLES
      REFRESH it_jest.
      REFRESH it_aufk.
      REFRESH it_afko.
      REFRESH it_qmel.
      REFRESH it_final.
    *          select user status from TJ02T for TXT04(status of an object)
    *          into variable V_ISTAT
      SELECT SINGLE
        istat
      FROM tj02t
      INTO (v_istat)
      WHERE
        txt04 EQ 'TECO' AND
        spras EQ 'E'.
    *          select object number based upon the user status selected
      SELECT
        objnr
      FROM jest
      INTO TABLE it_jest
      WHERE
        stat EQ v_istat.
      IF sy-subrc  0.
        MESSAGE e003.
      ELSE.
    *         select into it_aufk table: object number, description and
    *         object number based on object number selected and order type
    *         in PM01 and PM02
        SELECT
          aufnr
          ktext
          objnr
        FROM aufk
        INTO TABLE it_aufk
        FOR ALL ENTRIES IN it_jest
        WHERE
          objnr EQ it_jest-objnr AND
          auart IN r_auart.
        IF sy-subrc  0.
          MESSAGE e002.
        ELSE.
    *         select into it_afko table: order number and basic finish date
    *         based upon order number selected and basic finish date as
    *         v_cdate variable
          SELECT
            aufnr
            gltrp
          FROM afko
          INTO TABLE it_afko
          FOR ALL ENTRIES IN it_aufk
          WHERE
            aufnr EQ it_aufk-aufnr AND
            gltrp LE sy-datum.
    *         select into it_qmel table: order number and notification
    *         number based on the order number selected
          SELECT
            aufnr
            qmnum
          FROM qmel
          INTO TABLE it_qmel
          FOR ALL ENTRIES IN it_aufk
          WHERE
            aufnr EQ it_aufk-aufnr.
        ENDIF.
      ENDIF.
    *          READ THE RECORDS FOMR THE ABOVE POPULATED INTERNAL TABLE
    *          INTO WORK AREA AND THEN POPULATE THE FINAL INTERNAL
    *          TABLE
    * read internal table it_jest into work area wa_jest
      LOOP AT it_jest INTO wa_jest.
    * read it_aufk based on object number from wa_jest
        READ TABLE it_aufk INTO wa_aufk WITH KEY objnr = wa_jest-objnr.
    * if records found
        IF sy-subrc EQ 0.
    * read it_afko for order number and description based on order number
          READ TABLE it_afko INTO wa_afko WITH KEY aufnr = wa_aufk-aufnr.
    * if records found
          IF sy-subrc EQ 0.
            wa_final-aufnr = wa_afko-aufnr. "move order number to it_final
            wa_final-ktext = wa_aufk-ktext. "move description to it_final
          ELSE.
    * if no record found then move to next loop pass
            CONTINUE.
          ENDIF.
        ELSE.
    * if no record found then move to next loop pass
          CONTINUE.
        ENDIF.
    * read it_qmel for description based on the order number selected above
        READ TABLE it_qmel INTO wa_qmel WITH KEY aufnr = wa_final-aufnr.
    * if records found
        IF sy-subrc EQ 0.
          wa_final-qmnum = wa_qmel-qmnum. "move notification number to it_final
        ENDIF.
    * finally append the records into the final internal table
        APPEND wa_final TO it_final. "append wa_final into it_final
        CLEAR wa_final. "clear work area
        CLEAR wa_aufk.  "clear work area
        CLEAR wa_qmel.  "clear work area
      ENDLOOP.
    Hope this helps you.
    Thanks & Regards,
    Tarun Gambhir

  • Prcing append tables - abapers

    HI friends
    all fields using for pricing in access sequence has to be append in KOMPAZ, KOMG, KOMK and KOMP.--?
    pelase let me know.
    Thanks
    Kris

    Hi,
    All  'KOMPAZ, KOMG, KOMK and KOMP.--?' are structres not tables i.e structres contains the data during the runtime only not the static data.
    Access sequence data is saved the table T682Z.
    Thanks and regards,
    shyla

  • Move data to structre

    hi,
    i wont to now if its better to use regular structre or deep
    and how i can use deep right.
    eg.
    TYPES : BEGIN OF  orgunit_tab1,  "Here it's working well
                 plvar TYPE plvar,
                 otype TYPE otype,
                 objid TYPE objektid,
                 begda TYPE hrp1000-begda,
                 endda TYPE hrp1000-endda,
           END OF orgunit_tab1.
    DATA: orgunit_tab TYPE TABLE OF orgunit_tab1,
          wa_orgunit_tab LIKE LINE OF orgunit_tab.
    TYPES : BEGIN OF  orgunit_tab1,
                 org TYPE hrobject,    "Deep
                begda TYPE hrp1000-begda,
                endda TYPE hrp1000-endda,
           END OF orgunit_tab1.
    DATA: orgunit_tab TYPE TABLE OF orgunit_tab1,
              wa_orgunit_tab LIKE LINE OF orgunit_tab.
    when i try to move data to the deep structre i get it in one string in field org and not
    in separate fields in org how can i use deep and get it separate fields?
    Regards

    Hi,
    Please try this.
    TYPES: BEGIN OF  orgunit_tab1,
             org TYPE hrobject,    "Deep
             begda TYPE hrp1000-begda,
             endda TYPE hrp1000-endda,
           END OF orgunit_tab1.
    DATA: orgunit_tab TYPE STANDARD TABLE OF orgunit_tab1,
          wa_orgunit_tab TYPE orgunit_tab.
    DATA:  wa_org TYPE hrobject.
    wa_org-plvar = <...>.
    wa_org-otype = <...>.
    wa_org-objid = <...>.
    wa_orgunit_tab-org = wa_org.
    wa_orgunit_tab-begda = <...>.
    wa_orgunit_tab-endda = <...>.
    append wa_orgunit_tab to orgunit_tab.
    Regards,
    Ferry Lianto

  • Report Generation tool kit for MS office (Opening an existing excel file and appending to the bottom)

    I don't have any problems creating and filling an excel sheet with data. I use the New Report.vi, Easy Title.vi, and Easy Text.vi to create the file. I then save and dispose properly.
    What I don't seem to be able to do is open the exsting file and append data to the end of the sheet.
    Thanks in advance for your help.
    todd

    Hi Todd,
    You can do this by creating a new Excel report with the existing excel file path wired to the "template" input. Then use "Excel Get Last Row.vi" (located under Report Generation\Excel Specific\Excel General) to obtain the location of the last row. Then use that location to input new data into the file.
    Hope this helps,
    Dan

  • Append table - Regenerating a maintenance view

    People,
    I would like to create one more fied in a standard table, so I will create an append in this table.
    But it has a maintenance view associated to it. As this is a standard table, is there a way to regenerate this maintenance including the new field ?
    Thanks a lot!

    I´m not sure the maintenance view is regenerated.
    This is a standard table and I don´t want to get an access key to solve this.
    Anyone here has this experience?

  • Appending and add time stamp at a time........

    Hi all,
    i am working on a scenario...
    it is file based..no mapping and bpm can be used.
    I need to pick up file through xi and append it and put in the target with time stamp to it.
    we can achieve this if mapping or bpm is allowed.....
    But,in file processing we can use only one option at a time.....
    I found a way:
    scenario one: files will be appened and kept in a temparory folder
    using another scenario we will pick up the appeneded file and add time stamp and keep in target structure...
    but i dont think this is advisable...
    please suggest me any other ways to achieve this...(can run operating system command be helpfull??)
    thanks in advance..
    Regards,
    Kiran.

    HI,
    Yes you are right, Appending and adding Time Stamp will not be possible simultaneously.
    Refer - this could help you
    Dynamic Filename with TimeStamp  
    Dynamic Filename with TimeStamp
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    But some how you have to use mapping for it. Then if its allowed to use the mapping then as you have suggested, should have to go for two scenarios. No alternative,
    Probably also you can try with Customized Adapter Module for this.
    Thanks
    swarup

  • XSLT Mapping: Problem in appending xmlns attribute

    Hi
    This is my source message
    <?xml version="1.0" encoding="UTF-8"?>
    <soap-env:Envelope xmlns:soap-env= "http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Body>
    <OrderID xmlns="http://dummyvalue">12345</OrderID>
    </soap-env:Body>
    My XSLT mapping
    <?xml version='1.0' ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
    <xsl:template match="/">
    <soap-env:Envelope>
    <soap-env:Body>
    <OrderID>
    <xsl:attribute name = "xmlns" >
    <xsl:value-of select="@xmlns"/>
    </xsl:attribute>
    <xsl:text>12345</xsl:text>
    </OrderID>
    </soap-env:Body>
    </soap-env:Envelope>
    </xsl:template>
    </xsl:stylesheet>
    I am getting the error message as
    ERROR: Description: The value of the 'name' attribute may not be 'xmlns'.
    Please help me how to append xmlns attribute in OrderID element ??

    Hi,
    Use <xsl:element> to create a node in the output and specify the namespace.
    <xsl:element
    name="name"
    namespace="URI"
    use-attribute-sets="namelist">  <!-- Content:template --></xsl:element>
    Thanks,
    Beena.

Maybe you are looking for

  • Issue on Changing the Payroll Area in Mid of the Month from Biweekly to Mon

    Dear Experts, I have an issue on payroll area which is changing from biweekly to monthly in Mid of the Month. One employee was retired on 29th of March, so his payroll area was changed from biweekly to monthly on 29th. For retire we are running the p

  • PO creation Indicator in SRM

    Hi Experts, I have a question for you? Where can i find the PO creation indicator in SRM? We are in Extended Classic scenario. POs are created from Shopping carts either manually by Purchaser from SOCO or autmatically by the system for catalog items

  • Mac version 5.1 compatability problems with pc version 6.1

    i am using a vi from a mac version 5.1 and when i try to use it on the pc version 6.1 it is showing the correct data on the graphs, but when it prompts me to save the data to a text file i do, and when i open the file when it is done running nothing

  • Flash archive install from local_device

    I created a flash archive image from a server, now i want to install a new server using this file from a local scsi disk , but i have no idea on how to do this. I found info about network install, but i can't use network for this install. Any help wi

  • Assitance with Script

    Here's my situation: We are presently printing our photographs for court using PowerPoint using the Handout page with two images per page.  The problem is the images are small and the Noritsu printer is capable of printing PowerPoint presentations us