Need to create procedure for insert tax line into ra_interface_lines_all

Dear
I need to create a procedure for insert a tax line into ra_interface_lines_all against the line type "LINE".
after inserting the record i will run the auto invoice program to see the changes. kindly share how i can achieve through procedure.
scenario:-
after order dispatch workflow back ground run and data populated in ra_interface_lines_all where interface line id is null there i need to insert tax line against multiple orders.
I know the join. when line type = 'LINE'  then tax line must have link_to_line_id of the line type line. my question is this when order number change how i can insert tax line against the line type line.
regards,
Fs
Message was edited by: 832296

Dear
I need to create a procedure for insert a tax line into ra_interface_lines_all against the line type "LINE".
after inserting the record i will run the auto invoice program to see the changes. kindly share how i can achieve through procedure.
scenario:-
after order dispatch workflow back ground run and data populated in ra_interface_lines_all where interface line id is null there i need to insert tax line against multiple orders.
I know the join. when line type = 'LINE'  then tax line must have link_to_line_id of the line type line. my question is this when order number change how i can insert tax line against the line type line.
regards,
Fs
Message was edited by: 832296

Similar Messages

  • Stored Procedure for insert in a table

    Hi everybody
    I have to insert a line into a table to initialize the supply of a datawarehouse.
    The table contains:
    Id_chargement Oracle sequence
    date_chargement sysdate
    status 'EN COURS'
    I read some message in this forum but I don't find the solution.
    Can I call a procedure in the workflow ? Or must be use the preprocessing of the first map to call this stored procedure ?
    But for the second solution, if I had a map before, I must change this call.So, it's not very interesting.
    Have you a idea
    Thank you for your help
    Frederic from France

    Hi Mahesh,
    I created a procedure as
    begin
    insert into <table name> values( <timestamp value>);
    end;
    i added this procedure in the process flow, and as you said i added 1- Success, 2 - warning, 3 - error.
    I am able to deploye the procedure and process flow,
    after that when execute the process flow, that just says completed with errors,
    no other information and oracle error messages are abilable in the
    result panel
    Job Final Status : Completed with errors
    Job Processed Count : 1
    Job Error Count : 0
    Job Warning Count : 0
    can you say , what could be the problem??
    Thanks & regards
    raja

  • How to use the default database service name on creating procedure for data

    how to use the default database service name on creating procedure for datagaurd client failover ??? all oracle doc says create a new service as below and enable at DB startup. but our client is using/wanted database default service to connect from application on the datagaurd environment (rac to non rac setup).please help.
    Db name is = prod.
    exec DBMS_SERVICE.CREATE_SERVICE (service_name => 'prod',network_name =>'prod',failover_method => 'BASIC',failover_type => 'SELECT',failover_retries => 180,failover_delay => 1);
    says already the service available.
    CREATE OR REPLACE TRIGGER manage_dgservice after startup on database DECLARE role
    VARCHAR(30);BEGIN SELECT DATABASE_ROLE INTO role FROM V$DATABASE;
    IF role = 'NO' THEN DBMS_SERVICE.START_SERVICE('prod');
    END IF;
    END;
    says trigger created, but during a swithover still the service is listeneing on listener.
    tns entry.
    prod =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (LOAD_BALANCE = YES)
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod2)(PORT = 1521)) ---> primary db entry
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = proddr)(PORT = 1521)) --> DR DB entry
    (CONNECT_DATA =
    (SERVICE_NAME = prod)
    thanks in advance.
    Edited by: 854393 on Dec 29, 2012 11:52 AM

    Hello;
    So in the example below replace "ernie" with the alias you want the client to use.
    I can show you how I do it :
    First an entry need to be added to the client tnsnames.ora that uses a SERVICE_NAME instead of a SID.
    ernie =
    (DESCRIPTION =
        (ADDRESS_LIST =
           (ADDRESS = (PROTOCOL = TCP)(HOST = Primary.host)(PORT = 1521))
           (ADDRESS = (PROTOCOL = TCP)(HOST = Standby.host)(PORT = 1521))
           (CONNECT_DATA =
           (SERVICE_NAME = ernie)
    )Next the service 'ernie' needs to be created manually on the primary database.
    BEGIN
       DBMS_SERVICE.CREATE_SERVICE('ernie','ernie');
    END;
    /After creating the service needs to be manually started.
    BEGIN
       DBMS_SERVICE.START_SERVICE('ernie');
    END;
    /Several of the default parameters can now be set for 'ernie'.
    BEGIN
       DBMS_SERVICE.MODIFY_SERVICE
       ('ernie',
       FAILOVER_METHOD => 'BASIC',
       FAILOVER_TYPE => 'SELECT',
       FAILOVER_RETRIES => 200,
       FAILOVER_DELAY => 1);
    END;
    /Finally a database STARTUP trigger should be created to ensures that this service is only offered if the database is primary.
    CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
    DECLARE
    V_ROLE VARCHAR(30);
    BEGIN
    SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
    IF V_ROLE = 'PRIMARY' THEN
    DBMS_SERVICE.START_SERVICE('ernie');
    ELSE
    DBMS_SERVICE.STOP_SERVICE('ernie');
    END IF;
    END;
    /lsnrctl status - should show the new service.
    When I do this the Database will still register with the listener. I don't give that to the clients. That one will still be available but nobody knows about it. Meanwhile "ernie" moves with the database role.
    So in my example the default just hangs out in the background.
    Best Regards
    mseberg
    Edited by: mseberg on Dec 29, 2012 3:51 PM

  • Do I need to create billing for FD (free delivery) sales order

    Hi
    I have a question. I created first a sales order (FD) in our sap system. but I don't know whether I need to create billing for the FD order. when I try to create billing for this FD order, SAP cannot to process it.
    I also research configuration. in VOV8, SAP not set billing function.
    thanks
    Henry

    Hi henry
    If you have created Free of charge delivery (FD) sales order then the item category will be KLN only.After PGI then stock level will reduce  and the effect of the stock is that you are issuing stock to  customer at free of charge.And as you have assigned cost center then the data will flow to the controlling area and the Financial document  after  PGI.
    Secondly if you assign TANN as a item category and do delivery and then PGI then if the reference document is different then it will have affect as the KMN and TANN item categories doesn't have same features
    Regards
    Srinath

  • Incorrect field KNA1-STCEG in output list for input tax Line items-RFUMSV00

    Hi all,
    I found the incorrect field in RFUMSV00 - Advance Return for Tax on Sales/Purchases. If you want to configure the output list for Input tax: Line items, there is the field VAT Registration No. which has to be LFA1-STCEG, but there is incorrect field KNA1-STCEG. After that I cannot find the values for this field in my output.
    In the output list for Output tax: Line items there is correct field in configuration /LFA1-STCEG/.
    I tried to find some SAP notes but without avail.
    Thanks for help.
    Miroslav

    Hi,
    Please check the following OSS note:-
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=736203
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=640269
    It is picked up from bseg-stceg and not from lfa1-stceg or kna1-stceg
    Regards,
    Gaurav

  • When do I really need to create indexes for a table?

    Once I was talking to a dba in a conference.
    He told me that not always I have to create indexes for a single table, it depends of its size.
    He said that Oracle read registers in blocks, and for a small table Oracle can read it fully, in a single operation, so in those cases I don't need indexes and statistcs.
    So I would like to know how to calculate it.
    When do I really need to create indexes for a table?
    If someone know any documment that explain that, or have some tips, I'd aprecciate.
    Thanks.
    P.S.: The version that I'm using is Oracle 9.2.0.4.0.

    Hi Vin
    You mentioned so many mistakes here, I don't know where to begin ...
    vprabhu_2000 wrote:
    There are different kinds of Index. B-tree Index is by default. Bit map index, function based index,index organized table.
    B-tree index if the table is large This is incorrect. Small tables, even those consisting of rows within just one block, can benefit from an index. There is no table size too small in which an index might not be benefical. William Robertson in his post references links to my blog where I discuss this.
    and if you want to retrieve 10 % or less of data then B-tree index is good. This is all wrong as well. A FTS on a (say) million row table could very well be more efficient when retrieving (say) just 1% of data. An index could very well be more efficient when retrieving 100% of data. There's nothing special about 10% and there is no such magic number ...
    >
    Bit Map Index - On low cardinality columns like Sex for eg which could have values Male,Female create a bit map index. Completely and utterly wrong. A bitmap index might be the perfect type of index, better than a B-Tree, even if there are (say) 100,000 distinct values in the table. That a bitmap index is only suitable for low cardinality columns is just not true. And what if it's an OLTP application, with lot's of concurrent DML on the underlining table, do you really think a bitmap index would be a good idea ?
    >
    You can also create an Index organized table if there are less rows to be stored so data is stored only once in index and not in table. Not sure what you mean here but an IOT can potentially be useful if you have very large numbers of rows in the table. The number of rows has nothing to do with whether an IOT is suitable or not.
    >
    Hope this info helps. Considering most of it is wrong, I'm not sure it really helps at all :(
    Cheers
    Richard Foote
    http://richardfoote.wordpress.com/

  • How to create stored procedure for insert update and delete operations with input output paramters?

    I  have the follwing table is called master table contain the follwing fields,
    So here i need to create  three Stored procedures 
    1.Insert operations(1 o/p paramter,and  14 input paramters)              - uspInsert
    2.Update operations(1 o/p paramter,and  14 input paramters)          - uspUpdate
    3.Delete Operations(1 o/p paramter,and  14 input paramters)          
     - uspdelte
    The following is the table ,so using this to make the three sp's ,Here we will use Exception machanism also.
    Location 
    Client Name
    Owner 
    ConfigItemID
    ConfigItemName
    DeploymentID
    IncidentID
    Package Name
    Scope 
    Stage
    Type 
    Start Date
    End Date
    Accountable 
    Comments
    So can u pls help me out for this ,bcz i knew to stored procedure's creation.

    I  have the follwing table is called master table contain the follwing fields,
    So here i need to create  three Stored procedures 
    1.Insert operations(1 o/p paramter,and  14 input paramters)              - uspInsert
    2.Update operations(1 o/p paramter,and  14 input paramters)          - uspUpdate
    3.Delete Operations(1 o/p paramter,and  14 input paramters)            - uspdelte
    The following is the table ,so using this to make the three sp's ,Here we will use Exception machanism also.
    Location 
    Client Name
    Owner 
    ConfigItemID
    ConfigItemName
    DeploymentID
    IncidentID
    Package Name
    Scope 
    Stage
    Type 
    Start Date
    End Date
    Accountable 
    Comments
    So can u pls help me out for this ,bcz i knew to stored procedure's creation.
    Why you have to pass 14 parameters for DELETE and UPDATE? Do you have any Primary Key?  If you do NOT have primary key in your table then in case you have duplicate information, SQL will update both or delete them together. You need to provide DDL of
    you table. What are the data types of fields?
    Best Wishes, Arbi; Please vote if you find this posting was helpful or Mark it as answered.

  • Can i create a button that allows users to insert a line into a table if neede more space

    if so how in step by step please and thank you

    Hi,
    In Acrobat Form, you create a hidden Text Field which will only get visible on a Button click for inserting additional text.
    Regards,
    Anoop

  • Aperture Workflow - need help creating workflow for photo management

    Hi -
    I currently shoot with a Canon SD890 (point & shoot) and a Nikon D300 (SLR). My photography is either personal photography or street photography. I may use some of my photography for a web project but that should not be considered right now. I shoot jpegs with the SD890 and RAW with the D300. I need to create a workflow that will allow me to manage all of my photos as well as the RAW vs JPEG aspect. Here are a few initial questions:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives?
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    Thanks for your help!

    jnap818 wrote:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives? I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    No, use a single Library. Aperture will have no problems with the various formats or with various different cameras.
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    Actually those date or event driven batches of images are very logically "Projects" in Aperture. Simply name each group of images as you import into AP as a new Project.
    IMO it is not good to import camera-to-Aperture (or direct to any app other than the Finder). Best is to use a card reader and use the Finder to copy images from the camera card to a folder on the computer hard drive.
    Below is my Referenced-Masters workflow:
    • Remove the CF card from the camera and insert it into a CF card reader. Faster readers and cards are preferable.
    • Finder-copy images from CF to a labeled folder on the intended permanent Masters location hard drive. I label that folder with the Project name suffixed with _masters, that way I can always find the Masters if Aperture forgets where they are.
    • Eject CF.
    • Burn backup copies of the original images to DVDs or to hard drives (optional backup step).
    • Eject backup DVDs/hard drives (optional backup step).
    • From within Aperture, import images from the hard drive folder into Aperture selecting "Store files in their current location."
    • Review pix for completeness (e.g. a 500-pic shoot has 500 valid images showing).
    • Reformat CF in camera, and archive DVDs of originals off site.
    Note that the "eject" steps above are important in order to avoid mistakenly working on removable media.
    I strongly recommend that every Aperture user spend $35 and work through the tutorial CD Apple Pro Training Series: Aperture 2 (Apple Pro Training Series) by Ben Long, Richard Harrington, and Orlando Luna (Paperback - May 8, 2008), Amazon.com. Note that the value is in working the tutorial, not in using the book as a manual.
    Good luck!
    -Allen Wicks

  • While creating  VK11 for output tax it should allow only Output taxcode

    Hi all,
    while creating condition record VK11 for output tax ,in condition record only output tax code should be possible ,if they use any input tax code then error messsage should come or system should not allow to create.how we do this.
    Thanks in Advance,
    Bala

    Hi ,
    If you see it practically in Production..You will be maintaing condition record once and even if changes, it won't be so often. Secondly in Tax procedure what ever Tax codes are present that will displayed as a choice while maintainig condition record.
    If  it affecting by maintaining wrong code then better would to be educate Business users as per my understanding.
    Thanks,
    Veerendra

  • Public API's to create delivery for each delivery line

    I've requirement to create unique delivery for each delivery line using API. Can any body use public API to meet this requirement. Please ! any idea and thought !
    R12.
    Thanks in Advance,
    Ramana

    Try the WSH_DELIVERIES_PUB.Create_Update_Delivery API. The API creates a new delivery record or updates an existing delivery record in WSH_NEW_DELIVERIES table. The DELIVERY_ID, NAME and return status of a new delivery are passed as OUT parameters, while the DELIVERY_ID or NAME of an existing delivery for update is passed as an IN parameter.
    Pass IN parameter p_action_code value UPDATE ---> incase you want to update existing delivery.
    Pass IN parameter p_action_code value CREATE --> incase you want to create a new dleivery.
    Parameter Usage Type Required
    p_api_version_number IN Number x
    p_init_msg_list IN Varchar2 -
    x_return_status OUT Varchar2 -
    x_msg_count OUT Number -
    x_msg_data OUT Varchar2 -
    p_action_code IN Varchar2 x
    p_delivery_info IN OUT Record x
    p_delivery_name IN Varchar2 -
    x_delivery_id OUT Number -
    x_name OUT Varchar2 -
    I hope all this infor. comes handy.
    -Dhawang

  • How to create procedure for header table and  item table

    Hi,
    Can anyone help me to understand how to write SQLscript procedure for looping item table inside header table?
    I fetch records from sales header table ( order number ) and using that order number to loop sales item table,thereafter I need to perform business logic.
    Any example similar above requirement would be helpful
    thanks
    Sourav

    Hi Folks,
    This is my use case
    1) Select fact records from tables (say A,B,C,D ) with suitable Joins and certain Where conditions
        SELECT ordid FROM TABLES A,B,C,D on join condition where ....
    2) Using above header records , I have to select each and every item level data from different tables ( say X,Y,Z ) and perform calculation to derive new columns to update a new table ( Zreport )
    UPDATE TABLE ZREPORT
    SET col1 = ( Select qty  FROM TABLE X WHERE ordid = A.ordid
    UPDATE TABLE ZREPORT
    SET col2 = ( Select price FROM TABLE y WHERE ordid = B.ordid.
    and so on for other columns..
    3) Zreport table will be used for reporting.
    I would like to know the best way to achieve this to gain performance.
    Appreciate the help!
    Thanks
    Sourav

  • Do we need to create workmanager for applns in WL 10.3?

    Do we need to create execute threads manually using work manager in weblogic 10.3 (ALSB)/ OSB . or have they been taken care of by default thread pooling mechanisim.
    Does creating workmanager and assigning 'n' no of threads to appln really help performance of application?
    Appriciate any Suggestion.
    Regards,
    Sreepad K

    Hello Sreepad,
    Do we need to create execute threads manually using work manager in weblogic 10.3 (ALSB)/ OSB . or have they been taken care of by default thread pooling mechanisim.For production environments, it is always suggested to use custom work managers to optimize the use of applications and enhance security. OSB has a default work manager but it is not recommended to use it in your production environments. To know more about work managers, please refer -
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/config_wls/self_tuned.html
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/ConsoleHelp/taskhelp/work/CreateGlobalWorkManager.html
    Regards,
    Anuj

  • While creating VK11 for output tax error should be ther for input tax codes

    Hi all,
    while creating condition record VK11 for output tax ,in condition record only output tax code should be possible ,if they use any input tax code then error messsage should come or system should not allow to create.how we do this.
    Thanks in Advance,
    Bala

    Hi Jelena Perfiljeva ,
    Thanks for the Reply
    Its  JIVP,JIVC , VAT condition types (India).

  • Requirment class & Procedure for each schedule line category

    Hi all,
    In requirment class we have a switch on/off indicator for avai check and TOR.In define procedure for schedule line category also we have the same.
    If I dont want the system to carry out availabilty check, I can switch off the indicator in requirment class or at schedule line category.
    My question is why we have these indicators in 2 places.
    It is written we can fine tune these settings at Define procedure for schedule line category settings
    Could anyone explain in details with Business scenarious
    Thanks in advance
    Mano

    Hi,
    1. Availability check at Requirements Class level -
    The requirements class contains all control features for planning such as relevance for
    planning, requirements planning strategy and requirements consumption strategy.
    In addition, it is specified at a global level whether an availability check is to take place for
    the material in the sales and distribution documents on the basis of the ATP quantity
    (ATP = available to promise) and whether requirements are to be passed on.
    2. Availability check at Schedule line category level -
    A finer degree of control can be obtained for sales documents using the schedule line category.
    Replenishment lead time is only included in the check performed on the basis of the
    ATP quantity.
    You can control with the schedule line category whether an availability check and
    transfer of requirements should be carried out in the sales documents.
    Note -
    1. At the global requirements class level, the availability check can only be switched on in combination with the transfer of requirements. At schedule line level, the settings are proposed from the requirements class.
    2. If the availability check is switched on at requirements class level, it can be switched off at schedule line level. However, you cannot switch on the availability check at schedule line level, if it is switched off at requirements class level. You can make this setting at schedule line level. But the system ignores it and the setting for the requirements class applies.
    3. Also, at schedule line level when the availability check is switched on, the transfer of requirements can be switched off. For example, this makes sense for inquiries or sales information.
    4. The settings specific to schedule lines for performing an availability check are only relevant for sales documents. In the shipping documents, the settings from the requirements class and the delivery item category are used. As with the schedule line category, the availability check can be switched off as required in the delivery item category.
    regards
    bhaskar

Maybe you are looking for

  • Credit Exposure - Sales Value

    Hi, I have encountered a problem...here in my client automatic credit check has been implemented...in the settings we have not checked the open order and open delivery check box but still the system is taking into account all open order and open deli

  • How do I find tools in the bar?

    I cannot see where I can find and use Tools in the bar of the homesite.

  • Application off screen - Mac OS X 10.7

    Application is off screen. Happens after using 27inch display. Clearly a resolution issue. Tried everything including playing with the resolution, etc. After looking at several discussions and forums the one that works on my Macbook Air https://discu

  • How do I get firefox to place photos from my e-mails into "iPhoto"??

    I had safari before, now have firefox.....firefox will only let me put photos from e-mails into "downloads". I want them in iPhoto, but they will not go from firefox nor from downloads now....unless I switch back to safari and safari is extremely slo

  • Import MPD in Oracle

    Hi all, is it possible to import MPD files into Oracle? (I think it is the Microsoft Project's MPD). Thanks, Tamas