Can you help me interpret the following lines in UPDATE rule?

Hi,
Can you help me interpret the following lines in UPDATE rule?
1. What is the role of role of u201CCHANGING RESULT.u201D and u201CCHANGING lc_local_value.u201D?
2. What is the role of the CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY', in particular the Exporting and Importing parts?
3. Can I say that u201CCOMM_STRUCTURE-ORDER_VALu201D in the subroutine is passed to u201Clc_document_valueu201D in the u201CFORM loc_curr_convertu201D; and further passed to u201Cforeign_amountu201D in the u201CCALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'u201D?
4. Finally, what becomes of my original u201CActual Goods receipt quantityu201D( 0GR_QTY ) which I am writing the routine for? I donu2019t see any where in the code that it is being referred to? Do any of these codes affect the value of 0GR_QTY?
5. Also, if there are 3 different subroutines in the INCLUDE and I am making the change described in #4 above, how do I know which of the 3 subroutines to call?
===============================
===============================
So I am reviewing a transfer routine in for u201CActual Goods receipt quantityu201D and routine an INCLUDE statement: INCLUDE RS_BCT_MM_UPDATE_RULES.
The update rule also includes the following properties to run the following subroutine in the Include:
IF u2026..
perFORM LOC_CURR_CONVERT
           USING    COMM_STRUCTURE-ORDER_VAL
                    COMM_STRUCTURE-DOC_DATE
                    COMM_STRUCTURE-ORDER_CURR
                    COMM_STRUCTURE-LOC_CURRCY
                    COMM_STRUCTURE-EXCHG_RATE
           CHANGING RESULT.
I verified in the INCLUDE (RS_BCT_MM_UPDATE_RULES) and the subroutine is as follows:
FORM loc_curr_convert
  USING    lc_document_value
           lc_date
           lc_document_currency
           value(lc_local_currency)
           lc_rate
  CHANGING lc_local_value.
conversion of lc_rate from floating-point to decimal. Necessary for *
call of CONVERT_TO_LOCAL_CURRENCY.
data lc_rate_dec type p decimals 5.
lc_rate_dec = lc_rate.
  IF lc_document_currency = lc_local_currency
  no conversion necessary -> Main case 1
    AND NOT ( lc_document_currency IS INITIAL
           OR lc_local_currency IS INITIAL ) .
    lc_local_value = lc_document_value.
  ELSEIF NOT ( lc_document_currency IS INITIAL
  OR lc_local_currency IS INITIAL OR lc_date IS INITIAL ) .
  conversion necessary with lc_date -> Normally not possible
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
      EXPORTING
        date                 = lc_date
        foreign_amount       = lc_document_value
        foreign_currency     = lc_document_currency
        local_currency       = lc_local_currency
        rate                 = lc_rate_dec
      IMPORTING
      EXCHANGE_RATE        =
        local_amount         = lc_local_value
      EXCEPTIONS
        NO_RATE_FOUND        = 1
        OVERFLOW             = 2
        NO_FACTORS_FOUND     = 3
        NO_SPREAD_FOUND      = 4
        DERIVED_2_TIMES      = 5.
    IF sy-subrc NE 0.
  message a802 with lc_date lc_document_currency lc_local_currency
                    sy-subrc.
    ENDIF.
  ELSE.
  if conversion not possible -> assign target values
    lc_local_value = lc_document_value.
    lc_local_currency = lc_document_currency.
  ENDIF.
ENDFORM.

HI,
Thanks so much the explanations.
I just verified again on our dev system and the update rule for 0GR_QTY (Actual goods receipt quantity) include the following:
    perFORM QUANTITY_CONVERT
       USING    COMM_STRUCTURE-CPQUAOU
                COMM_STRUCTURE-po_UNIT
                COMM_STRUCTURE-base_uom
                COMM_STRUCTURE-numerator
                COMM_STRUCTURE-denomintr
       CHANGING RESULT
Now, in the include, I also found:
FORM QUANTITY_CONVERT
  USING    QC_SOURCE_VALUE
           QC_SOURCE_UNIT
           VALUE(QC_TARGET_UNIT)
           QC_UMREZ
           QC_UMREN
  CHANGING QC_TARGET_VALUE.
