Changed PO

Hi all,
In the below program have taken Purchase order 3000000535 as an example. It was intially ordered on 20.06.2006. I have changed it on 25.06.2006. When I run below test program with Date 25.06.2006 it is not picking this purchase order number. But if I run with old date when Purchase order was originally created it is taking. i don’t want to capture date on previous date.
To have Purchase order picked up not only from EKKO-AEDAT = Sys Date but also check EKPO-AEDAT = Sys Date and capture all the data.
REPORT ztest_program .
TABLES : ekko,ekpo.
*File Header Record
DATA : lv_record_identifier(3) TYPE c VALUE '100',
       lv_sp_id(3) TYPE c VALUE '16',
       lv_sp_name(60) TYPE c VALUE 'CLICK',
       lv_creation_date(8) TYPE c,
       lv_creation_time(6) TYPE c,
       lv_file_format(3) TYPE c VALUE 'HELLO',
       lv_file_version(3) TYPE c VALUE '1.1'.
*Organization Header Record
DATA : lv_record_identifier1(3) TYPE c VALUE '110',
       lv_org_id(4) TYPE c VALUE '1744',
       lv_org_name(60) TYPE c VALUE 'HAI'.
*for vrtkz field
DATA : v_vrtkz TYPE c.
DATA : v_knttp(25) TYPE c.
*for conversion to character type
DATA : v_netwr(13) TYPE c,
       v_menge(13) TYPE c,
       v_vproz(10) TYPE c.
*for record count
DATA : lv_record_count TYPE i.
*for tab delimiter
CONSTANTS : c_tab TYPE x VALUE '09'.
*for total value
DATA : v_total1 TYPE p DECIMALS 2,
       v_total(15) TYPE c.
*output string
DATA : output_string1 TYPE string,
       output_string2 TYPE string,
       output_string3 TYPE string,
       output_string4 TYPE string,
       output_string5 TYPE string,
       output_string6 TYPE string.
*for selection based on creation date and document type
SELECT-OPTIONS : so_aedat FOR ekko-aedat,
                 so_bsart FOR ekko-bsart.
*File Detail Record
*Purchasing Document Header
DATA : BEGIN OF lt_ekko OCCURS 0,
         lv_record_identifier2(3) TYPE c,
         lv_org_id1(4) TYPE c,
         ebeln LIKE ekko-ebeln,           " Purchasing Document Number
         aedat LIKE ekko-aedat,
         bsart LIKE ekko-bsart,           " Purchasing document type
         lifnr LIKE ekko-lifnr,           " Vendor's account number
         zsrm_pcnum LIKE ekko-zsrm_pcnum, " SRM: Procurement card number
         bukrs LIKE ekko-bukrs,           " Company Code
         name1 LIKE lfa1-name1,                             " Name 1
       END OF lt_ekko.
*Purchasing Document Item
DATA : BEGIN OF lt_ekpo OCCURS 0,
         ebeln LIKE ekpo-ebeln,   " Purchasing Document Number
         ebelp LIKE ekpo-ebelp,   " Item Number of Purchasing Document
         aedat LIKE ekpo-aedat,
         vrtkz LIKE ekpo-vrtkz,   " Distribution indicator for multiple
                                  " account assignment
         afnam LIKE ekpo-afnam,   " Name of requisitioner/requester
         txz01 LIKE ekpo-txz01,   " Short text
         netwr LIKE ekpo-netwr,   " Net order value in PO currency
         menge LIKE ekpo-menge,   " Purchase order quantity
         knttp LIKE ekpo-knttp,   " Account assignment category
         mwskz TYPE ekpo-mwskz,   " Tax on sales/purchases code
       END OF lt_ekpo.
*Account Assignment in Purchasing Document
DATA : BEGIN OF lt_ekkn OCCURS 0,
         ebeln LIKE ekkn-ebeln,    " Purchasing Document Number
         ebelp LIKE ekkn-ebelp,    " Item Number of Purchasing Document
         zekkn LIKE ekkn-zekkn,    " Sequential number of account
                                   " assignment
         vproz LIKE ekkn-vproz,    " Distribution percentage in the case
                                   " of multiple acct assgt
         sakto LIKE ekkn-sakto,    " G/L account number
         kostl LIKE ekkn-kostl,    " Cost Center
         ps_psp_pnr LIKE ekkn-ps_psp_pnr, " Work breakdown structure
                                          " element (WBS element)
         aufnr LIKE ekkn-aufnr,    " Order Number
       END OF lt_ekkn.
