Copying data for custom includes in FB50

I have added new fields to FB50 by using the screen painter in SAPLFSKB screen 100. I created new fields in CI_COBL called ZZNAME1 and ZZPARVW. These now appear on FB50. The problem is, data that is entered into those fields disappears when trying to save the document in FB50. How can I make that data persist? I believe that I need to copy the data from ZZNAME1 and ZZPARVW into the real fields NAME1 and PARVW, but where would I put the code to copy that data?

Is there any way to find the source of data for the Custom tables. The source can be either any function, procedure, package or a trigger or any other process. The reason why I need to know about it is because we have some custom tables that are used by some custom Reports. Sometimes those reports comes out blank because the data in these custom tables is blank. So I need to know which processes are populating data in these custom tables. Any help would be really appreciated !!I do not think there is a direct way to find out the source of the data unless your custom processes are documented.
You may enable AutditTrail (search the forum for links/docs) and see if this would help.
Thanks,
Hussein

Similar Messages

  • How to populate date & time when user enter data for custom table in sm30

    Can anyone tell me How to populate system date & time when user enter data for custom table in sm30..
      Req is
      i have custom table and using sm30 user can enter data.
    after saving date i want to update date & time in table
    Pls let me know where to write the code?
    Thanks in Advance

    You have to write the code in EVENT 01 in SE54 transaction. Go to SE54, enter your Ztable name and in the menu 'Environment-->Events'. Press 'ENTER' to go past the popup message. In the next screen, click on 'New Entries'. In the first column, enter 01 and in the next column give some name for your routine(say UPDATE_USER_DATE_TIME). Then click on the souce code icon that appears in blue at the end of the row. In the code, you need logic like below.
    FORM update_user_date_time.
      DATA: f_index LIKE sy-tabix.
      DATA: BEGIN OF l_total.
              INCLUDE STRUCTURE zztable.
      INCLUDE  STRUCTURE vimtbflags.
      DATA  END OF l_total.
      DATA: s_record TYPE zztable.
      LOOP AT total INTO l_total.
        IF l_total-vim_action = aendern OR
           l_total-vim_action = neuer_eintrag.
          MOVE-CORRESPONDING l_total TO s_record.
          s_record-zz_user = sy-uname.
          s_record-zz_date = sy-datum.
          s_record-zz_time = sy-uzeit.
          READ TABLE extract WITH KEY l_total.
          IF sy-subrc EQ 0.
            f_index = sy-tabix.
          ELSE.
            CLEAR f_index.
          ENDIF.
          MOVE-CORRESPONDING s_record TO l_total.
          MODIFY total FROM l_total.
          CHECK f_index GT 0.
          MODIFY extract INDEX f_index FROM l_total.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " UPDATE_USER_DATE_TIME
    Here ZZTABLE is the Z table and ZZ_USER, ZZ_DATE, and ZZ_TIME are the fields that are updated.

  • How to copy data for certain member from one dimension to another dimension

    Dear ,
    I want to copy data for certain member ("511102") from one dimension to another combinations of dimensions ,
    I have the following combinations for "511102" :
    _("Budget2012","FY12","Working.V01","SAR","BegBalance","1011","G_10","custom Grades")_
    I want to copy "511102"  to "salary"
    -salary have the following dimensions :
    _("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")_
    , I don't know if I could do it by datacopy of cross dimensional , But I don't HOW >>>
    Thanks in advance

    FIX("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")
    "salary"="511102"->"1011"->"G_10"->"custom Grades";
    ENDFIX
    or
    FIX("Budget2012","FY12","Working.V01","SAR","BegBalance")
    DATACOPY "511102"->"1011"->"G_10"->"custom Grades" to "salary"->"General group"->"All grades"->"General Employees";
    ENDFIX
    Key thing in datacopy is to place the dimensions in cross dimension in the same order. Both sides (before and after "TO") should have equal number of dimension members specified.
    Cheers,
    Alp

  • Logical database PNP not retrieving data for custom infotypes.

    Hi all,
    I am using logical database PNP in a program. I have declared infotypes as follows:
    INFOTYPES: 0001, 0002, 0041, 9801, 9840.
    The problem is that the logical database is retrieving data for the standard infotypes but not for the custom infotypes. Any explanation as to why data for custom infotypes is not being retireved and how this can be solved will be greatly appreciated.
    regards,
    Hamza

    solved

  • How to upload data for custom infotype

    Hi  Friends
    Can we use HR_INFOTYPE_OPERATIONS   FM  for custom infotype too  or is there other way or other Standard FM to upload data for custom infotype  starting with 9000..etc.
    Points will be there for sure.
    Thanks
    Meeta & Roopa

    Thanks for quick response.
    my qns is can we use Standard FM like HR_INFOTYPE_OPERATIONS  for custom infotype too ?
    in my requirment  input will come from portal form and in background  Java Wd is going to use these FM  but i have this big  doubt can we use these standard FM for  uploading data in custom infotype as well or else is there any other way.. but for sure we can't use BDC and LSMW in this requirement .
    Thanks Meeta & Roopa

  • Credit master data for Customer

    Hi,
    I need solution for the below problem.
    Credit master data for Customer "X" is not maintained.
    Is there any possibility to get the information /Error message during sales order creation/Save for Customer "X" as Credit master data is not maintain.
    Information/Error message shouldd be:No credit master data maintain for Customer "X"
    Thanks for your help.
    Regards,
    Balaji.

    Hi
    You can use the followig user exit which will perform a check while saving the order.
    Take the help of your abaper to write a code to check if the credit master has been maintained for the customer before saving the order.
    Program,: MV45AFZZ
    USEREXIT_SAVE_DOCUMENT_PREPARE
    Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.
    The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.
    Regards
    Madhu

  • Company code data for custom replicated from CRM

    Hi,
    I am trying to default the company code data for a BP replicated from CRM as a customer but it is not working.
    How should this be done in CRM 7.0, ECC 6.
    I am have so far copied function module SAMPLE_INTERFACE_DE_BALE, added my own code and created the entry in table TBE34. But it doesn't work.  Is this correct or is there another method?
    regards
    Tim

    This is what we did wen we had a similar requirement...
    u2022     In the ECC create a FM u2018Z_USER_EXIT_BEFORE_SEND_TO_MWu2019.
    u2022     Register this function module for the CRM0_200 exit user in the ERP system.
    a.     Use Transaction SM30, table TPS34, to go to the maintenance of the modules. Here, enter the Z_USER_EXIT_BEFORE_SEND_TO_MWu2019 module for the CRM0_200 process.
    b.     Use Transaction SM30, table TBE24, to check whether the application you have selected (Product column in TPS34) is active.
    u2022     The FM will be triggered whenever a Sold gets successfully replicated from CRM to ECC system.
    a.     Check for the Object Class u2018BUPAu2019.
    b.     Check for the Object Name u2018CUSTOMER_MAINu2019.
    c.     If yes copy the BP GUID from the BAPIMTCS Structure.
    d.     Now call rfc FM ZLSD_BP_EXTRACT_FRM_GUID in CRM to get the BP number and Acc Group for the respective GUID.
    e.     Check if the ACC GRP is Z001.
    f.     If yes make a BDC call to transaction FD01 and update the Company Code data u2026. Recon. Account     110000
                                 Terms Of Payment ZN30       
                               for the  respective BP
    Note: we have recorded a BDC program to create the company code data.
    regards,
    Sameer Ahamad

  • Flag deletion date for customer

    Hello All,
    I have a requirement to get the flag deletion date for a customer on a sales organization level in a report, maintained in XD03/VD03 -
    Have written the below code.
    The problem with this is that the date is not fetched sometimes for a particular sales org.
    Could anybody suggest?
    Regards
    Varsha

    yes there is a field which stores the last date for a customer transaction
    Regards
    PS: Be clear in your question.

  • Create min(date) for Customer in BMM layer

    Hi guys,
    I need help in creating a first order date for a customer. I want to do this in BMM layer and use directly in reports.
    How should i create this?
    Any help Appreciated.

    I think its you sent me email with samilar Q.
    If you are doing in BMM you need to understand the schema
    assuming you got fact,day, custmer tables
    and these joined as star.
    you need to create a metric on fact as min(day.date) and set content tab to customer level
    for this you might have to map day dim to fact using fact source properties add day table.
    once you done as I said:
    just pull mindate metric in answers run it and check physical sql that should be like
    select min(date),cust_name from
    fact,day,customer
    where 2 joins goes
    group by cust_name
    Hope this helps, if helps mark

  • Source of data for custom tables in Oracle Apps

    Hi,
    Is there any way to find the source of data for the Custom tables. The source can be either any function, procedure, package or a trigger or any other process. The reason why I need to know about it is because we have some custom tables that are used by some custom Reports. Sometimes those reports comes out blank because the data in these custom tables is blank. So I need to know which processes are populating data in these custom tables. Any help would be really appreciated !!
    Thanks,
    KM

    Is there any way to find the source of data for the Custom tables. The source can be either any function, procedure, package or a trigger or any other process. The reason why I need to know about it is because we have some custom tables that are used by some custom Reports. Sometimes those reports comes out blank because the data in these custom tables is blank. So I need to know which processes are populating data in these custom tables. Any help would be really appreciated !!I do not think there is a direct way to find out the source of the data unless your custom processes are documented.
    You may enable AutditTrail (search the forum for links/docs) and see if this would help.
    Thanks,
    Hussein

  • Last Date for customer transaction

    Is there a SAP field which stores the last date for a customer transaction.
    Thanks.

    yes there is a field which stores the last date for a customer transaction
    Regards
    PS: Be clear in your question.

  • BW Master Data for Customer Exit Variable Reference

    Good day Experts,
    I have several queries that I would like to remove the hard coding of values on to prevent yearly maintenance. In these queries there are two conditions each condition is on different key figures that is amount by year.  The query is only to report on data that for the two amounts (separated by year) is greater than the specified values. I want to change the condition so the value is no longer hard coded so the query will role automatically as the time period changes. The year amount values that the condition will need to reference are not currently stored in our BW system. I would like to create master data that is maintained directly in the BW system for the amounts that a variable for the condition in the query can then access.
    I know it can be set up as master data and then referenced through a customer exit variable but when I set up the master data if I do the Amount as a key figure I cannot maintain the key figure value for the master data manually in BW, if I set the Amount up as a numeric characteristic then I canu2019t directly use a decimal. Am I missing something in the key figure setup then referencing the key figure as an attribute of the year value or do I need to do it as a characteristic and use a conversion routine or something for data manipulation?
    Can someone please give me some guidance to what the best way to do this is?
    The data necessary master data for storage in BW is the YEAR and a single dollar value:
    For Example:     
    Year          Amount
    2009           101.50
    2008          207.80
    2007          807.40

    I figured out that I can use an amount in the master data and maintain the amount manually as long as I use the amount with a currency instead of setting the currency in the key figure.

  • Propose item packaging data for customs declaration

    Hi All,
    My requirement is to update packaging data information as mentioned below in the item level of Customs declaration
    1. CNTNO  (Container Number)
    2. PGETY   (Package Type)      
    3. PGESU   (Number of Packages)
    4. PGEX1    (External Package Number)
    I am using BAdI for Default Data in Customs Shipment and Customs Declaration. I have checked all the methods in this BAdI, and the method which fits more close to my requirement is ITEM_LEGPGE_PROPOSE. But this method allows me to update 
    a. Package Tye
    b. Number of Packages
    How should I take care of updating other two fields : Container Number and External Package Number?
    Is there any other BAdI in GTS which takes care of it?
    I would really appreciate your inputs on this.
    Note:
    I am transfering this Packaging Data information from Packaging data tab present at item level in Transit document (Type: TRLOIM) to Packaging data tab present at item level Customs declaration (Type: CULOIM).
    The transit document is extended with items and packaging information through the receipt of an EDI message from Customs.
    Thanks & regards,
    Yogesh A Sharma

    When transfering the DATA to GTS the Program fills the API for the transfer, you can go and change the information there. For this you can use the BADI's that are found in the feeder System under
    SPRO / Sales & Distribution / Foreign Trade/Customs / SAP GTS Plugin / BADI for SAP Global Trade Services / Edit control for document transfer.
    As mentionned above you may replace the GU number by your container Number (Field EXT_ID) or you can try by filling EXT_ID2 / or use any of the additionnal Fields of the Declaration, or in GTS you have the possibility to add supplementary fields in to the declaration (but I never tried it up to now) in the API which is called at  "Perform api6800_csd_Synchronize" during the document transfer.
    Regards,
    Marc

  • Copy Data for Multiple Accounts from LegalApp to FinanceApp

    Hi Experts,
    I have two application, LegalApp and FinanceApp, wherein both have P&L Accounts but with different set of accounts. I have to copy the data of LegalApp P&L Accounts to my FinanceApp P&L Accounts. Some accounts in the FinanceApp have the same ID to that of the LegalApp so I don't have difficulty copying the data. I've used the Script Logic below:
    *DESTINATION_APP = FINANCE
    *ADD_DIM COSTCENTER=NO_COSTCNTR
    *ADD_DIM MARKET=NO_MARKET
    *ADD_DIM PRODUCT=NO_PRODUCT
    *ADD_DIM CUSTOMER=NO_CUSTOMER
    *RENAME_DIM ACCOUNT=COPAACCOUNT
    *SELECT(%LegalAcc%,"ID","ACCOUNT","IS_COPY='Y'")
    *XDIM_MEMBERSET ACCOUNT=%LegalAcc%
    *XDIM_MEMBERSET ENTITY=DMPI
    *XDIM_MEMBERSET DATASRC=<ALL>
    *WHEN *
    *IS *
    *REC(FACTOR=1)
    *ENDWHEN
    *COMMIT
    What I'm having trouble is copying data from LegalApp Accounts to FinanceApp Accounts whos ID's are not the same.
    Example: from PN0000000000 to COPA00000000. I've tried inserting the following logic but still nothing happened.
    *WHEN ACCOUNT.ID
    *IS "PN0000000000"
    *REC(ACCOUNT="COPA00000000")
    *ENDWHEN
    Hope you could help me.
    Thanks,
    Marvin

    Hi nilanjan,
    I've already tried that(see post above) and that doesn't seem to work.
    *DESTINATION_APP = FINANCE
    *ADD_DIM COSTCENTER=NO_COSTCNTR
    *ADD_DIM MARKET=NO_MARKET
    *ADD_DIM PRODUCT=NO_PRODUCT
    *ADD_DIM CUSTOMER=NO_CUSTOMER
    *RENAME_DIM ACCOUNT=COPAACCOUNT
    *SELECT(%LegalAcc%,"ID","ACCOUNT","IS_COPY='Y'")
    *XDIM_MEMBERSET ACCOUNT=%LegalAcc%
    *XDIM_MEMBERSET ENTITY=DMPI
    *XDIM_MEMBERSET DATASRC=<ALL>
    *WHEN ACCOUNT.ID
    *IS "PN0000000000"
    *REC(ACCOUNT="COPA00000000")
    *ENDWHEN
    *COMMIT
    I was wondering if I'm missing something in my statement.
    Thanks,
    Marvin

  • How to Load the Master Data for custom defined Z infoobjects?

    Hi Gurus,
    This is the requirement.
    Some screen enhancements has to be made by adding  new Custom fields( like two text boxes,eg Name and city ) in such a way if we enter data into that text box,that data value for both of the Enhancements has to be stored in some table.If this data is a master data,then how would I pull this master data into BW.
    Please someone throw some light on this problem.
    Lets say a Screen is enhanced with NAME and CITY with text text boxes.Let the user enters the value for NAME and CITY.Let them be stored under two different tables ZTAB1 and ZTAB2.How would I load this master data into custom Defined  Z infoobjects ZNAME AND ZCITY in BW.
    Please help me out.
    Thanks is Advance,
    Regards

    you can by creating generic datasources on thoase tables with Full load or delta.
    if the number entries is less.. you can try full load...
    if it is more... along with required fields...put date also as one fields. which needs to get date of execution of program or date of uploading to Tables. this will be useful build Delta Mechanism.
    all the best.
    Nagesh Ganisetti.

Maybe you are looking for

  • Updated iPhone 4 to latest ios7 and now my camera won't save any photos to my albums

    Updated my iPhone 4 to the latest ios7 and now my camera won't save photos to my albums? How do I fix that?

  • Handling exception in BULK COLLECT

    Hi Experts, For the following procedure if I send the existed employee number of emp table as input the procedure is executing successfully. But if I send the employee number as input which does not exist in the emp table the exection block does not

  • Best Workflow for Subtitles

    I'm editing footage that is in French and Creole, and I only speak English. Basically, I need a method of editing, where the footage already has the English subtitles on it, and I simply edit that footage in FCP. At the moment, I only have the raw fo

  • Addopt embedded LV to embedded Linux - what do I have to do?

    Hello. I'm a student doing my thesis work in sweden and I'm quite new to LV. I read the manual for porting emb.LV Runtime but don't have an idea where I have to start with. my platform is an microcomputer (NetDCU8) with an ARM 9 prozessor, touchscree

  • Random Number in kernel module

    Hi, I want to use random numbers in my driver. Is there any kernel API which can do this? I installed the patch 112438-01 for this purpose. This installs a char device /dev/random which while reading provides random number. But I am not able to open