i.  Does it mean it actually does quantity conversion?
ii. If you have access to the INCLUDE I will appreciate some hints on what the subroutine QUANTITY_CONVERT is doing. It does not appear do to be saying anything about quantity conversion; but it is supposed to be doing something with the parameters being passed from the update routine.
iii. In your response to #5, after all the computation in the INCLUDE, what comes back to the Update rule  i.e. what comes back to become the value of 0GR_QTY?
Is it the u201CRESULT.u201D in the update rule or u201CQC_TARGET_VALUE.u201D in the subroutine in the INCLUDE.
iv. So, am to create an Update rule for 0PSTNG_DATE and the source is BUDAT; and I need to write a routine using the include INCLUDE RS_BCT_MM_UPDATE_RULES.
I looked through the INCLUDE and identified all the subroutines in this INCLUDE as follows:
QUANTITY_CONVERT
LOC_CURR_CONVERT
GET_WEEK
WEEK_DAY
QUARTER_DAY
--Does it mean that to use this subroutine, I can only use the USING parameters of one of these listed subroutines?
--Also, does it mean that because 0PSTNG_DATE is a date, I can only use one of
GET_WEEK
WEEK_DAY
QUARTER_DAY
--Or, are there other includes to be used for 0PSTNG_DATE
Thanks

