Skip to Content
author's profile photo Former Member
Former Member

ScripT lOGIC FOR MULTIPLING TWO ACCOUNTS

Hi All,

We need to multiply two accounts using SQL script logic.

Account3=Accoun1*Account2

Accoun1 : Units

Account2 :Price

Account 3:Total

In the above scenerio units will be inout by user through Input schudule,while value of Price will be loaded in account and will not change. and we need calculate Account3(Total) at RUN time.

So Please help me with the script logic code to ge used in default.lgf

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Apr 09, 2009 at 11:36 AM

    Hello,

    *WHEN ACCOUNT

    *IS u201CAccount1u201D

    *REC(ACCOUNT=u201DAccount3u201D, FACTOR=GET(ACCOUNT=u201DAccount2u201D))

    *ENDWHEN

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 09, 2009 at 08:00 PM

    Hello,

    If you added this code into Default logic and validate and save th elogic, it should work.

    You can run the default logic using the Data Manager and have a look to the log file generated into Private Publication to see if the right record is generated for the Account3.

    Regards,

    Mihaela

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2009 at 10:05 AM

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2009 at 10:05 AM

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.