Dynamic created  alv adding each tax code  in bottom of column.

Hi expert,
i created dynamic alv using dynamic internal table and  want to add each column value in bottom of each column
example :1
                2
                3
     total  
this is not simple alv report it's dynamic alv.
pls give me code.
regards.
Vikash

In your dynamic internal tables, does all fields can be summed?
If yes, I would do like this. Create a generic a variable say V_FIELD. Assume maximum program may have 30 fields.
data v_field type char30
data v_num type char2.
data v_field1 type char30.
data v_field30 type char30.
do.
add 1 to v_num.
CONCATENATE 'V_FIELD' v_num into v_field.
assign (v_field) to <fld>."This holds the value of the field. Initially 0.
ASSIGN COMPONENT sy-index OF STRUCTURE <YOUR_DYNAMIC_STURCT> TO <fld_value>.
if sy-subrc = 0.
<fld> = <fld> + <fld_value>.
else.
exit.
endif.
enddo.
As the DO loop process it sums up for each column total into each variable. Once complete data is processed through, add these variable to as new record to internal table.
If all fields are not summed type of field then validate by the on the field type and process the logic

Similar Messages

  • Pull the tax code automatically in the column field ??

    Could you please guide me how to pull the tax code automatically in the column field in the Sale Order form? I don't refer to the tax determination.

    Hi,
    In the Demo database, please create a new Business Partner and assign a tax code under the Business Partner Master Data > Accounting tab > tax tab. Make sure that the Business Partner is tax liable.
    Then try to create a SO for that BP Code and see whether the tax code is populated in the tax code field.
    Also, check that the Item taken into the SO is tax liable and under the Sales Tab what tax code is selected.
    Please update the results from the testing.
    Kind Regards,
    Jitin
    SAP Business One Forum Team
    Edited by: Jitin Chawla on Aug 11, 2011 5:55 PM

  • Error in added withholding tax code in XK02-extended withholding tax

    dear all,
    I've just activate extended withholding tax using invoice posting.
    When I want to add withholding tax code in vendor master data XK02 it appear error that tax code I've input does not exist in table T059Z, because it read country value "ID" beside the tax code.
    For example I've create tax code L1 in country ID, and add L1 in XK02, the error appear 'Entry 'ID L1' does not exist in T059Z.'
    Does anyone ever experience the same error?

    Hi Oscar,
    i would like to know whether the company and the vendor are both in country ID.
    if that is the case, just check in "Check Withholding Tax Countries" whether the country has been included.
    and also assign the WHT type to your co code in"Assign Withholding Tax Types to Company Codes".
    define the WHT type first and then WHT code.
    this should solve your problem. if not, kindly revert.
    *award points if this helps*
    Regards,
    CA. Karthik Narayan N S
    SAP-FICO Consultant

  • Transaction FOV1 - Create Lease Out - Default Tax Code

    Hi,
    I was hoping someone could help.  When I create a new Lease-out I have noticed that within the "Pay Data" tab that the tax code always defaults to the same tax code.   Now that we have changed to 20% VAT does anyone know where the default tax code is maintained.  Any help would be appreciated.

    Hi Danny,
    please check the following customizing:
    - Real Estate - Rental - Lease-Out - Determine Number Assignment For Lease-Outs
    Specification for Rental agreement, Number Assignment Rules
    Predefined Entries for Creating Rental Agreements
    There you can define Sales tax indicator in lease-out per company code.
    Hope that helps.
    Regards, Franz

  • Dynamically Create ALV or List Viwer

    Dear Gurus,
    i have one table with 4 fields (MODULE/LINE/OVEN/NOS)
    and there values are follows
    Module1/Line1/Oven1/5
    Module1/Line1/Oven2/2
    Module1/Line1/Oven3/3
    Module1/Line1/Oven4/5
    Module1/Line2/Oven1/4
    Module1/Line2/Oven2/3
    Module1/Line2/Oven3/6
    Module2/Line1/Oven1/7
    Module2/Line2/Oven1/9
    Module2/Line2/Oven2/1
    Module2/Line3/Oven1/2
    Module2/Line3/Oven2/1
    Module2/Line3/Oven3/4
    Module2/Line3/Oven4/4
    Module2/Line3/Oven5/6
    my problem is.........i need to get this for display in ALV or List viwer
    I selected wot is the Module
    then line numbers should be in columns and Oven number should be in rows the Qty placed in relevant index
    Ex if i select Module 2 display shoud be like follows
    Module2
    Line1-Line2-Line3
    Oven179--
    2
    Oven2--1--
    1
    Oven3----
    4
    Oven4----
    4
    Oven5----
    6
    no of lines in module no of ovens for lines will change time to time therefore i want to create display layout in dynamically
    please help me to solve this.

    HI,
    see this code this may be useful for u.
    write:/10 'line1',20 'line2',30 'line3'.
    write:/ 'oven1','7' under 'line1','9' under 'line2','2' under 'line3'.
    write:/ 'oven2','1' under 'line2','1' under 'line3'.
    write:/ 'oven3','4' under 'line3'.
    write:/ 'oven4','4' under 'line3'.
    write:/ 'oven5','6' under 'line3'.
    rgds,
    bharat.

  • Dynamically create javascripts using pl/sql code from page header

    I understand by placing a javascript code in the page header is one of the way adding javascript functionality to your pages.
    But lets say I need (dynamically) bring my javascripts into the page header using my pl/sql package/functions like core_func_jscript_pkg.get_jscript('jf_isnumber');
    1- How can I call my pl/sql package/functions from page header area of Apex?
    If I need to use 20 javascripts functions into a page which I have them stored in database (using them on my other pages) and I don't want to copy or re-write them in Apex, instead I like to have 20 line of calls to my pl/sql package like:
    core_func_jscript_pkg.get_jscript('myFirstJavascript');
    core_func_jscript_pkg.get_jscript('mySecondJavascript');
    core_func_jscript_pkg.get_jscript('myThirdJavascript');
    core_func_jscript_pkg.get_jscript('myFourthJavascript');
    ... and so on.
    2- In past we wrote our web apps using pl/sql example:
    htp.p('<html>');
    htp.p('<head>');
    core_func_jscript_pkg.get_jscript('jf_get_today_date');
    core_func_jscript_pkg.get_jscript('someothe_scripts');
    htp.p('</head>');
    htp.p('</html>');
    I like to do the same thing in Apex, Can I accomplish this in Apex?
    Thanks again
    -iahmadi

    There was a <head> content & dynamic metadata with APEX? that should provide some pointers.

  • Adding 1099 Tax Codes after payment of the invoices ?

    Hi !
    We have a client where the 1099 Codes were not added in vendor master, and obviously in invoices , subsequently the payments have been posted to the vendors a few months back. Now it is realized that the 1099 info is missing from the reports and the documents and we are looking for ways to include the 1099 info in the posted documents.
    Has anyone had a similar situation ? What was the solution or approach ?
    Thanks

    Hi,
    The modifications to vendor master will not modify the posted documents.
    Only the future documents will have that effect.
    One option is to develope a report for these documents to have 1099 info.
    Regards,
    Ashutosh

  • HOW to create TAX code in FTXP SCREEN

    Hi guru’s
    Can anybody explain , hot to maintain the tax code for below mentioned structure.
    Bed16% ed2%secess1%8.5%deductible4%non deductible.
    Please explain me stet by step , inFTXP.. what are inputs I need to give.because  in ftxp screen,
    Thanks
    mm

    before getting into FTXP see if u have maintained each and every condition types in proper framework in the tax procedure u r using.
    after checking this go to FTXPentercountry codeentergive the tax code u want to create--enter-give the tax code nemenclaturegive tax type i.e. whether input or output tax-enter--in this screen u have to maintain the percentage against the condition types and save.
    regards,
    indranil

  • HOW TO CREATE TAX CODE IN FTXP ?

    Dear All ,
                             pl help me to maintain tax code in FTXPin step by step manner,  , & i have to use cond type as  JVRD , ZSRT, ZEX3 , ZES3 so how i can club these cond with this tax code , i want all the necessary inputs for this it is urgent
    pl help
    sap11

    before getting into FTXP see if u have maintained each and every condition types in proper framework in the tax procedure u r using.
    after checking this go to FTXPentercountry codeentergive the tax code u want to create--enter-give the tax code nemenclaturegive tax type i.e. whether input or output tax-enter--in this screen u have to maintain the percentage against the condition types and save.
    regards,
    indranil

  • Tax code blocking while creating a Purchase Order

    Hi,
    While creating a PO.....it should not allow to create with one tax code,say M1, for that i tried to delete the tax code, but the deletion is not advisable. So, I need a USER EXIT or BADI which runs before saving the PO, which can be used to block that particular tax code in the PO creation.
    Thanks
    Nagesh

    Dear,
    Please below path.
    SPRO -> Material Management -> Purchasing -> Purchase Order -> Define Screen Layout at Document Level.
    Select ME21N - Create purchase order t-code and click on detail button.
    than click on selection group - GR/IR Control and make display entry for tax code.
    Than po creater can't maintain tax code in purchase order
    NOTE: - If you want to nill tax code please nill at the time of info record ans want to maintain specefic tax code maintain it in info recoerd.
    Regards,
    Mahesh Wagh

  • Dynamically creating a CR by code

    Post Author: ffderennes
    CA Forum: .NET
    Hello, I am discovering crystal reports (I have the basic version included with VS 2005).  I would like to dynamically create a report by the code.I need to generate a report from a Dataset or DataTable but this source is variable.The columns of the table are not always the sames. I did research, and all the tutorials I have seen create models primarily via visual studio (with known column names). I wonder if it is possible to create and edit from A to Z the report by the code.  I tried (creation of the object ReportDocument, but I can not add a section, TextObject ...).  Visual Studio back me errors and tells me that these objects have no constructor.  I began to wonder if it was possible to do that.If yes, in which version (maybe mine is too old).  In any case, if someone has a runway, an example or a tutorial to advise me, I am taker.  thank you in advance.

    Post Author: JonathanP
    CA Forum: .NET
    You can use the Report Application Server (RAS) engine to dynamically create reports, or add items to existing reports. RAS is not included with the verison of Crystal Reports that comes with .NET. Full versions such as XI R2 do include RAS.
    Some samples can be found on the support site.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=http--supportbusinessobjectscom-communityCS-FilesandUpdatesNoNav-rasvbnetwebsamplesexeasp&sliceId=&dialogID=22114090&stateId=1 0 22112331

  • Tax code - Account key

    Hi all,
    Each tax code determines one account key. Each account key determine one GL account, right ? Could I define one tax code which can post to many GL accounts ?
    Thank you very much & regards,
    Sylvecast.

    Dear all,
    Thanks for your reply. But what I mean is: Could I assign <b>more than one GL Tax accounts to one tax code</b>.
    By exemple: I have a tax code whose rate is 10%. But there are several cases i post the tax amount to a GL tax account, another case i post this amount to another one. So, i need create two tax codes which have the same tax rate and assign them to 2 tax account depend on my scenario OR <b>just create one tax code and assign it to 2 GL Tax account</b> ?
    Thank you very much,
    Best regards,
    Sylvecast.

  • Is there any report that can show tax rates per tax code per state

    Hello Gurus,
    I checked all standard SAP reports and they only list taxes based on the documents created. I am trying to develop a list of tax rates that are based on each tax code per state. Can some one suggest me how I can go about this.

    Hi,
    Are you using SAP to derive tax rates at Jurisdiction level or a third party like Vertex or taxware? I haven't come accross a situation where we configure SAP to maintain tax rates per state. It is connected to third party via RFC and the rate is derived based on the jurisdiction code however, we configure the jurisdiction code numbering and levels in SAP.
    Thanks
    Manoj

  • How to access a dynamic created attribute in a context node?

    <i>Hello,</i>
    <i>who could help? I can't set a value for a dynamically created attribute which is bind to a table.</i>
    <i>My context of the view looks as follow (is defined in NetWeaver):</i>
      - Context
         - Availability (Node)
             - vctxService (Attribute)
             - vctxServiceDesc (Attribute)
             - ... (further predefined attributes)
             - ... (some have to be set dynamically as follows)
    <i>Then I have added attributes dynamically in the wdDoModifyView(...) - method, as follows:</i>
    for (int i = 0; i < max; i++) {
       // some code to dynamically create table columns
       // adding attributes dynamically
       IWDAttributeInfo attrInfo =       wdContext.nodeAvailability().getNodeInfo().      addAttribute("vctxAvailability_" + i, "ddic:com.sap.dictionary.string");
       tv.bindText(attrInfo); // bind to TextView in table
    <i>In the method onPlugFrom... I tried to set the values for the attributes "vctxAvailability_ + i" as follows:</i>
    for (int i = 0; i < max; i++) {
       IAvailabilityElement newAvailNodeElement =     wdContext.createAvailabilityElement();
       // some values will be set for the
       // predefined attributes of AvailabilityNode
       // newAvailNodeElement.set...( value );
       // newAvailNodeElement.setVctxService( xy.getServ() );
       // now the values of dynamically created and added
       // attributes in AvailabilityNode will be added
       // THIS DOESN'T WORK
       newAvailNodeElement.setAttributeValue    ("vctxAvailability_" + i, "value" + i);
    <i>It would be great if someone could help me.
    Thanks in advance.
    Kind regards,
    Carsten</i>

    Carsten,
    Here is a sample code that creates context attributes dynamically and also sets values:
    //Creates a node
    IWDNodeInfo nodeInfo = wdContext.wdGetAPI().getRootNodeInfo().addChild("TestNode", null, true, true, false, true, false, true, null, null, null);
    //If you want to bind the node to a model node then the
    //second argument to the above method should be the
    //model class.
    //Creates an attribute under the node just created.
    IWDAttributeInfo testAttrib = wdContext.wdGetAPI().getRootNodeInfo().getChild("TestNode").addAttribute("testAttrib", "ddic:com.sap.dictionary.string");
    IWDNodeElement testNode = wdContext.getChildNode("TestNode", IWDNode.LEAD_SELECTION).getCurrentElement();
    IWDNode testNode2 = wdContext.getChildNode("TestNode", IWDNode.LEAD_SELECTION);
    //Now you can bind testNode with the Model Node
    //You can also set a value to the newly created attribute
    testNode.setAttributeValue("testAttrib", new String("Value"));
    Hope this helps.
    Shakeel

  • Formatted Search that will change the Tax code in SO.

    Hi All,
    I have a requirements that will allow me to change the Tax Code column via formatted search. Like for exmaple, i have 50 line items in SO and the tax code is ZO. If i want to change the tax code, i will select it for individual items. Anyone can help me to have an alternative solution that will prevent me to change it per item.?
    thanks and regards,
    vin

    Hi Melvin........
    You can have a work around for this....
    Just create a UDF say U_Tax at Header level...
    Just Create a FMS for Tax Code say..
    SELECT *  FROM OSTC T0
    Save this tax code FMS to thus UDF.
    When yo select a particular Tax Code in this Field through this saved FMS
    this Tax Code gets copied to each and every line say for 100 lines also.
    For this you have run other FMS which is below...
    SELECT $[ORDR.U_Tax.0]
    Save above FMS in tax Code field say in Sales Ordr form.
    Now when you do this you can see if you have 100 line items and you want to copy same tax code in a single click you have to just select single tax code via FMS in U_Tax as i suggested.
    The moment you select this Tax Other FMS will be fired and the same will be copied to other 100 lines....
    Hope this will help you.....
    Regards,
    Rahul

Maybe you are looking for