*Scheduling Agreement Schedule Lines
DATA : BEGIN OF lt_eket OCCURS 0,
         ebeln LIKE eket-ebeln,  " Purchasing Document Number
         ebelp LIKE eket-ebelp,  " Item Number of Purchasing Document
         eindt LIKE eket-eindt,  " Item delivery date
       END OF lt_eket.
*DATA: lt_distinct_ekpo LIKE lt_ekpo OCCURS 0 WITH HEADER LINE.
DATA : lt_ekko_temp LIKE lt_ekko OCCURS 0 WITH HEADER LINE.
*Organization Footer Record
DATA : lv_record_identifier3(3) TYPE c VALUE '130',
       lv_org_id2(4) TYPE c VALUE '1744',
       lv_org_name1(60) TYPE c VALUE 'GNBC-UNIV-1',
       lv_detail_record_count(5) TYPE c.
*File Footer Record
DATA : lv_record_identifier4(3) TYPE c VALUE '140',
       lv_extract_record_count(5) TYPE c,
       lv_file_record_count(5) TYPE c.
*for date and time format
lv_creation_date = sy-datum.
lv_creation_time = sy-uzeit.
*concatenate for File Header Record
CONCATENATE lv_record_identifier
            lv_sp_id
            lv_sp_name
            lv_creation_date
            lv_creation_time
            lv_file_format
            lv_file_version
            INTO output_string1
    SEPARATED BY c_tab.
WRITE :/ output_string1.
*concatenate Organization Header Record
CONCATENATE lv_record_identifier1
            lv_org_id
            lv_org_name
            INTO output_string2
    SEPARATED BY c_tab.
WRITE :/ output_string2.
*selection of fields
SELECT a~ebeln
       a~bedat
       a~bsart
       a~zsrm_pcnum
       a~lifnr
       a~bukrs
       b~name1
       INTO CORRESPONDING FIELDS OF TABLE lt_ekko
       FROM ekko AS a INNER JOIN lfa1 AS b
       ON alifnr = blifnr
       WHERE ( aaedat IN so_aedat OR aaedat = sy-datum )
       AND a~bsart IN so_bsart
       AND ( absart = 'ECDP' OR absart = 'ECPO' )
       AND a~zsrm_pcnum IS not NULL.
IF NOT lt_ekko[] IS INITIAL.
  SELECT ebeln
         ebelp
         aedat
         vrtkz
         afnam
         txz01
         netwr
         menge
         knttp
         mwskz
         FROM ekpo
         INTO TABLE lt_ekpo
         FOR ALL ENTRIES IN lt_ekko
         WHERE ebeln = lt_ekko-ebeln
         AND ( aedat IN so_aedat OR aedat = sy-datum ).
ENDIF.
IF NOT lt_ekpo[] IS INITIAL.
  SELECT ebeln
         ebelp
         zekkn
         vproz
         sakto
         kostl
         ps_psp_pnr
         aufnr
         FROM ekkn
         INTO TABLE lt_ekkn
         FOR ALL ENTRIES IN lt_ekpo
         WHERE ebeln = lt_ekpo-ebeln
         AND ebelp = lt_ekpo-ebelp.
  SELECT ebeln
         ebelp
         eindt
         FROM eket
         INTO TABLE lt_eket
         FOR ALL ENTRIES IN lt_ekpo
         WHERE ebeln = lt_ekpo-ebeln
         AND ebelp = lt_ekpo-ebelp.
ENDIF.
*LOOP AT lt_ekko.
READ TABLE lt_ekpo WITH KEY ebeln = lt_ekko-ebeln.
IF sy-subrc = 0.
   MOVE lt_ekko TO lt_ekko_temp.
   APPEND lt_ekko_temp.
ENDIF.
*ENDLOOP.
*FREE lt_ekko.
*MOVE lt_ekko_temp[] TO lt_ekko[].
*FREE lt_ekko_temp.
*for specifying the record length
*describe table lt_ekko LINES record_count.
lv_record_count = sy-dbcnt.
lv_detail_record_count = lv_record_count.
lv_extract_record_count = lv_record_count - 2.
lv_file_record_count = lv_record_count + 4.
*concatenate for File Detail Record
LOOP AT lt_ekko.
  CLEAR v_total1.
  LOOP AT lt_ekpo WHERE ebeln = lt_ekko-ebeln.
    v_total1 = v_total1 + lt_ekpo-netwr.
    MOVE v_total1 TO v_total.
    SHIFT v_total LEFT DELETING LEADING space.
  ENDLOOP.
  LOOP AT lt_ekpo WHERE ebeln = lt_ekko-ebeln.
    READ TABLE lt_ekkn WITH KEY ebeln = lt_ekpo-ebeln
                                ebelp = lt_ekpo-ebelp BINARY SEARCH.
    READ TABLE lt_eket WITH KEY ebeln = lt_ekpo-ebeln
                                ebelp = lt_ekpo-ebelp BINARY SEARCH.
