Pop of prctr field in programm

hi,
i make a bdc using f-27 call trans.
there it is work fine but a problem in 3rd screen that at time of saving amount data at 3rd screen the (coding block name screen)----> are pop up in this the profit centre field are given as( whaildummy) this is given by me and then data is saved but i want that it directly save as we run the tcode f-27 in actual way witout codes this screen are not come but in my codes it will come at 3rd screen with popup and after given profit centre it save in company code.
plz help me i am wait for u'r rply plz
thanks
jayant
i am send the codes and flat file
report ZF27TEST
       no standard page heading line-size 255.
                    I N T E R N A L  T A B L E                       *
TYPES: BEGIN OF it_output,
       bldat(10)  TYPE  C,           "Document Date
       blart      TYPE  bkpf-blart,  "Document Type
       bukrs      TYPE  bkpf-bukrs,  "Company Code
       budat(10)  TYPE  C,           "Posting Date
       monat      TYPE  bkpf-monat,  "Period
       waers      TYPE  bkpf-waers,  "Currency
       xblnr      TYPE  bkpf-xblnr,  "Reference Field
       docid      TYPE  fs006-docid, "Document ID
       newbs      TYPE  rf05a-newbs, "Posting  Key
       newko      TYPE  rf05a-newko, "Account Code
       wrbtr(16)  TYPE  C,           "Amount in Document currency
       zfbdt(10)  TYPE  C,           "Baseline Date
       newbs2     TYPE  rf05a-newbs, "Account Key2
       newko2     TYPE  rf05a-newko, "Account code2
       wrbtr2(16) TYPE  C,           "Amount2
END OF it_output.
DATA lt_output  TYPE  it_output OCCURS 0 WITH HEADER LINE.
DATA it_bdc     LIKE  bdcdata OCCURS 0 WITH HEADER LINE.
DATA it_messtab LIKE  bdcmsgcoll OCCURS 1 WITH HEADER LINE.
                           D A T A                                   *
DATA: message TYPE string.
DATA: p_file1 type string.
         S E L E C T - O P T I O N S / P A R A M E T E R S           *
SELECTION-SCREEN BEGIN OF BLOCK block0 WITH FRAME.
PARAMETERS : p_file  LIKE rlgrap-filename OBLIGATORY.
SELECTION-SCREEN END OF BLOCK block0.
         A T  S E L E C T I O N - S C R E E N                        *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      static    = 'X'
      mask      = space
    CHANGING
      file_name = p_file.
               S T A R T - O F - S E L E C T I O N
START-OF-SELECTION.
  PERFORM  upload.
  PERFORM  bdc.
  PERFORM  write_message.
*&      Form  bdc
      text
FORM bdc.
  LOOP AT lt_output.
    READ TABLE lt_output INDEX 1.
perform bdc_dynpro      using 'SAPMF05A' '0100'.
perform bdc_field       using 'BDC_CURSOR' 'RF05A-NEWKO'.
perform bdc_field       using 'BDC_OKCODE' '/00'.
perform bdc_field       using 'BKPF-BLDAT' lt_output-bldat.
perform bdc_field       using 'BKPF-BLART' lt_output-blart.
perform bdc_field       using 'BKPF-BUKRS' lt_output-bukrs.
perform bdc_field       using 'BKPF-BUDAT' lt_output-budat.
perform bdc_field       using 'BKPF-MONAT' lt_output-monat.
perform bdc_field       using 'BKPF-WAERS' lt_output-waers.
perform bdc_field       using 'BKPF-XBLNR' lt_output-xblnr.
perform bdc_field       using 'FS006-DOCID' lt_output-docid.
perform bdc_field       using 'RF05A-NEWBS' lt_output-newbs.
perform bdc_field       using 'RF05A-NEWKO' lt_output-newko.
perform bdc_dynpro      using 'SAPMF05A' '0302'.
perform bdc_field       using 'BDC_CURSOR' 'RF05A-NEWKO'.
perform bdc_field       using 'BDC_OKCODE' '/00'.
perform bdc_field       using 'BSEG-WRBTR' lt_output-wrbtr.
*perform bdc_field       using 'BSEG-ZTERM' 'V030'.
*perform bdc_field       using 'BSEG-ZBD1T' '30'.
*perform bdc_field       using 'BSEG-ZFBDT' '08.04.2008'.
perform bdc_field       using 'RF05A-NEWBS' lt_output-newbs2.
perform bdc_field       using 'RF05A-NEWKO' lt_output-newko2.
perform bdc_dynpro      using 'SAPMF05A' '0300'.
perform bdc_field       using 'BDC_CURSOR' 'BSEG-WRBTR'.
perform bdc_field       using 'BDC_OKCODE' '=BU'.
perform bdc_field       using 'BSEG-WRBTR' lt_output-wrbtr2.
perform bdc_field       using 'DKACB-FMORE' 'X'.
CALL TRANSACTION 'F-27' USING it_bdc mode 'A'
                           MESSAGES INTO it_messtab.
    CLEAR it_bdc. REFRESH it_bdc.
  ENDLOOP.
