Decimal for a weight field and form calc on a table - header text

Hi Guys,
Need your help on 4 issues I am facing.
1) I am using a Quantity field and till interface the value is 100.000 but in adobeform print its showing 100. How to get decimals printed.
2) in item details there is a another quantity field and in old script its printed as &VBPLP-VEMNG&(7.0) but the field length is 12 and 3 decimals. If I am directly making limit leading digits to 7 then in output the values is printed as 0.
3) In item details printing there is a last field weight which is also decimal field. user wants to print this field value text(Weight) only when a text field value has "X". I got it perfectly getting printed if value is "X" and is not getting printed when its space. but the issue is the text weight is not getting printed only at first page and for subsequent pages the weight is getting printed. In what event I have to write the code for this scenario and currently I had written code in initialize.
Item Layout :
If a value of interface field is "X" the output should be
ID  | Material no | PO no  | SO no | Qty  | unit | Weight  |
If the value of interface field is " " the output should be
ID  | Material no | PO no  | SO no | Qty  | unit |
4) After completion of item details there is a requirement to print 2 standard texts. If 1st standard text has no value then it should print space and the next standard text text and value should move up and display. currently i had kept  text1,std text value1,text2,std text value2 in flowed subform only.
Awaiting for corrections......

Hi Guys,
The issue got solved. I am sharing the solution so that it may be useful for others.
1) solved by using pattern - num{$z,zzz9.999}
2) not necessary
3) In Pagination tab of header - you need to check the check box - keep previous , keep next.
4) have to make the text box to fit a single line and check box multiple lines and keep each standard text in a flowed sub form. Now if 1 st standard text is blank then second standard text will come up.
Thanks
Abilash