*clearing zeros for integer values
    CLEAR : v_netwr,v_menge,v_vproz.
    v_netwr = lt_ekpo-netwr.
    SHIFT v_netwr LEFT DELETING LEADING space.
    v_menge = lt_ekpo-menge.
    SHIFT v_menge LEFT DELETING LEADING space.
for vrtkz field
    IF lt_ekpo-vrtkz EQ '1' OR lt_ekpo-vrtkz EQ '2'.
      MOVE 'M' TO v_vrtkz.
    ELSE.
      MOVE 'S' TO v_vrtkz.
    ENDIF.
for vproz field
    IF lt_ekkn-vproz EQ '0.0'.
      MOVE '100.0' TO v_vproz.
    ELSE.
      MOVE lt_ekkn-vproz TO v_vproz.
    ENDIF.
    SHIFT v_vproz LEFT DELETING LEADING space.
*for knttp value
    CASE lt_ekpo-knttp.
      WHEN 'K'.
        MOVE lt_ekkn-kostl TO v_knttp.
      WHEN 'P'.
        MOVE lt_ekkn-ps_psp_pnr TO v_knttp.
      WHEN  'O'.
        MOVE lt_ekkn-aufnr TO v_knttp.
      WHEN OTHERS.
        MOVE lt_ekpo-knttp TO v_knttp.
    ENDCASE.
    SHIFT v_knttp LEFT DELETING LEADING space.
    CLEAR output_string3.
*output string
    lt_ekko-lv_record_identifier2 = '120'.
    lt_ekko-lv_org_id1 = '1744'.
    CONCATENATE lt_ekko-lv_record_identifier2
                lt_ekko-lv_org_id1
                v_vrtkz
                lt_ekko-ebeln
                lt_ekko-lifnr
                lt_ekko-name1
                v_total
                lt_ekko-aedat
                lt_ekko-zsrm_pcnum
                lt_ekpo-afnam
                lt_ekpo-txz01
                v_netwr
                v_vproz
                v_menge
                lt_eket-eindt
                lt_ekko-bukrs
                v_knttp
                lt_ekkn-sakto
                lt_ekpo-mwskz
              INTO output_string3
          SEPARATED BY c_tab.
    IF v_vrtkz = 'M'.
      LOOP AT lt_ekkn WHERE ebeln = lt_ekpo-ebeln
                      AND   ebelp = lt_ekpo-ebelp.
        MOVE: lt_ekkn-vproz TO v_vproz.
        CASE lt_ekpo-knttp.
          WHEN 'K'.
            MOVE lt_ekkn-kostl TO v_knttp.
          WHEN 'P'.
            MOVE lt_ekkn-ps_psp_pnr TO v_knttp.
          WHEN  'O'.
            MOVE lt_ekkn-aufnr TO v_knttp.
          WHEN OTHERS.
            MOVE lt_ekpo-knttp TO v_knttp.
        ENDCASE.
        SHIFT v_vproz LEFT DELETING LEADING space.
        CONCATENATE lt_ekko-lv_record_identifier2
                           lt_ekko-lv_org_id1
                           v_vrtkz
                           lt_ekko-ebeln
                           lt_ekko-lifnr
                           lt_ekko-name1
                           v_total
                           lt_ekko-aedat
                           lt_ekko-zsrm_pcnum
                           lt_ekpo-afnam
                           lt_ekpo-txz01
                           v_netwr
                           v_vproz
                           v_menge
                           lt_eket-eindt
                           lt_ekko-bukrs
                           v_knttp
                           lt_ekkn-sakto
                           lt_ekpo-mwskz
                     INTO output_string6
             SEPARATED BY c_tab.
        WRITE :/ output_string6.
      ENDLOOP.
    ELSE.
      WRITE :/ output_string3.
    ENDIF.
  ENDLOOP.
ENDLOOP.
*concatenate for Organization Footer Record
CONCATENATE lv_record_identifier3
            lv_org_id2
            lv_org_name1
            lv_detail_record_count
            INTO output_string4
    SEPARATED BY c_tab.
WRITE :/ output_string4.
*concatenate for File Footer Record
CONCATENATE lv_record_identifier4
            lv_extract_record_count
            lv_file_record_count
            INTO output_string5
   SEPARATED BY c_tab.
WRITE :/ output_string5.
Message was edited by: vj bb
Message was edited by: vj bb