ENDFORM.                    "bdc
*&      Form  write_message
      text
FORM write_message.
  LOOP AT it_messtab .
    CLEAR message.
    CALL FUNCTION 'FORMAT_MESSAGE'
      EXPORTING
        id   = sy-msgid
        lang = 'EN'
        no   = sy-msgno
        v1   = sy-msgv1
        v2   = sy-msgv2
        v3   = sy-msgv3
        v4   = sy-msgv4
      IMPORTING
        msg  = message.
    CASE it_messtab-msgtyp.
      WHEN 'S'.
        WRITE:/ message.
        CLEAR message.
      WHEN 'E'.
        FORMAT COLOR 6 ON.
        WRITE:/ message.
        CLEAR message.
    ENDCASE.
  ENDLOOP.
ENDFORM.                    "write_message
      FORM BDC_DYNPRO                                               *
-->  PROGRAM                                                       *
-->  DYNPRO                                                        *
FORM bdc_dynpro USING program dynpro.
  it_bdc-program  = program.
  it_bdc-dynpro   = dynpro.
  it_bdc-dynbegin = 'X'.
  APPEND it_bdc.
  CLEAR it_bdc.
ENDFORM.                    "BDC_DYNPRO
      FORM                                                          *
FORM bdc_field USING fnam fval.
  it_bdc-fnam = fnam.
  it_bdc-fval = fval.
  APPEND it_bdc.
  CLEAR it_bdc.
ENDFORM.                    "BDC_FIELD
*&      Form  upload
      text
-->  p1        text
<--  p2        text
FORM upload .
p_file1 = p_file.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename                      = p_file1
   FILETYPE                      = 'DAT'
  tables
    data_tab                      = lt_output
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.                    " upload
F O R M A L   E N D - O F - P R O G R A M                           *
flat file is
30.04.2008     DA     8601     30.04.2008     4     CNY     REF1           31     90001     500     30.04.2008     40     3990000002     500
in between REF1 and pstky 31 there is blank tab for DOCID
thanks

Hello Suresh,
The pop-up comes due to an inconsistent settings maintained in SE54. There is a flag called 'Compare Flag', which I am assuming, has been set to Automatically Adjustable in SE54.
But beyond this, you have manually adjusted the screen parameters, which contradict with the Compare flag settings.
Goto SE54, and change the flag to Adjustable in Dialog and save the SE54.
The pop-up should be eliminated.
Regards,
Rekha