Similar Messages

  • Execute BAPI for different input values and dispaly data in a table

    Hi all,
    I have a specific problem about executing BAPI multiple times for different input values and didplay result in a table.
    I am using the code similar to the following logic.
    Bapi_Mydata_Input in = new Bapi_Mydata_Input();
    wdContext.nodeBapi_Mydata_Input().bind(in);
    String in = wdContext.currentperdataElement.getnumber();
    in.setDestination_From(10)
    wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();
    in.setDestination_From(20)
    wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();
    in.setDestination_From(30)
    wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();
    And I want to display the data in a single table. I want the result in a table for Bapi execution based on input parameters passed 10,20 30.
    But I am getting the table data only for the input parameter 30.I mean its actually display the data in table only for the last input parameter.
    So May I ask you all if you know the solution for this problem.PLease advise me with some tips .or sample code is very much appreciated.I promise to award points to the right answer/nice advises.
    Regards
    Maruti
    Thank you in advance.

    Maruti,
    It seems that WDCopyService replaces content of node, rather then adds to content.
    Try this:
    Bapi_Persdata_Getdetailedlist_Input frelan_in = new Bapi_Persdata_Getdetailedlist_Input();
    wdContext.nodeBapi_Persdata_Getdetailedlist_Input().bind(frelan_in);
    final Collection personalData = new ArrayList();
    String fr1 = wdContext.currentE_Lfa1Element().getZzpernr1();
    frelan_in.setEmployeenumber(fr1);
    wdThis.wdGetFreLanReEngCompController().executeBapi_Persdata_Getdetailedlist_Input();
    WDCopyService.copyElements(wdContext.nodePersonaldata(), wdContext.nodeNewPersonaldata());
    for (int i = 0, c = wdContext.nodePersonaldata().size(); i < c; i++)
      personalData.add( wdContext.nodePersonaldata().getElementAt(i).model() );
    String fr2=wdContext.currentE_Lfa1Element().getZzpernr2();
    frelan_in.setEmployeenumber(fr2);
    wdThis.wdGetFreLanReEngCompController().executeBapi_Persdata_Getdetailedlist_Input();
    WDCopyService.copyElements(wdContext.nodePersonaldata(), wdContext.nodeNewPersonaldata());
    for (int i = 0, c = wdContext.nodePersonaldata().size(); i < c; i++)
      personalData.add( wdContext.nodePersonaldata().getElementAt(i).model() );
    wdContext.nodeNewPersonalData().bind( personalData );
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • How to compare a database field and form field and highlight differences

    Hi there,
    I have been trying to find a coldfusion function that will help, I have tried comparing two strings but the results of -1 1 or 0 aren't very useful.
    I need to compare a database field with a form field and highlight all the differences in the form field in red.
    Thanks
    Katie

    This is a non-trivial process.  Rather than doing a compare, you really are wanting to do a diff.  CF doesn't do this out of the box, but you might want to have a sniff around on Google to see if anyone has implemented anything for CF.
    Some reading:
    http://en.wikipedia.org/wiki/Diff#Algorithm
    Adam

  • Prerequsites for deciding Key fields and data fields

    Hi
    I would like to know the criteria to decide upon KEY fields and Data fields for an infoprovider.

    Hi,
    What is a Key field in a Database and How should I choose one?
    Keys are crucial to a table structure for many reasons, some of which are identified below:
    They ensure that each record in a table is precisely identified.
    They help establish and enforce various types of integrity.
    They serve to establish table relationships.
    Datafields may be Charecteristics and it may be keyfigures
    Regards,
    Marasa.

  • How to know corresponding info object for R/3 field and viceversa

    Hi....
    How to know corresponding object for a filed in r/3 data source and viceversa..While defining transformations.
    We can't do mapping of all objects to fields with the definition......!!!
    In 'rsosfieldmap'' what information we should give to know the proper tranformation...?
    thank u.....

    Hi,
    There are two ways to know the corresponding info objects in R/3 fields:
    1)  goto se11 t-code, enter RSOSFIELDMAP and enter display button. in the next screen click contents and give the field name or info object name as per your requirement, and excute.
    2)  first go through the field description in r/3 and identify the similar description in BI. For your easy understanding use excel sheet , in that you can copy the data source fields and target info objects ( master data or transaction data ). then it will be easy to identify the similar description.
    Thank you.

  • What is the Best Approach for System Defined Fields and Default values

    Hi ,
    Please let me know that what can be the best approach for providing a Default value for the System defined fields when creating a User and How can we hide the System defined fields at the time of User creation

    You cannot provide default values for any attributes defined in the FormMetaData.xml file. You can only provide default values for fields defined in the User Defined Fields and supply a default value.
    You can using entity adapters to populate some of the values, but you must supply an Organization because there is an entity adapter that you cannot modify that verifies the organization name.
    -Kevin

  • Procedure for connecting print programme and form using Nace transaction?

    Hello Folks and Forms Guru's,
    Can u please tell me the entire procedure step by step for connecting a print programme to a form using Nace Transaction .
    Its a urgent requirement and points will be awarded.
    Om sai ram,
    Raghu

    goto NACE
    ...Select the Application
      ->click on output  types icon on application tool bar.
      -> Select the output type
      -> dbl click on processing routine from the tree
    it will display the form name & program name.
    click on change mode-> replace the program/form name.

  • Repeating table header text is bold and won't go

    I have an InfoPath 2007 form that I have published to a SharePoint 2010 site with Forms Services.
    When I open the form in the browser, the column titles in each repeating table appear in bold text. No matter what I do, I cannot make this go away. I have tried the obvious things, such as pressing the CTRL+B or CTRL+SPACE keys. I can apply or
    remove underline or italics but not the bold.
    We are still in changeover period so I can publish this to a MOSS site (no Forms Services) and the table headers are not bold when they open in the InfoPath client.
    Does anyone have any ideas?
    Thanks,

    Hi AdeleR,
    Thanks for your post.
    As what you have said, I think it’s may be a compatibility problem between InfoPath 2007 and SharePoint 2010.
    In order to clarify the reason, I suggest you to do some things as follows:
    1.      
    Compare the source code of the InfoPath page between SharePoint 2007 and SharePoint 2010 using IE developer tool.
    a.      
    Publish the InfoPath form to SharePoint 2007 and SharePoint 2010;
    b.     
    View the source code using IE developer tool;
    c.      
    Compare them.
    2.      
    Are you using IE to open the InfoPath form? Try to browse it using Firefox and give the results.
    3.      
    Re-create a new InfoPath Form and publish again and share the result.
    In addition, there are some new features in InfoPath 2010, have you considered about upgrading to InfoPath 2010.
    http://blogs.msdn.com/b/infopath/archive/2009/07/15/what-s-new-in-infopath-2010.aspx
    I have tried a couple of these points and here are the results:
    Compare the source code - I haven't done this because the 2010 site is using Forms Services and the MOSS one isn't (i.e. only one form opens in the browser and the other opens in the InfoPath client).
    I'm opening the browser-based form in IE8 and I have also tried opening it in Firefox 3.6.3. Both programs show the repeating table headers with bold text.
    I customised the sample Travel Request form and added a repeating table to it. When I published it to both the SP2010 and MOSS sites, the 2010 form that opened in the browser had bold headings; the MOSS/InfoPath client form didn't.
    I also created a blank form, added a table with title, a section and a repeating table. The only formatting I changed was to unbold the repeating table's column headers. Once I published the form, I got the same result as above.
    The form doesn't have the bold text when you preview it in InfoPath. It somehow gets it when you publish it to the SP2010 site. I'm trying to get InfoPath 2010 (for its cascading drop-down lists) so will see if that makes any difference.

  • Capture the Invoice Split Reason and update it in the invoice header text

    Hi All,
    We have a requirement where we need to capture the invoice split reason and update the reason in the one of the invoice header text.
    Problem is the routine where the split criteria is being determined is called a number of times, so how will we determine at what time of time do we need to capture the split reason. I mean at what iteration of the routine will we know that the split value is the right value.
    Is there any way to determine the number of iterations of a routine written for split?
    Require your valuable inputs for this issue....
    TIA
    Regards,
    Sharadendu

    Hi,
    Is your invoice split reason maintained in the header or item level?
    Try coding your logic in user exit MV45AFZZ and update header text using text id and save it in header text using
    FM [SAVE_TEXT|http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm].
    Before this logic use FM [READ_TEXT|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm] to determine if the header text is already updated. If yes,exit else save your HEADER_TEXT using SAVE_TEXT.
    This code can be written under FORM_USEREXIT_SAVE_DOCUMENT_PREPARE.
    Regards,
    Amit
    Edited by: Amit Iyer on Sep 1, 2009 8:46 PM

  • User-Defined Fields and Form Settings

    I have a User-Defined Field in the table "OCLG" and I'd like to show it in the "Activities Overview for Business Partner - xxx" window.
    Is possibile to do that by the "Form Settings" window? Here I don't find U-D Fields. Is there a way to show them?
    Or is there an other solution?

    Hi,
    This report is hardcoded. You need to create your own report for it. Better by Crystal Report.
    Thanks,
    Gordon

  • Delta is not working for custom appended fields (ZAKNA1) form R/3 to CRM

    Hi, This question pertains to Customer Master (KNA1) replication from R/3 4.7 to CRM 5.0 system via middleware.
    Standard fields are working fine. The custom fields also replicate fine during initial load and request loads however, delta is does not seem to be working. Any ideas or suggestions highly appreciated...Thank you.
    Best regards,
    ---Manohar

    Hello,
    it's a long way since you post this question. I'm facing a similar problem. When i enter XD02 and change only something in the classification system, the trigger for CRM update doesn't happen.  Only if i change also a master field...
    I needed the force the trigger so he can update correctly when the system is only changed in the classification system.
    At the time (3 years ago...:)) did you remember if you found a workaround for your problem??
    Thanks,
    Best regards,

  • Urgent -Need to Add new values for the LOV field in forms

    HI,
    I am customizing an existing form. In that i need to add some values for the LOV fied which can be used during run time.
    Please Can some one help me in doing this?
    Thanks
    Suresh P

    Go to Navigator and edit the LOV or create a new one.
    hope that helps!

  • Need XSLT code for comparing 2 fields and looping the repatitive attirbute filed to destination schema

    Need an Custom XSLT code... where i need to compare 2 attribute fields( Name and Start Date) fromInputMessagePart_0 with the 2 fields ( Name and Start Date) from InputMessagePart_1 and need to map the repetitive attribute field ( phoneno) from InputMessagePart_1
    to attribute field( PhoneNo of Destination schema.
    this will look like this
    Source Schema                                           
    Destination Schema
    InputMessagePart_0                                                 Item
    Record
          - Name                                                                     
    -Name
          - StartDate                                                                
    - StartDate
          - Addres                                                                   
    - PhoneNo
    InputMessagePart_1
         -Name
         -StartDate
         -PhoneNo
    Final output should look like by
    Details
    Name
    StartDate
    PhoneNo
    Details
    Name
    StartDate
    PhoneNo
    Details
    Name
    StartDate
    PhoneNo
    Details
    Name
    StartDate
    PhoneNo
    Need urgent assistance
    Thank you in advance
    BizTalkLearner

    could you also post your sample input instance and expected output instance
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • System Error in program CL_RSR_CHABIT and form SET_BIT 1-02-(See Long Text)

    Dear Experts,
    Recently, when I execute my intergrated planning query, I had the above error.
    I have searched the whole SDN for solution and I found many threads and solutions.
    I have tried all the solutions and still I have the error even after all objects are activated successfully.
    So I did more test in my system by doing the following:
    1) Created a new aggregated level on the same multiprovider MPR_PS004 (multiprovider is a joint of a real time cube CUB_PS006 and a normal cube CUB_PS004).
    2) Created a new query on the aggregated level and set it for planning, the error occurred.
    3) Removed the planning setting and there were no errors.
    4) Removed all characteristics from the query and added the characteristics one by one and execute the report each time a new characteristic was added. Errors occurred when I added the WBS Element Master Data infoobject.
    I did a checked on the WBS Element Master Data in RSRV and resolved all the errors found but still i have errors when I execute the new query,
    Have anyone encountered such a similar problem and managed to find a solution for it?
    If yes, please let me know what you did to solve it so I can try it on my side.
    Many thanks in advance.
    Shunhui.

    Hi Johannes,
    Thanks for the immediate reply.
    I receive the following error when I tried to find the note.
    "The requested SAP Note is either in reworking or is released internally only"
    Regards,
    Sriram

  • Dynamic Parallel Approval for HCM Process and Forms

    Hi everyone,
    I have a scenario where I need to use the "Dynamic Parallel Approval" (or to keep it simple, initially I tried using the "Parallel Approval" wizard)for a workflow used in the HCM Process and Forms.
    The standard task for approval in process and forms is TS17900101. I have mentioned a multiline container in the Miscellaneous tab of this task. However,I was unable to use this task in the wizard. There are no results attahced to this task unlike any other standard approval task (like TS30200147). I need to use the task TS17900101 in the workflow assigned to process and forms, but not sure how to handle this scenario (parallel approval).
    If this is not the right way of doing it, Is there any workaround for "Parallel Approval" in HCM Process and Forms.
    Could anybody throw some light around this area.
    Thanks for your help.
    - MM

    Thanks Anuj. But I believe, the container element that I add in the miscellaneous tab does not necessarily have to be used in the agent assignment. The multiline container is just to instantiate the workitem 'n' number of times. Correct me if I am wrong.
    My concern is that I was unable to use this approval task (TS17900101) in the workflow wizard for dynamic paralle/parallel approval.
    Arghadip - Thanks for your suggestion. I have seen some your nice contributions in the WF forum.
    I actually tried using the 'Blocks'. But this is what I ran into. When I send multiple approval requests (say 3), if one person has approved it and the second has rejected it,I need to take out the workitem from the third person's list (because it has been rejected by someone in the group). I am not sure if this is possible using Blocks. And in my case the third person is still having the workitem, but gets a dump/error when he tries to open it.
    Also, if any one has rejected the request, I do not have to wait for the rest to take any action on the workitem and proceed further. But I guess in 'Blocks' it will not let you go out unless every workitem has been processed.
    To summarize,here's what I need - I need to come out of the block for two conditions. One, if everyone has approved, comeout of the block with an apprval flag. Two, if anyone has rejected (even if some have not processed their workitem), delete the workitems from others inbox and come out of the block with a rejection flag.
    So, any kind of input or suggestions on how this could be handled would be highly appreciated.
    Thanks
    MM

Maybe you are looking for