Similar Messages

  • Can you help me understand the use of the word POSITION in TR and CFM?

    Hi,
    I am trying to have a view of typical BI reports in TR and TM/CFM so through my research I came to the following link:.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/62/08193c38f98e1ce10000000a11405a/frameset.htm
    My problem on this link and other postings on this site seem to be the same. Can you help me understand the use of the word POSITIONS in these context:
    1. Our client has asked for financial transaction reports in BW, such as position of Borrowings, Investments and Hedge Operations (TM data).
    2. I have a requirement on, some reports related to Money Market (Fixed Term Deposits, Deposits at Notice) something on FSCM-Treasury and Risk Manager. These reports will be similar to that of Loans, i.e. Position statement, flow statement, etc.
    3. The set of position values for a single position or a limited amount of positions can be reported by transactions TPM12 and TPM13 in R3.
    4. 0CFM_C10 (Financial Positions Cube)
    Do you have some simple report outputs to help clarify how the word POSITION is used in such environments?
    Thanks
    Edited by: AmandaBaah on Feb 15, 2010 4:39 PM

    If I future buy 10 shares in company at £1 per share - at the end of the day my potential value is £10
    The next day the shares drop tp £0.9 per share - I have a negative position - my shares are only worth £9
    I haven;t bought them yet - but I have a negative position - ie if things stayed as they are - I am going to realise (ie end up with)  a loss
    Now you can use this for loans and foreign exchange banks as well...

  • How to Setup Forward Error Handling in PI Scenarios. Can you help me with the same with screen shots if possible?

    Dear all
    How to Setup Forward Error Handling in PI Scenarios. Can you help me with the same with screen shots if possible?
    Thanks
    Regards
    karan

    Hello
    These are the following errors
    1. Trace level="1" type="T">no interface action for sender or receiver found</Trace>
    2. <Trace level="1" type="System_Error">Application-Error exception return from pipeline processing!
    3.
    <Trace level="1" type="T">Application Error at Receiver... => ROLLBACK WORK</Trace>  
    <Trace level="1" type="T">System Error at Receiver... => ROLLBACK WORK</Trace>  
    <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />  
    <Trace level="1" type="System_Error">Application-Error exception return from pipeline processing!</
    Trace level="3" type="T">No persisting of message after plsrv call, because of config</Trace>Trace level="3" type="T">Error of the prevous version:</TraceTrace level="3" type="T">Error ID APPLICATION_ERROR</Trace>
    tThere are repeating errors also.
    TThanks
    Regards
    kkaran

  • Hello, we have both Creative Cloud and Creative Cloud for teams. Can you help me with the difference and if i need to have both?

    Hello, we have both Creative Cloud membership and Creative Cloud for team. Can you help me with the difference and if i need to have both? We have 9 employees that are using it. Just not sure if i'm paying for something i don't need.
    Thank you

    Please refer to Creative Cloud Help | Creative Cloud / Common Questions
    CC is for retail use with 20 GB of storage space, CCT is where number of seats are purchased & assigned by one program admin where each seat gets 100GB of storage space.
    You can not have both the CC & team in one account as it will only provide you added storage space of 120 GB but you can activate the CC any of them or either of them twice as CC is based on Adobe ID.
    Regards
    Rajshree

  • Can you help me locate the current running events to share customer success stories on SAP HANA?

    Hi Team,
    The customer with whom I m working is interested to share his story on SAP HANA and wanted to know if there is any forum to share the same?
    Can you help me with the same?
    Regards,
    Krishna Tangudu

    Hi Team,
    The customer with whom I m working is interested to share his story on SAP HANA and wanted to know if there is any forum to share the same?
    Can you help me with the same?
    Regards,
    Krishna Tangudu

  • Can you please advise on the following queries?

    Hi Friends,
    Can you please advise on the following queries?
    FV60  is there anyway we can stop an FV60 transaction being input for a specified vendor or number of vendors?
    Your response is highly appreciated.
    Regards,
    Baltha

    Hello,
    You can write an User-exit for validation in GGB0.
    Assign the same in OB28.
    Please check up with the ABAPer for the technical feasibility.
    Regards,
    Ravi

  • Can you help me with the WHERE clause? Any issue with this code block?

    Hi,
    I am looking for blogs or any document on how to implement a Lookup during data loads in BW.
    The problem is that all those that I find on this site are mostly about u201CLookup in XIu201D
    I have read bits and hints on different postings on this site and this is the best I could do for the scenario shown below:
    I need to add the Chars: Char1, Char2, Char3 to CubeX
    so that I can display the data for these 3 Chars in a report.
    Char1 and Char2 are filled in ODS12 and Char3 is filled in Cube3.
    Can you help me write a routine so that while loading data to CubeX, it will read Char1, Char2, Char3 from ODS12 and Cube3; and make them available in CubeX?
    This is my attempt so far:   continue:
    u201C----
    select /bic/Char1 from /bic/ODS12
    select /bic/Char2 from /bic/ODS12
    select /bic/Char3 from /bic/Cube3
    into result
    WHERE u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    and objvers = 'A' .        
    end select.
    u201C----
    1. What should be my WHERE clause?
    2. In the select statement, by studying samples on this where should there be an u201CMu201D in front of the ODS? e.g. select /bic/Char1 from /bic/MODS12
    If so, what is the significance and the other options?
    3. Should this code be in the Start routing of CubeX? Or any other possible location? Also, in the start routine does it matter where within the start routine this code needs to be placed?
    4. Can you please fix this code and add any lines I may be missing?
    Is what I am looking to do refer to as u201Cdoing a lookupu201D?
    Thanks

    ok

  • My program of iTunes for Windows 7 have not the option for ringtone, can you help me? the option for

    Hi! I've  a problem with my new program Itunes for Windows 7. I've Download the app ISuoneria and i followed the procedure to make my ringtone. But when i wont import the new file on my iphone, there isn't the option Ringtones. I've just download a new version of the Itunes, but don't change. Can you help me?
    Thanx so much!!

    It's now called Tones.  Go to iTunes menu EDIT/PRFERENCES under GENERAL tab, check the Tones Box under Library source to display Tones library in iTunes.

  • Can you help me?the config error about ORACLE Web Application Server3.0 for Solaris,

    hello anyone
    i install oracle7.3.4 server
    in Sun Sparcstation20 Solaris2.6 Japanese
    everything is ok,
    and i want to install ORACLE
    WEB appliation server 3.0too
    the installer is ok too,
    i startup the serivce
    >owsctl start wrb
    >owsctl start admin
    but when i open the netscape and
    CRAETE and START a new LISTENER
    there is something wrong.
    **************************error message*******
    OWS-05721: The Web Listener www failed to start:
    Oracle Web Listener 3.0.1 Production (Export), Version 2.14FC1
    Copyright 1997 Oracle Corp. All Rights Reserved.
    Error: A failure occurred ( Permission denied ) when assigning a port ( domain: INTERNET01, address: 0.0.0.0, port: 80 ).
    Error: Failed to start the server.
    Error: The server could not initialize
    Information: The server is exiting
    OWS-08811: Unable to startup Oracle Web Listener `www'.
    Oracle Web Listener Home Page
    From here, you can do the following:
    Create a new Oracle Web Listener to run on your machine by clicking the Create Listener... button.
    Modify existing Oracle Web Listeners by selecting the Configure link below.
    Start, Stop or Delete existing Oracle Web Listeners by selecting the appropriate link below.
    can anyone help me , it is too difficult for me.
    the startup file of Solaris is here
    # @(#)cshrc 1.11 89/11/29 SMI
    umask 022
    set path=(/bin /usr/bin /usr/ucb /etc .)
    if ( $?prompt ) then
    set history=32
    endif
    setenv ORACLE_BASE /oracle/app/oracle
    setenv ORACLE_HOME /oracle/app/oracle/product/7.3.4
    setenv ORACLE_SID hlp3
    setenv ORAWEB_HOME $ORACLE_HOME/ows/3.0
    setenv ORAWEB_SITE www
    setenv ORAWEB_BASE $ORACLE_HOME/ows
    setenv ORAWEB_ADMIN $ORACLE_BASE/admin
    setenv ORAWEB_CARTX $ORACLE_HOME/ows/cartx
    setenv DEF_INSTALL TRUE
    setenv ORA_CSM_MODE line
    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:/usr/openwin/lib:/usr/dt/lib:
    setenv ORACLE_TERM xsun5
    setenv TMPDIR /var/tmp
    setenv PATH .:$ORACLE_HOME/bin:$ORACLE_HOME/obackup/bin:/opt/bin:/usr/local/bin:/bin:/usr/bin:/usr/css/bin:/usr/openwin/bin:/usr/sbin:/usr/ucb:$ORAWEB_HOME/bin
    setenv ORA_NLS32 $ORACLE_HOME/ocommon/nls/admin/data
    setenv DEF_INSTALL TRUE
    setenv MANPATH /opt/SUNWspro/man:/opt/SUNWste/licence_tools/man
    # setenv LANG
    # setenv TWO_TASK
    set ORAENV_ASK = NO
    source /opt/bin/coraenv
    unset ORAENV_ASK
    source /oracle/app/oracle/product/7.3.4/ows/3.0/install/owsenv_csh.sh
    # @(#)local.login 1.3 93/09/15 SMI
    stty -istrip
    # setenv TERM `tset -Q -`
    # if possible, start the windows system. Give user a chance to bail out
    if ( `tty` == "/dev/console" ) then
    if ( $TERM == "sun" &#0124; &#0124; $TERM == "AT386" ) then
    if ( ${?OPENWINHOME} == 0 ) then
    setenv OPENWINHOME /usr/openwin
    endif
    echo ""
    echo -n "Starting OpenWindows in 5 seconds (type Control-C to interrupt)"
    sleep 5
    echo ""
    $OPENWINHOME/bin/openwin
    clear # get rid of annoying cursor rectangle
    logout # logout after leaving windows system
    endif
    endif
    setenv ORACLE_HOME /oracle/app/oracle/product/7.3.4
    setenv PATH /bin:/usr/bin:/etc:/usr/etc:/usr/openwin/bin:/usr/ucb:/oracle/app/oracle/product/734/bin:$ORAWEB_HOME/bin
    setenv NLS_LANG japanese_japan.ja16euc
    setenv LANG japanese
    setenv ORACLE_TERM xsun5
    setenv ORAWEB_HOME $ORACLE_HOME/ows/3.0
    setenv ORAWEB_SITE www
    setenv TNS_ADMIN /oracle/app/oracle/product/7.3.4/network/admin
    can anyone help me and tell me how to solve it or any aother way book doc to do it,
    thank you
    i am very nervious
    my email address:
    [email protected]
    [email protected]

    see http://www.oracle.com/support/products/oas/sparc30/html/ows08811.html

  • Can You Help Me Install The OS 10.5.6 Update?

    I receive the following error message when I attempt to install the OS 10.5.6 update: "The installer could not install some files in "/". Contact the software manufacturer for assistance." I have tried each of the following, without success:
    * Using software update
    * Downloading the update as a separate intaller file
    * Repair permissions
    * Rebuild directory (Disk Warrior)
    * Use new admin account to download and install
    * Download the update again
    I have been running OS 10.5.5 without problem. Any ideas?

    You are aware that permissions repairs & disk repairs are not the same thing, right? The "Repair Disk" step in Disk Utility attempts to repair file system problems, not the permissions of files in the file system. Disk Warrior is also a disk (file system) repair utility, one that uses a different & more powerful method (rebuilding the file system directory from scratch) than Disk Utility does to fix the file system.
    If neither utility can repair your file system, you must (as the instructions in the first few lines of Disk Utility's First Aid tab tell you) back up & erase the disk volume. This will recreate a fresh file system that should be free of problems & allow you to install the OS, restore your user files from backups, & apply any updates to create a trouble free system.
    If this fails, the most likely cause is even more severe problems with your hard drive than erasing a volume can solve. The next step would be to reformat it, & if that fails to replace the drive.
    Before you consider anything as drastic as erasing anything, make sure your problem is not just with permissions but with the disk -- IOW, with the file system.

  • How can I move text onto the following line in CSS without making a new paragraph?

    Hello there,
    I want to do the follow:
    Name of company,
    Address of company 1,
    Address of company 2,
    Address of company 3,
    When I press enter to move the text underneath the previous text, it starts a new paragraph which I don't want. How can I simply get it to flow onto the next line without creating a new paragraph?
    Thanks so much in advance.

    You can use <br />
    <p>
    Address 01<br />
    Address 02<br />
    Address 03<br />
    </p>
    I'd probaly type it out in Code View but I think you can use shift+enter
    Martin

  • I had firefox 3.6 and since I updated to 4.0 my computer is running much slower. I called my ISP and they cannot uninstall the 4.0 version. I play alot of POGO and it runs sooo slowly. I am using windows XP. Can you help me get the 3.6. version back?

    I would like to get the 3.6 version and uninstall the 4.0 version computer running slow

    Here's the process to roll back:
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, download and save Firefox 3.6 to your desktop for future installation. http://www.mozilla.com/firefox/all-older
    Close Firefox 4.
    You could install Firefox 3.6 over it (many have reported success) or you could uninstall Firefox first. If you uninstall, do not remove your personal data and settings, just the program.
    Unless you have installed an incompatible add-on, Firefox 3.6 should pick up where you left off. If there are serious issues, please post back with details.
    Note: I haven't actually tried this myself!

  • I have an account at the TAGGED program, but I forgot the account e-mail. My Id on my profile page is Dr.semsem666G. Can you help me from the history of web sites I visited this month?

    Dear Sir !
    I have an account at TAGGED.com program since more than 2 years, I accustomed to log in from bookmarks.
    The problem that now i did not found the TAGGED program in my bookmarks n I need to log in by e-mail n password..I forgot the e-mail I had registered 2 years before at Tagged, So I can not log in.
    How Can I find my account again at the bookmark or history??
    My Name on my profile page at Tagged is Dr.semsem666G
    Many thanks in advance

    Thank you for replying.    Yes I deleted the old email address..   

  • Can you help me with the preview?

    Could anyone tell me why the preview doesn't show in Muse? It seems like I did nothing, but I already made backgrounds, title, buttons, images etc.
    Thank you in advance
    Berna

    Hi,
    Are you getting any error message while previewing in Muse? We will need the complete error message.
    Also take a look to the similiar thread, if it helps
    http://forums.adobe.com/message/5159067#5159067

  • Can you help me editing the credit card no. for the monthly payment of my team account (Creative Cloud for teams for A\Tratti)?

    How can I do?

    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

Maybe you are looking for

  • Field separator in gui_download

    Hi, How to get '|' (pipeline)  separator in FM gui_download? We tried passing '|' in the parameter write_separator. Still the downloaded file doesn't have this separator. Thanks for your time.

  • Can't get it to work...anyone else have this problem?

    First off, it takes a very long time to boot up. Maybe that's normal. Then I get taken to the choose language screen, then the choose format screen. After this, it takes me to the apple recovery screen. I can't get off this screen without choosing ei

  • How to get change documents for Equipment Master Records of a document?

    Hi experts, I need a report for changes of Equipment Master for a document. There is a way to reach this for every document : Environement - > Display Changes. Then I can get a report for "Changes to Object Links". But this can only show me that whic

  • The disc can't be burned because an unexpected error occurred (error code 0x80020000).

    Hello - I am receiving this error code on all my Apple computers (iMac and MacBook) which have the most current Mac OS X 10.6.7. I'm a photographer and burn CDs frequently and out of the blue began having issues two days ago: The disc can't be burned

  • Library Mac/Windows

    Hi, Question: can itunes on a mac and on a windows computer use the same itunes library, which is stored on an external HD? thanks alex