Similar Messages

  • I have a packardbell laptop with photoshop elements 8 installed from new. I have used it on several occasions but I cannot get it to run now.  When I open a photo using elements the Adobe box pops up saying that the programme has unexpectedley quit? can a

    I have a packardbell laptop with photoshop elements 8 installed from new. I have used it on several occasions but I cannot get it to run now.  When I open a photo using elements the Adobe box pops up saying that the programme has unexpectedley quit? can anyone help me please as I have several photos to edit before the end of this month. Many thanks for any help

    The "restore disk" is built into the Mac. See About Recovery.
    Need more specifics about what error messages you got while installing Adobe Flash.
    However, you can almost avoid Flash altogether by setting YouTube to play the HTML5 version instead.
    Click the Try something new! link at the bottom of the YouTube page.
    I don't know about the sound issue. Might be hardware as you think. Try other headphones to check.

  • UseKOSTL & PRCTR fields from Security point of view?

    Hi,
    Related to the one I posted few days back. Not sure if I could open the same one again thus creating a new one. Apologies.
    From that post it's clear that K_CCA replaces K_REPO_CCA. Right?
    Now I would like to know, what about other 'cost centre' specfic objects e.g K_CSKS? Can't K_CCA and K_ORDER handle all sort of auth for cost centres? If not then I would like to know which other cost centre specfic obejcts are still valid in ECC and thus need to be maintained. If there would be some then in addition to RESPAREA perhaps KOSTL will also need to be promoted to org level.
    Similaraly please throw some light on do we still have some PRCTR dependent objects in use?
    Gill

    Nice rant.. 
    Your question is a bit vague though and does not disclose how much you have worked out for yourself already, and the answer is quite a long one (so I suspect folks are shy of writing a book for you...).
    There are some authorative SAP notes on the topic and there is a legacy problem in table TSTCA and some dummy coding checks. What is also a bit confusing is that the concepts for the switch from K_REPO* objects is different to that of K_CSK* objects.
    Perhaps if you could describe how it works and what you have a problem with then a discussion and some good advise will follow.
    Cheers,
    Julius

  • IPad mini freezes when keyboard pops on password field

    Hi,
    Is it just me? When in a form it's turn for the password field (registrations take two of these -.-), it usually stops the iPad (iOS 7) and you have to wait in order to start typing on the keyboard, or you type and then it writes it down pretty fast because you return from the "lag".
    Please tell me or help! Thank you

    On my iPad mini with iOS7 it usually happens with the first password field, if there's a second box it loads faster.

  • Pop to select fields

    hai,
    parameters: table.
    ex: table = vbak.
    i want to get the field name and desc of it . from that table
    we all see in abap query .
    when we enter vbak
    it gives fields name to select
    do u have any function module for selecting fields from resptive table
    plz urgent.

    hi
    use the function module
    <b>POPUP_TO_DISPLAY</b>
    IT WILL WORK FOR U DEFINITELY
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>
    Message was edited by:
            ravish goyal

  • How do i stop firefox memorizing information i have typed in fields and popping up when i begin to type again?

    when you begin typing, just has i did upon registering, when i began to type my email for example it popped up below field so i could select it, i suppose it is easy for some things when your typing alot of the same information but how do you control it!

    See this - [http://support.mozilla.com/en-US/kb/Form+autocomplete]

  • Functions in Calculation and Summary Fields

    Hi,
    I'll give a bit of background to my situation before describing the advice I'm looking for here.
    I am experienced Mac user and I have used AW a fair bit in the past, but since I've been working in a job which has Windows machines and uses a complex custom-written relational database for its main tool, I use it less often than I did, so I am a little rusty. It is the shortcomings of the complex relational database (which I do not have admin rights to) that has led me back to AW and its database module.
    Essentially, I am a complaints investigator, and the relational database provided by my employer is used to keep track of correspondence and various metadata associated with the investigation of the complaint. However, although it is called a Complaints Management System (CMS), it does not help me manage my caseload very well. I've previously tried to create an Excel spreadsheet that would help me manage my work, but it is not a database (or I am not sufficiently skilled with Excel) and I cannot get it to provide me with what I want.
    So, my problems.
    I have complaints (cases) assigned to me to investigate. These cases have differing priorities, which means differing time limits for completion of the investigation. The priorities and time limits are set out below:
    J (jurisdictional issues) - time limit = 1 month
    D (discretion not to investigate) - time limit = 3 months
    1 - time limit = 4 months
    2 - time limit = 6 months
    3 - time limit = 12 months
    The priority field in my AW DB is currently a 'pop-up menu' field, but I could change this to another type if this would be advisable.
    I have a date-type field in which I enter the date the complaint was received. I have an calculation-type field in which I calculate the age of the complaint using the function:
    =(NOW()-'DateReceived')
    This returns an age in days, which I input into a separate calculation field that divides the result of 'age in days' by 30, to give a rough approximation of the number of months old the complaint is (If AW has an equivalent to Excel's 'workdays' variable, I'd love to hear about it). This latter field is the one that I display in the main data entry view of the database.
    Given the priority assigned to the complaint, and the age of it, I am either 'On Target' or 'Over Target' for completing the investigation.
    Each month I have a meeting with my manager to review progress, and since the reports that can be extracted from the CMS are not very useful for this purpose, I want my AW database to help me generate reports that can form the basis of discussion in these meetings.
    Part A of My Query
    At present, I have a manually operated field, in the form of a pop-up menu, to indicate for each record (complaint) whether I am over or on target for completion of the investigation. I would like to make this a calculated field, so that the database keeps track of this for me automatically. Unfortunately, I'm either too dense, or not good enough with the syntax of AW functions, to be able to write a function which essentially does the following:
    IF 'Priority'=1 AND 'Age in Months'<4 THEN 'On Target' ELSE 'Over Target'
    - and then repeats that for the other priority possibilities.  It seems likely that the 'IF' function is what I'm after, but I haven't been able to get the syntax right to combine 'Priority' and 'Age in Months' in the format spelt out in the AW help, which is:
    =IF(logical,true value,false value)
    Getting the syntax of one part of this function right would be a good start. However, I suspect that I have a larger problem, in that I have 5 priorities to measure against and I need the overall calculation (that produces the 'On Target' or 'Over Target' results) to report in one result field. This means nesting the functions that look at the 5 priorities and 5 age limits. I've tried and failed to get the syntax of such nesting right, so advice on this is doubly welcome.
    Unfortunately, I have a sneaking suspicion that unless the answer is much more concise than I imagine it to be, there will be an additional problem: AW appears to have a character limit for the length of a function string in a calculation field which may be too short for my needs.  If you think this is an issue but that it can be solved through the use of intermediate fields (which don't need to be displayed in the main 'data entry' layout), I'm happy to give that a shot.
    Part B of my Query
    Even if the problem above cannot be solved, and I have to manually enter whether a complaint is 'On Target' or 'Over Target', I have a separate but related question for the reports I have to present to my manager.
    On these reports, I would like to have a summary at the top of the first page (in a grand-summary part, I assume) which gives a count of how many complaints are 'On Target' or 'Over Target' for each priority. Below that is a sub-summary part, ordered by the type of action that must next be taken in the investigation. (Getting that right may be a subject of a separate post at a later date.) The report must, of course, only report on those complaints that are still being investigated ('open complaints') and not those which have been completed ('closed complaints'). So, I need a function in a summary field which will present an accurate count of the number of open complaints that are 'on target' for priority J (with separate summary fields that do the same thing for priorities D, 1, 2, and 3), and a separate set of summary fields that will present a count of open complaints that are 'over target' for each type of priority.
    It might look a bit like this table below, with figures from the summary fields populating the cells in the third row:
    Priority
    J
    D
    1
    2
    3
    In / Out of Target
    In
    Out
    In
    Out
    In
    Out
    In
    Out
    In
    Out
    Number of Complaints
    My guess is that it is easier to have the summary field simply count all the complaints that are on or over target for a given priority, regardless of whether they are open or closed, since the report could be based on a saved search (match) which strips out all closed complaints. But if I'm off-beam with that idea, I'm happy to have another way of cracking this nut.
    Many thanks in advance to any Community members that take the time to try and help me with this.
    Andrew
    PS Cross posted in AWUG forum too, if people prefer to answer there.

    Hi Andrew,
    Part A:
    I've done some restating of the question, and distributed the calculations among several fields, not all of which need to be included on the visible layout. Other than formatting the Date fields and moving the 'Completed Date' field and its label, I've left this in the default "Layout 1" produced by AppleWorks.
    Field List:
    Priority: Popup menu with six items: 00, J, D, 1, 2, 3  Defaults to 00
    TL (time limit in months): Calculation:  CHOOSE('Priority',0,1,3,4,6,12)
    Received: Date. Option: Automatically insert today's date (ie. Date Record created) (may be edited)
    Target Date: Calculation:
    DATE(YEAR('Received')+INT(MONTH('Received')+'TL')/12,MOD(MONTH('Received')+'TL', 12),DAY('Received'))
    Remaining (Days): Calculation: INT('Target Date'+1-NOW())  (see revision below)
    Completed: Checkbox. Set default value to Unchecked.
    Completed Date: Date: Entered manually
    OnTarget: Calculation: IF('Completed',IF('Completed Date'<'Target Date',"On Target","Over"),IF(INT(NOW())>'Target Date',"Over","On Target"))
    The On Target field shows the current status of the case while still open, and the state on the closing date when it was closed.
    Having done that, I was unhappy with the Remaining field continuing to calculate an ever larger negative number after the case had been closed. Hence this revision below:
    Remaining: Calculation: IF('Completed','Target Date'-'Completed Date',INT('Target Date'+1-NOW()))
    Shows the number of days remaining while the case is open, the days remaining at completion if the case has been marked Completed and the completion date entered.
    Rsults (and some further formatting of the Layout) below.
    Part B:
    You will need Subsummary parts when sorted on Completed and on On Target. Fields can appear on  a Layout only once, so each subsummary part will need a separate Summary type field for each field to be summarized.
    Regards,
    Barry

  • ALV Report displays space instead of '0.00' for qty field. why?

    Hello friends,
    I am facing a problem to display 0 value for the field
    field - ZZQTY (Predefined Type at Domain level)
         QUAN 21,2
    In the program I am clearing the field and I can see its value as 0.00 while debugging.
    As soon as field ZZQTY is displayed on ALV, it becomes blank (Space).
    My requirement is to display '0.00' on ALV report.
    What should I do?
    Regards,
    Ronny Hanks

    Hello
    Search for
    LS_FIELDCAT-NO_ZERO = 'X'.
    for this field in programm and comment this.

  • How to add a custom field to the "Projects" page "Group by" data menu list

    Hi,
    I'm deploying Project Online and I want to group projects by a custom field on the "Projects" page. Currently I can see options for group by Project Name, Start, Finish, % complete etc. I would like to group by a custom field of programme name
    which is filled in on the Project Details form.
    I can create the enterprise field etc, however I can't work out how to make the new enterprise field appear in this list. Or am I barking up the wrong tree and should be creating separate Project Types for each programme?
    Any help an advise greatly appreciated.
    Regards,
    Conrad

    Hello, add the programme field to the Project Center view then it will be available to group by. Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Add field 'asset' in sales order line item account assignment tab

    Hi,
    I would like to add the following field: 'asset' in sales order line item account assignment tab.
    I can enter order, or wbs, but not Asset.
    How can I make this field visable?
    Anybody?
    thanks,
    klundert
    Edited by: Eric Van Zundert on Oct 30, 2010 8:43 AM

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • Obtain list of fields for marketing attributes against BP

    Hi All,
    I'm working on a data extraction routine for BP data and need to be able to allow the user to select which fields will be extracted and added to the output file.  I've got some standard code that so far uses a data dictionary structure to create a pop up of fields with checkboxes so the user can select which fields to output - it uses FM DDIF_FIELDINFO_GET to simply list all fields for a given structure.
    My requirement is to extend this so that all possible marketing attributes against business partners are also available for selection in the field list.  I guess to do this I need to find a way of reading all fields defined for any BP type attribute sets.
    Does anyone know of any FM's that do this or have any ideas around tables I can read?
    Note: I'm after the atttribute names not the actual values.
    Thanks,
    Gareth.

    Hi Gareth
    I think the function modules in group CRM_MKTPFTPL_OW are really valuable.
    Maybe you could call CRM_MKTPFTPL_GETLIST and then call CRM_MKTPFTPL_READ_CHR for each one.
    They aren't called by Pratik's FM's though .
    Cheers
    Dom

  • Fetch GLPCA-SPRCTR instead of csks-PRCTR - Urgent

    Hi All,
    i have a report which dispalys a column profit center (CSKS-PRCTR).
    My functional wants to replace this field (CSKS-PRCTR) with GLPCA-SPRCTR.
    I tried with various option but not successful. Any help would be highly appreciated.
    Thanks,
    Senthil
    Message was edited by:
            senthil kumar

    Hi,
    The problem is that i am getting multiple records, the input given is  controlling area, company code, date, plant, account number and functional area.
    I am pasting my code here
    start-of-selection.
      perform get_data.
      perform update_profit_center.                           "+D01K962014
      perform produce_output.
    *&      Form  GET_DATA
    form get_data.
      clear: t_month, t_days, t_year, t_date_from, t_date_to, t_line.
    Month of Period to Analyze
      t_month = p_perio2+1(2).
    Year of Period to Analyze
      t_year = p_gjahr2.
    Get number of days of Period to Analyze
      call function 'NUMBER_OF_DAYS_PER_MONTH_GET'
           exporting
                par_month = t_month
                par_year  = t_year
           importing
                par_days  = t_days.
    Put dates together for select from AFRU
      concatenate p_gjahr1 p_perio1+1(2) '01' into t_date_from.
      concatenate t_year t_month t_days into t_date_to.
    Select Process Orders only for Dates specified
      select aufnr into table itab_aufnr
        from afru
       where budat ge t_date_from
         and budat le t_date_to
         and werks in s_werks.
    Sort and delete duplicates from Orders table
      sort itab_aufnr.
      delete adjacent duplicates from itab_aufnr.
      describe table itab_aufnr lines t_line.
      if t_line gt 0.
    Now select all other data with regard to Orders in Orders table
      select carbpl aauart awerks aaufnr bmatnr clmnga csptag "vornr
                                                     c~erdat  "+D01K962077
                                                      fmaktx jktext
              into table itab
       from ( ( ( ( ( ( (
                      aufk as a inner join afpo as b on baufnr = aaufnr )
                              inner join s022 as c on caufnr = baufnr and
                                                      cmatnr = bmatnr and
                                                      cwerks = bpwerk )
                              inner join makt as f on fmatnr = bmatnr )
                              inner join tkkap as g on gkokrs = akokrs )
                              inner join tkv09 as h on hkokrs = akokrs )
                              inner join crhd as i on iarbpl = carbpl )
                              inner join crtx as j on iobjty = jobjty and
                                                      iobjid = jobjid )
               for all entries in itab_aufnr
               where a~aufnr eq itab_aufnr-aufnr
                 and a~auart in s_auart
                 and a~werks in s_werks
                 and c~arbpl in s_arbpl
                 and g~kokrs in s_kokrs
                 and g~versa in s_versa
                 and h~awvrs in s_awvrs.
        sort itab by aufnr matnr.
        delete adjacent duplicates from itab comparing aufnr matnr.
        loop at itab.
          concatenate 'OR' itab-aufnr into lr_objnr-low.
          lr_objnr-sign = 'I'.
          lr_objnr-option = 'EQ'.
          append lr_objnr.
        endloop.
        sort lr_objnr.
        delete adjacent duplicates from lr_objnr.
        call function 'KKR_COOBJECT_VALUES_READ'
             exporting
                  i_kokrs              = s_kokrs-low
            I_OBJNR              =
                  i_gjahr_von          = p_gjahr1
                  i_gjahr_bis          = p_gjahr2
                  i_perio_von          = p_perio1
                  i_perio_bis          = p_perio2
                  i_nur_belast         = ' '
            I_KATYP              =
            I_NUR_P_I            =
            I_NUR_P_I_S          =
                  i_kontrollkosten     = ' '
                  i_read_owaer         = ' '
                  i_pvers              = '000'
                  i_ivers              = '000'
                  i_svers              = s_awvrs-low
                  i_avers              = s_versa-low
                  i_bewsicht           = '0'
            I_CONV_UNITS         = 'X'
       IMPORTING
            E_KENNZAHLEN         =
             tables
                  rng_objnr            = lr_objnr
            RNG_WRTTP            =
            RNG_BEKNZ            =
                  t_kennzahlen         = lt_keyfigures
            T_KKBC               =
            T_KKROBJ             =
            T_KKBOB              =
             exceptions
                  no_kokrs_set         = 1
                  no_input_data        = 2
                  different_input_data = 3
            OTHERS               = 4
      endif.
    endform.                    " GET_DATA
    *&      Form  update_profit_center
          update profit center for each line item in itab
    form update_profit_center.
      data: lv_objid like crhd-objid,
            lv_kokrs like crco-kokrs,
            lv_kostl like crco-kostl,
            lv_prctr like csks-prctr.
      field-symbols: <fs_itab> like line of itab.
    update profit center into itab - alv output table
      loop at itab assigning <fs_itab>.
        clear lv_objid.
      read resource/work center id of resource/work center of a plant
      -CRHD
        select objid into lv_objid
          from crhd
         where objty = 'A'              and   " A - work center
        use order creation date instead of period to analyse"+D01K962077
              begda <= <fs_itab>-sptag and                  "+D01K962077
              endda >= <fs_itab>-sptag and                  "-D01K962077
               begda <= <fs_itab>-erdat and                   "+D01K962077
               endda >= <fs_itab>-erdat and                   "+D01K962077
               arbpl =  <fs_itab>-arbpl and   " resource/work center
               werks =  <fs_itab>-werks.      " plant
          exit.
        endselect.
        clear: lv_kokrs,lv_kostl.
        if not lv_objid is initial.
        read cost center using work center id and date to analyse field to
        validate from and to valid periods- CRCO
          select kokrs kostl
            into (lv_kokrs,lv_kostl)
            from crco
           where objty =  'A'             and
                 objid =  lv_objid        and
        use order creation date instead of period to analyse"+D01K962077
                endda >= <fs_itab>-sptag and                "-D01K962077
                begda <= <fs_itab>-sptag.                   "-D01K962077
                 endda >= <fs_itab>-erdat and                 "+D01K962077
                 begda <= <fs_itab>-erdat.                    "+D01K962077
            exit.
          endselect.
          if sy-subrc eq 0.
            clear lv_prctr.
          read profit center of cost center that belongs to a date to
          analyse period - from CSKS
    <b>*** This quesry needs to be replaced with GLPCA table</b>
            select <b>prctr into lv_prctr</b>
              from csks
             where kokrs = lv_kokrs and          " Controlling Area
                   kostl = lv_kostl and          " Cost Center
        use order creation date instead of period to analyse"+D01K962077
                  datbi >= <fs_itab>-sptag and              "-D01K962077
                  datab <= <fs_itab>-sptag.                 "-D01K962077
                   datbi >= <fs_itab>-erdat and               "+D01K962077
                   datab <= <fs_itab>-erdat.                  "+D01K962077
              exit.
            endselect.
            if sy-subrc eq 0.
            update profit center to itab
              <fs_itab>-prctr = lv_prctr.        " Profit Center
            endif.
          endif.
        endif.
      endloop.
    endform.                    " update_profit_center
    Senthil.
    Message was edited by:
            senthil kumar
    Message was edited by:
            senthil kumar

  • Update of sigle field

    I m coding a GL debit /Credit report.
    i m collection data from bseg and then compare the record in FAGLFLEXA (For inter unit transaction prctr = pprctr,if false then delete record from internal table) based on the profit center.
    I m updating prctr field in internal table with bupla or secco fields (whichever is available) if prctr is initial.
    But  I found number of records having none of above (prctr, bupla, secco) entered.
    mannual modification to thousands of entries will be tedious  . SO I thought if somehow I could modify records with my programs using BDC.
    Could anyone help me how to do this?.
    Regards

    hi ,
    Try to modify the internal table with 'TRANSPORTING FIEDLS  LIST ' statment.
    while deleting the internal table use the index.
    Regards,
    S.Chaitanya.

  • Pop Up windows in Reader XI

    I am running Reader XI and there is a problem with pop-up windows within the programme. The printer pop-up window comes up with all the buttons but no text and any other pop-ups are at such a large resolution that they are impossible to manage and read.

    That's in your DPI/PPI settings
    Edit>Preferences

  • APEX pop-up textarea on form

    I am trying to create a "link" on a tabular form to an Impromptu pop-up for a textarea. I was using Dan McGhan's guide on his blog Dan McGhan's Oracle Blog: Popup In Report. Admittedly the explanation is a few years old. So maybe it does not work any longer.
    It does display the pop-up correctly. But it does not update the database column. Nor does a value appear associated with the hidden field. I believe I have the code customized correctly. The ID of the column is F02. And the item for the text area is F10 in my case.
    I've set it up here. The credentials are DEMO/DEMO. Thanks.
    https://apex.oracle.com/pls/apex/f?p=24670:1:12769172543530:::::  

    I checked using firebug. If i type something and clicked ok button in pop-up window means It (the value) should populate into the hidden item(f10) in your case. but the hidden item is not getting populated. I am not able to login into your workspace as a developer. Can plz check, how you are populating the value from pop-up text field to hidden item?..
    If the value populated in hidden item then definitely it will store in database column.
    Also i checked in Dan McGhan's example for this using firebug. There the value is populated to hidden item. I think you missed something for populating the hidden item. Plz check.
    If you can share your workspace details as a developer.
    Thanks
    Lakshmi

Maybe you are looking for