If the AEDAT is updated when you change a PO line and when it is created, I suppose you can check against it.  You can change your first select like this.  This will join EKPO and check against the AEDAT in the EKPO table.  This will duplicate records, since your are joining, so after, you need to sort and get rid of duplicate records.
SELECT a~ebeln
a~bedat
a~bsart
a~zsrm_pcnum
a~lifnr
a~bukrs
b~name1
INTO CORRESPONDING FIELDS OF TABLE lt_ekko
FROM ekko AS a
   INNER JOIN lfa1 AS b
      ON a~lifnr = b~lifnr
<b>   inner join ekpo as c
      on a~ebeln = c~ebeln</b>
WHERE ( a~aedat IN so_aedat OR a~aedat = sy-datum )
AND a~bsart IN so_bsart
AND ( a~bsart = 'ECDP' OR a~bsart = 'ECPO' )
AND a~zsrm_pcnum IS not NULL
<b>and ( c~aedat IN so_aedat OR c~aedat = sy-datum ).
  sort lt_ekko ASCENDING by ebeln.
  delete ADJACENT DUPLICATES FROM lt_ekko COMPARING ebeln.</b>
Regards,
Rich Heilman

Similar Messages

  • BADI for changing fields during Creation of BP in CRM

    Hello to everyone,
      I need to find a BADI (or other way) to default several fields during BP creation in CRM (4.0 SR1 SP9). The fields I will like to set are TAX TYPE, TAX NUMBER, TAX CATEGORY, etc.. I have found the BADI BUPA_TAX_UPDATE but i dont see any suitable parameters (structures) to changes these fields. Please advice and thanks in advance.

    Hi
    If you use function BUPA_NUMBERS_GET then your BP number will already be buffered and you can avoid a DB read. It may also be that the BP is not in the DB yet anyway.
    You can only pass one GUID in at a time - loop through IT_CHANGED_INSTANCES into a variable of type BU_PARTNER_GUID and pass that into the function as input parameter IV_PARTNER_GUID.
    Cheers
    Dom

  • How to restrict manual changing of free goods in sales order

    Hi ,
    Goodmorning ,
    We have some requirement : In sales order free goods quantity determination by system  should not be allowed to change manually , where can we do this ?
    Looking for your inputs
    Thanks and regards
    Venkat

    As per SAP Standard, when the main Item quantity is changed, the Free Goods are redetermined. In this case any manual changes to Free Goods Quantities are lost.
    But your requirement is for restricting the Chages of the Quantity of Free Goods Correct?
    I believe there is no SAP standard solution for this. You will have to apply a User Exit, which will check the Item category of each LIne item & if it is free goods (TANN) then changes are not permitted.
    Hope this helps.
    Thanks,
    Jignesh Mehta

  • Sy-tabix value has changed...

    Hi Gurus,
    I  am using a code like dis...this is not the actual code m using instad m sendin u a sample program so that u can understand the problem
    There is a selecvtion for Customer.
    sort itab by kunnr.
    loop at itab.
    on change of itab-kunnr.
    wkunnr = itab-kunnr.
      read table zitab with key kunnr = itab-kunnr.
    endon.
    if itab-kunnr = wkunnr.
    wdmbtr = wdmbtr + itab-dmbtr.
    endif.
    at end of kunnr.
    ftab-kunnr = wkunnr.
    ftab-dmbtr = wdmbtr.
    append ftab.
    endat.
    endloop.
    Now my problem is that  AT END OF Kunnr is working fine for the first customer or say for single customer but when there are multiple customers  AT END OF kunnr is triggring for each entry.......
    In debug MOdei can see that as soon as read table  syntax is used the tabix value is changed....
    So Can anyone suggest what is the solution....
    Regards,
    Raman

    This is the Declaration
    DATA:  BEGIN OF ITAB OCCURS 0,
                      KUNNR      LIKE BSID-KUNNR,
                      BELNR      LIKE BSID-BELNR,
                      BUKRS      LIKE BSID-BUKRS,
                      GJAHR      LIKE BSID-GJAHR,
                      BUZEI      LIKE BSID-BUZEI,
                      SHKZG      LIKE BSID-SHKZG,
                      VALUT      LIKE BSID-ZFBDT,
                      SGTXT(70)  TYPE  C,
                      ZFBDT      LIKE BSID-ZFBDT,
                      ZBD1T       TYPE BSID-ZBD1T,
           ZBD2T       TYPE BSID-ZBD2T,
           ZBD3T       TYPE BSID-ZBD3T,
           REBZG       TYPE BSID-REBZG,
           NETDT       TYPE BSID-BUDAT,
                      ZUONR      LIKE BSID-ZUONR,
                       BLART      LIKE BSID-BLART,
                      DMBTR      LIKE BSID-DMBTR,
                      SPART       TYPE VBRK-SPART,
                      DAY    TYPE RFPOSX-VERZN,
                      FLAG TYPE C,
                      CITY        TYPE KNA1-ORT01,
           NAME1       TYPE LFA1-NAME1,
                     CR_DR1(4)  TYPE C,
                      PSWSL      LIKE BSID-PSWSL,
                      ZTERM      LIKE BSID-ZTERM,
                      VBELN      LIKE BSID-VBELN,
                      UMSKZ      LIKE BSID-UMSKZ,
                      KLIMK      LIKE KNKK-KLIMK,
                      VTEXT      LIKE TVZBT-VTEXT,
                      ADV        LIKE BSID-DMBTR,
                      REBZT       TYPE BSID-REBZT,
                      XBLNR      LIKE BSID-XBLNR,
                      VTEXT1(70) TYPE  C,
                       FKLIMK    LIKE KNKK-KLIMK,
                      ABC(4)     TYPE C,
                    AGRO(4)        TYPE C,
                      BIO(4)        TYPE C,
                      SKFOR      LIKE KNKK-SKFOR,
                      SSOBL      LIKE KNKK-SSOBL,
                      CTLPC      LIKE KNKK-CTLPC,
                      OEIKW      LIKE S066-OEIKW,
                      OLIKW      LIKE S067-OLIKW,
                      OFAKW      LIKE S067-OFAKW,
                     NAME1      LIKE LFA1-NAME1,
                      BUDAT      LIKE BKPF-BUDAT,
                      D_DMBTR    LIKE BSID-DMBTR,
                      S_DMBTR    LIKE BSID-DMBTR,
                      VORGN      LIKE BSEG-VORGN,
                      WERKS      LIKE BSEG-WERKS,
                      NAMESO     LIKE KNA1-NAME1,
                      NAMEAM     LIKE KNA1-NAME1,
                      NAMERM     LIKE KNA1-NAME1,
                       NAMEDR     LIKE KNA1-NAME1,
       END OF ITAB.

  • ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS

    Dear Guru's,
                     I have a requirement where i have to move the values to variable when control break (AT END OF) process. So i want to move the values according to the end of Vendor so for that  i want to know is there any sy-index available which reflects changes when Control break (AT end of) process.
    LIKE Sy-subrc = 0 when select statement fetches record or sy-tabix is like counter for loop.
    Hope to get reply soon.
    Regards,
    Himanshu Rangappa

    Hi,
    There is no system Fields for it.
    But your requirement can be done with 'AT NEW' and 'AT END' statement.
    Refer this sample example,
    loop at otab.
        at new module.
          move otab-module to otab2-module.
        ENDAT.
          at END OF effort.
          sum.               "Do your calculations here
          move otab-count to otab2-count.
          append otab2.
        endat.
      endloop.

  • How to change SSO Partner Application Login_url and Logout_url

    As part of a deployment in a different data centre, we needed to change the domain name of an application using SSO for authentication. We have gone through the process of re-registering the SSO server but this does not update the domain name
    By using diagnostic tools from Oracle we have discovered that the file 'osso.conf' in $ORACLE_HOME/Apache/Apache/conf/osso contains incorrect entries for login_url and logout_url.
    These settings are of the form:
    login_url=http://www.ourolddomain.com/pls/orasso/orasso.wwsso_app_admin.ls_login
    logout_url=http://www.ourolddomain.com/pls/orasso/orasso.wwsso_app_admin.ls_logout
    Please can anyone tell me how these settings can be changed.

    Hi,
    [Solved] SSO fails to show success page you can find some information on re registering mod_osso.
    Hope it helps.

  • Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Did you check the Zoom setting?
    Have you tried a reset (reboot)? Hold HOME and SLEEP until an Apple logo appears.
    If it isn't Zoom and a reboot doesn't help try Settings/General/Reset - Reset all settings

  • Email address change--how does this affect laptop and nook?

    I use my Adobe ID only to authorize my laptop and Nook.  I need to change my email address which seems easy on the FAQs, but how do I then reauthorize my laptop and Nook?  And, if I do this, are all my existing library books unreadable since they were downloaded by what the Nook thinks is a different user?  I'm almost sure I won't be able to return any books in ADE on my laptop, but I can live with that if I can still read the books on the Nook.
    Thanks in advance.

    The sync process with iTunes transfers the email account settings (for your chosen accounts via your iPhone sync preferences) from the Mail application on your Mac to the iPhone's email application.
    The iPhone is running OS X and the iPhone's email client can be considered a mobile version of the Mail application.

  • I cannot change from grid view to list view when i contol click on the downloads folder on the dock am i doing something wrong? if so how do i change the ?view in the dock

    when i contol click on the downloads icon in the dock i get the gris view . I thought if you control click, you are able to change the view to fan or list. am I doing something wrong.? Icheck to make sure the contol key is working by doing a screenshot and it works there. What am I doing wrong?

    Needs to be a Stack ?

  • If I chose the wrong folder as defaulf for downloads to go to, how can I change it?

    I use download manager. I hit '''yes''' when asked if I wanted to make the folder shown as the default for future downloads of that type. I did not mean to do that. How can I change the default folder?

    Hi belladonna82,
    You should take a look at the [[Downloads window]] and [[Options window - General panel]] Knowledge Base articles. They will give you all the details you need. Unless you are talking about the default action and not the actual download folder? If so, you should look at [[Options window - Applications panel]].
    Hopefully this helps!

  • How do I use Sun Web Server 7.0u1 reverse proxy to change public URLs?

    Some of our installations use the Sun Web Server 7.0 (update 1, usually)
    for hosting some of the public resource and reverse-proxying other parts
    of the URI namespace from other backend servers (content, application
    and other types of servers).
    So far every type of backend server served a unique part of the namespace
    and there was no collision of names, and the backend resources were
    published in a one-to-one manner. That is, a backend resource like, say,
    http://appserver:8080/content/page.html would be published in the internet
    as http://www.publicsite.com/content/page.html
    I was recently asked to research whether we can rename some parts of
    the public URI namespace, to publish some or all resources as, say,
    http://www.publicsite.com/data/page.html while using the same backend
    resources.
    Another quest, possibly related in solution, was to make a tidy url for the
    first page the user opens of the site. That is, in the current solution when
    a visitor types the url "www.publicsite.com" in his or her browser, our web
    server returns an HTTP-302 redirect to the actual first page URL, so the
    browser sends a second request (and changes the URL in its location bar).
    One customer said that it is not "tidy". They don't want the URL to change
    right upon first rendering the page. They want the root page to be rendered
    instantly i the first HTTP request.
    So far I found that I can't solve these problems. I believe these problems
    share a solution because it relies on ability to control the actual URI strings
    requested by Sun Web Server from backend servers.
    Some details follow, now:
    It seems that the reverse proxy (Service fn="service-passthrough") takes
    only the $uri value which was originally requested by the browser. I didn't
    yet manage to override this value while processing a request, not even if
    I "restart" a request. Turning the error log up to "finest" I see that even
    when making the "service-passthrough" operation, the Sun Web Server
    still remembers that the request was for "/test" (in my test case below);
    it does indeed ask the backend server for an URI "/test" and that fails.
    [04/Mar/2009:21:45:34] finest (25095) www.publicsite.com: for host xx.xx.xx.83
    trying to GET /content/MainPage.html while trying to GET /test, func_exec reports:
    fn="service-passthrough" rewrite-host="true" rewrite-location="true"
    servers="http://10.16.2.127:8080" Directive="Service" DaemonPool="2b1348"
    returned 0 (REQ_PROCEED)My obj.conf file currently has simple clauses like this:
    # this causes /content/* to be taken from another (backend) server
    NameTrans fn="assign-name" from="/content" name="content-test" nostat="/content"
    # this causes requests to site root to be HTTP-redirected to a certain page URI
    <If $uri =~ '^/$'>
        NameTrans fn="redirect"
            url="http://www.publicsite.com/content/MainPage.html"
    </If>
    <Object name="content-test">
    ### This maps http://public/content/* to http://10.16.2.127:8080/content/*
    ### Somehow the desired solution should instead map http://public/data/* to http://10.16.2.127:8080/content/*
        Service fn="service-passthrough" rewrite-host="true" rewrite-location="true" servers="http://10.16.2.127:8080"
        Service fn="set-variable" set-srvhdrs="host=www.publicsite.com:80"
    </Object>
    I have also tried "restart"ing the request like this:
        NameTrans fn="restart" uri="/data"or desperately trying to set the new request uri like this:
        Service fn="set-variable"  uri="/magnoliaPublic/Main.html"Thanks for any ideas (including a statement whether this can be done at all
    in some version of Sun Web Server 7.0 or its opensourced siblings) ;)
    //Jim

    Some of our installations use the Sun Web Server 7.0 (update 1, usually)please plan on installing the latest service pack - 7.0 Update 4. these updates addresses potentially critical bug fixes.
    I was recently asked to research whether we can rename some parts of
    the public URI namespace, to publish some or all resources as, say,
    http://www.publicsite.com/data/page.html while using the same backend
    resources.> now, if all the resources are under say /data, then how will you know which pages need to be sent to which back end resources. i guess, you probably meant to check for /data/page.html should go to <back-end>/content/page.html
    yes, you could do something like
    - edit your corresponding obj.conf (<hostname>-obj.conf or obj.conf depending on your configuration)
    <Object name=¨default¨>
    <If $uri = ¨/page/¨>
    #move this nametrans SAF (for map directive - which is for reverse proxy within <if> clause)
    NameTrans.. fn=map
    </If
    </Object>
    and you could do https-<hostname>/bin/reconfig (dynamic reconfiguration) to check out if this is what you wanted. also, you might want to move config/server.xml <log-level> to finest and do your configuration . this way, you would get enough information on what is going on within your server logs.
    finally,when you are satisfied, you might have to run the following command to make your manual change into admin config repository.
    <install-root>/bin/wadm pull-config user=admin config=<hostname> <hostname>
    <install-root>/bin/wadm deploy-config --user=admin <hostname>
    you might want to check out this for more info on how you could use <if> else condition to handle your requirement.
    http://docs.sun.com/app/docs/doc/820-6599/gdaer?a=view
    finally, you might want to refer to this doc - which explains on ws7 request processing overview. this should provide you with some pointers as to what these different directives mean
    http://docs.sun.com/app/docs/doc/820-6599/gbysz?a=view
    >
    One customer said that it is not "tidy". They don't want the URL to change
    right upon first rendering the page. They want the root page to be rendered
    instantly i the first HTTP request.
    please check out the rewrite / restart SAF. this should help you.
    http://docs.sun.com/app/docs/doc/820-6599/gdada?a=view
    pl. understand that - like with more web servers - ordering of directives is very important within obj.conf. so, you might want to make sure that you verify the obj.conf directive ordering is what you want it to do..
    It seems that the reverse proxy (Service fn="service-passthrough") takes
    only the $uri value which was originally requested by the browser. I didn't
    yet manage to override this value while processing a request, not even if
    I "restart" a request. Turning the error log up to "finest" I see that even
    when making the "service-passthrough" operation, the Sun Web Server
    still remembers that the request was for "/test" (in my test case below);
    it does indeed ask the backend server for an URI "/test" and that fails.
    now, you are in the totally wrong direction. web server 7 includes a highly integrated reverse proxy solution compared to 6.1. unlike 6.1, you don´t have to download a separate plugin . however, you will need to manually migrate your 6.1 based reverse proxy settings into 7.0. please check out this blog link on how to set up a reverse proxy
    http://blogs.sun.com/amit/entry/setting_up_a_reverse_proxy
    feel free to post to us if you need any futher help
    you are probably better off - starting fresh
    - install ws7u4
    - use gui or CLI to create a reverse proxy and map one on one - say content
    http://docs.sun.com/app/docs/doc/820-6601/create-reverse-proxy-1?a=view
    if you don´t plan on using ws7 integrated web container (ability to process jsp/servlet), then you could disable java support as well. this should reduce your server memory footprint
    <install-root>/bin/wadm disable-java user=admin config=<hostname>
    <install-root>/bin/wadm create-reverse-proxy user=admin uri-prefix=/content server=<http://your back end server/ config=<hostname> --vs=<hostname>
    <install-root>/bin/wadm deploy-config --user=admin <hostname>
    now, you can check out the regular express processing and <if> syntax from our docs and try it out within <https-<hostname>/config/<hostname>-obj.conf> file and restart the server. pl. note that once you disable java, ws7 admin server creates <vs>-obj.conf and you need to edit this file and not default obj.conf for your changes to be read by server.
    >
    I have also tried "restart"ing the request like this:
    NameTrans fn="restart" uri="/data"
    ordering is very important here... you need to do this some thing like
    <Object name=default>
    <If not $restarted>
    NameTrans fn=restart uri from=/¨ uri=/foo.
    </If>

  • Issue on payroll area which is changing from biweekly to monthly in Mid of

    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 payroll on 8th of every month. When we are running payroll for April he has received only 29th and 30th retire salary, by the time he is not yet retired also.
    In this case the main problem is monthly payroll time is early then biweekly. so the employee is getting retire salary then his regular pay.
    Can you guide me where we can control that monthly payroll area should not be triggered at this movement.
    Thanks
    Chandra

    You can do that but it is not that easy as it sounds if you have to do that over a period of say 10-20 years...lot of operational work!!
    Also say if you load the retiree action one month ahead say on 03/01/2011. And the employee is retiring on  03/29.
    Retire payroll is on 04/08
    Biweekly is on 04/15
    Now you decide to lock the employees after the 1st biweekly check of March...say which was process 14 days before 04/15 would be 04/01. The employee number is locked between 04/01 to 04/15. For 14 days you have locked these employees!!
    What happens if there is adjustment pay...you have to manually go and unlock the employee and lock him after the adjustment check.
    I will let you decide based on the comfort, SAP effort, Operational effort and system maintenance.

  • 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 payroll on 8th of every month. When we are running payroll for April he has received only 29th and 30th retire salary, by the time he is not yet retired also.
    In this case the main problem is monthly payroll time is early then biweekly. so the employee is getting retire salary then his regular pay.
    Can you guide me where we can control that monthly payroll area should not be triggered at this movement.
    Thanks
    Chandra

    Hi Dilek,
    If splits will be there definitely there will be two wagetypes but the amounts they'll have will be based on the rates of those periods.
    Suppose an employee got payscale increase on 11th of  the month, then employee will be paid at the rate of first payscale for first ten days then @ of second payscale on second 20 days.
    So there won't be any inconsistency.
    Regards,
    Tomesh

  • Unable to change field from available text options in SM30?

    It is either yes or no. I cannot change to yes , it keeps going back to no when I save.
    Anysuggestions?
       Thanks.

    Hay!
    Could you plz explain the problem???
    Thanks!
    Sharat

  • Change Locale / UI Text Options of Photoshop CS4

    Sorry to bug you all but I've searched the answer to this for two days and can't find anything.
    I recently installed CS4 Design Premium on a PC running Windows 7. When I resize an image (Image>Image Size), the dialog window always displays the Document Size in centimeters. Unfortunately I'm in the U.S. and haven't yet converted to the metric system and it's a royal pain to change the drop-down to inches each time.
    In my "Locales" folder the only subdirectory that exists is, "en_GB". In Edit>Preferences>Interface:UI Text Options:UI Language there is only one option available which is "English: UK". I'm pretty sure that during the initial install of the suite I selected "United States" as my Locale. And is there any reason to have a drop-down with only one choice and no means of adding others (no need to answer this one, I'm just thinking out loud)?
    Is there any way to add the United States as a Locale without having to re-install the Suite?
    Many Thanks

    Is there any way to add the United States as a Locale without having to re-install the Suite?
    The locale for the main program is defined by the serial, not necessarily by your language selection. Shared components derive their locale from this as well and/or in part from the system setting. That issue with installs wrongly using en_GB is quite common, though. It usually occurs when other Adobe software with shared components already was on the system and coerced the installer into using the wrong language. However, short of reinstalling everything Adobe after having sweeped clean with uninstalls and the CS4 Clean Script, there is no way to resolve this.
    Mylenium

  • My Excel with PowerPivots acts weird, it hangs when i try to change font color

    Hi 
    I am facing a weird issue using PowerPivot in my workbook, there is a worksheet named Charts in my workbook and all the charts i am using resides in that worksheet. Whenever i try to change the font color in that sheet, my excel's color palette goes blur
    and then everything just freezes and turns black. This problem is happening only with Charts worksheet, when i try to change the color in other sheets, it works just, the problem is only with Charts sheet. File
    size is 16 MB, there are just 10 pivot tables with some calculations and some calculated fields. There are no add-ins other than PowerPivot. 
    Thanks,
    Shanker

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Do you receive any error message?
    Which Excel version are you using?  Excel 2013 or other?
    Which workbook format are you using? XLS or XLSX?
    Are you performing any specific task?
    According to your description, this issue seems only occur with the special worksheet "Charts".
    Firstly, I recommend we copy all of the content to a new/blank Excel file to test.
    If it works fine, this issue might be caused by the "Charts" workbook itself. We'd better check the "Charts" workbook. Or re-build the file with a new workbook.
    If it still makes Excel hang with a new file, this issue might due to the content. Please check the content first.
    Secondly, we could follow below KB to troubleshoot this issue:
    https://support2.microsoft.com/kb/2758592/en-us?wa=wsignin1.0
    Thirdly, if the issue still exists, we may try to collect the Event log and App crash dump file to do advanced troubleshooting.
    Event log:
    http://windows.microsoft.com/en-US/windows7/Open-Event-Viewer
    App crash dump file:
    First enable app crash dump collection by copying following words into notepad, saving it as dump.reg and importing
    it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\localdumps\EXCEL.EXE]
    "DumpFolder"=hex(2):63,00,3a,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,\
      00,6d,00,70,00,73,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    Then, open Excel
    to repro the issue. If crash issue appeared, please find the crashdump file under c:\.
    To further help you, please upload this file into Skydrive and shared the link here.
    Also, you can try to analyze dump by yourself if you would like to:
    How to analyze app crash dump file:
    http://blogs.technet.com/b/askperf/archive/2007/05/29/basic-debugging-of-an-application-crash.aspx
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for