Dynamic forms - adding line items
Case: A form author has created a PO where the number of detail lines required on the form can be as few as 1 or as many as 20+. Instead of creating a fixed number of lines, a dynamic form is created so that user's may click on a 'Add Line' button to add additional lines to the form as needed.
Is anyone willing provide me with an example of this that I could look at, dissect and see how this actually works, I'm a newbie to LifeCycle designer and I cannot figure out how to do this?
See the Dynamic Purchase Order example in your LiveCycle installation folder.
Carl Young
http://www.pdfconference.com/
Similar Messages
-
Adding line item prior to ACC_DOCUMENT03 Posting
Due to our legacy currency alignment on some systems being incongruent with our SAP ECC 6.0 environment, some upstream inbound IDocs will post with 2 decimals for HUF when 6.0 environment has 0 decimals for HUF. The inbound documents are coming in as ACC_DOCUMENT03 IDocs.
There will be rounding involved. iN certain cases, the rounding will mean that the line items are no longer in balance.
Rather than alter the value of the inbound line items, preference is to add line item prior to posting that contains the balance difference and posts to the "rounding difference" account.
Has anyone expereinced this situation before? How was it resolved?
Considered adding line item via "BAPI_ACC_DOCUMENT_POST" or, if possible, within "'BAPI_INCOMING_INVOICE_CREATE'".
Has anyone faced this or a simlar issue before? How was it resolved? Was it resolved internally?Hello Weng,
I also looked on SAP notes.
There is a note with much information about Tax Postings with accounting BAPIs and it's a consulting note. The note number is 626235.
Regards,
Rae Ellen Woytowiez
Edited by: Rae Ellen Woytowiez on Dec 21, 2010 10:11 PM -
How to insert horizontal line dynamically after every line item in sapscrip
Hi All,
I have to insert a horizontal line after every new item in sap script.
How to do this .
In some material there is2 line item or in other line item it ay be more .
How to insert horizontal line dynamically after every line item
Point will be rewarded
Regards
NirajHi Niraj,
You can get your work done by keeping the horizontal line (&ULINE&) after all the item level fields, in this case once each item line is written you will get a horizontal line.
In case you have different fields for the item lines which are optional (not printed every time) then you can have them in an IF....ENDIF condition and below the endif use a horizontal line.
Some thing like this:
/E ITEM_HEADER
IL <TI>Item,,Material,,Description</>
IP <TI>,,,,Quantity,,,,Price,,Price unit,,,,,,Value</>
/ &ULINE(71)&
Let me know if this helps, else please describe your problem with an example.
Luck. -
Dynamically picking the line item of table control
Hi all,
Can u suggest me a way to dynamically picking the no of line item in the table control displayed.
Regards,
Ashutosh KumarHi Ashutosh,
In BDC case, what you can do is use the "position button" instead of finding the number of lines on the table control.
Or else you can use call transaction with 'Options addition'
eg:
Call transaction parameters
clear gs_options.
<b> gs_options-defsize = 'X'. "Default size</b>
gs_options-dismode = 'N'.
gs_options-updmode = 'S'.
call transaction 'VI02' using t_bdcdata
"mode 'N'
"update 'S'
options from gs_options
messages into t_messages.
Please let us know why do you want to know the number of lines on the Table control.If the above answer doesn't satisfy you.
Regards,
Ravi -
How to create horizontal line dynamically after evry line item
Hi all,
I have to redesign the sapscript.
For a invoice for every new material a horizontal line will be drawen.After that for that material all new line item will be displayed than again a horizontal line should drawn.
In dynamic how i can know how many line item will be there for the particular material.
Guranted points will be rewarded .
Regards
rajHi
1st u draw a table and in that u mention all the line items. You can change the size from there it self
The Code is here for drawing the Box for Total in last page (where there is no next page)
/: IF &NEXTPAGE& = 0
/: BOX FRAME 10 TW
/: BOX HEIGHT 0.8′ CM FRAME 10 TW
/: BOX HEIGHT 1.9′ CM FRAME 10 TW
/: BOX XPOS 2.5′ CM YPOS 0.8′ CM WIDTH 1.1′ CM HEIGHT 1.9′ CM FRAME 10 >
Now some help from help.sap.com to understand the code better
1. /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
Reward all helpfull answers
Regards
Pavan -
How to Create dynamic checkbox in line item
Dear all,
In selection-screen i have using select-options If i select select-option range, the output will display dynamic check box in line item what range i have select above select options.
Regards,
Baskaran.Hi,
After fetching data into table, find the number of internal table entries using Describe statement.
Then, use Do loop till w_count becomes w_lines( no. of entries ) incrementing the count for every item. -
Forms Recognition Line items validation
Dear all
I'm working on a Forms Recognition POC whose delivery date is on 10/10. I want to disable the validation of the amounts from the line items and total amount, how can I do so?
Thanks and Best RegardsThere are few things i believe you need to do here. One being search the AP Project PDF that comes with the solution, i believe there are a few settings in the INI that will set default Non-PO which should disable the line item matching portions of the scripts thus never having to validate the line items.
To disable to total's validations, open the script editor for the invoices class, search and comment out all instances of the following function 'fnValidateAmount', that should remove all the totals validations. Or you can modify that function to fit your projects needs -
Error when adding line items in a Contract
Hi All,
Need your help regarding the following issue.
The business user is trying to edit (to add more line items/materials) a contract with customized T.Code ZGME31K.
Getting error "Enter rate USD / rate type M for 11/24/2009 in the system settings" MSG No. SG105.
However, the Vendor, Material all are maintained in the same currency i.e. USD.
So, not finding a scope of rectification in OB28.
Please advice.
Regards,
Milan.Hi,
I closed
Re: SBWP attachment link not diverting to Contract/P.O
as my problem got resolved.
And I put it "unanswered" as no one gave me the correct answer.
It came out as a result of several testing in Quality by our team. Anyway, thanks to everyone who contributed.
Regards,
Milan. -
Module Pool Programming adding line items.
Hi,
I am Doing Module Pool Programming in which I Should add line items and if the user gives the save button the data wil be saved in tables and SAP should generate one unique number.
Please give me inputs how to generate unique number and add n number of line items
correct inputs are rewarded
Thanks
Rasheed.Hi,
You may use Number Generator for generating unique ids in the system.
The keyword DEFAULT SERIAL gets a number generator for positive integers and can only be specified for columns that have the data type INTEGER, SMALLINT, and FIXED without decimal places (SERIAL).
The first value generated by the generator can be defined by specifying an unsigned integer (must be greater than 0). If this definition is missing, 1 is defined as the first value.
If an INSERT statement inserts the value in this column, you get the current number generator value and not the value 0.
Each table may not contain more than one column with the DEFAULT specification DEFAULT SERIAL.
Regards,
Renjith
Edited by: Renjith Michael on Oct 23, 2008 11:34 AM -
Adding line items in BAPI_PO_CHANGE
Hi,
i am using BAPI_PO_CHANGE and i have already created po line item under one PO. Now i want to add more line items under the same document number. How can i do that using BAPI_PO_CHANGE.
ThanksHi
Populate the following strucuture in the BAPI
PURCHASEORDER = PO Number
Tables :
POITEM = itab_item
POITEMX = itab_itemx
where in the Itab_item fill in the item details and mark X in the corresponding fields in itab_itemx.
also call the BAPI_TRANSACTION_COMMIT so that the data would be saved. -
Adding line items in to a PO and PR using a Bapi
I need to change PO and PR and add several line items to each of them .
Can addition of line items to Pr and PO be achieved via a Bapi .
Please suggest.
Many ThanksHello Aditi,
About Purchase requisition, unfortunately you cannot add new item with BAPI_REQUISITION_CHANGE,
you have to create a your own bapi, but this is a long process to do (I think could take 2-3 days or more).
About Purchase Order ( BAPI BAPI_PO_CHANGE ) you just have to specify all the data for the
new line including the item number. Be sure to put the new item number in the field PO_it in tables POITEM, POITEMX POSCHEDULE...
Regards,
Mauro -
Add field(Text-Field) in SAP Adobe form (SFP) @ line item level
Hi All,
I have copied SAP Standard Travel Request Form (FITP_REQUEST_FORM), and modifying it according to client's requirement.
The requirement is to display Comments field
I need to display some more details under Travel Itinerary & Services
Eg: Comments field for > Outbound Train , Outbound Flight etc.
The problem I am facing is unable to filter data in Node Request > Data > Car, Flight, Train, Hotel and others.
I have added text field in the Car node but its not retiveing data related to Car Comments its showing for Flight.
Regards,
Shree Wadekar
Useful answers will be rewardedSolved by my own
-
[CRM] Check the order after adding line items
As an enhancement, I've created a piece of code that determines the default quantity for an item. On its own, it works as intended.
When creating a new contract based on a template, the same default quantity coding is being executed, thereby - in most cases - adding the quantity of 1 for the items.
Without that coding, a user would have to enter a quantity and press <enter> to confirm. At that moment a couple of checks are being performed on the items, which can result in errors.
The problem is that when the default quantity is filled in for the user, there is no need to press <enter> and so those checks are skipped. Even though there should be an error (at least in the test case), we see nothing.
The default quantity is being called from a CRM event (after creation of an item) and used the CRM_SCHEDLIN_I_MAINTAIN_OW function to change the quantity. After that, control is turned over to the system once again.
Is there any way of forcing the same checks on the order without having to hit the <enter> key?As an enhancement, I've created a piece of code that determines the default quantity for an item. On its own, it works as intended.
When creating a new contract based on a template, the same default quantity coding is being executed, thereby - in most cases - adding the quantity of 1 for the items.
Without that coding, a user would have to enter a quantity and press <enter> to confirm. At that moment a couple of checks are being performed on the items, which can result in errors.
The problem is that when the default quantity is filled in for the user, there is no need to press <enter> and so those checks are skipped. Even though there should be an error (at least in the test case), we see nothing.
The default quantity is being called from a CRM event (after creation of an item) and used the CRM_SCHEDLIN_I_MAINTAIN_OW function to change the quantity. After that, control is turned over to the system once again.
Is there any way of forcing the same checks on the order without having to hit the <enter> key? -
Adding new line item to Delivery
When I try to post (Add) a delivery document based on a sales order that has a line item added that did not belong to the sales order I get the following error "[OACT] No matching records found (ODBC -2028)". Looking in the DI API documentation I see that the Document_Lines object has a mandatory AccountCode property. How do I go about getting the appropriate account code for the added line item? The help documentation shows some sample code (included below), which doesn't make much sense to me.
Dim sStr As String
Dim vRs As SAPbobsCOM.Recordset
Dim vBOB As SAPbobsCOM.SBObob
Dim vCH As SAPbobsCOM.ChartOfAccounts
Set vCH = Vcmp.GetBusinessObject(oChartOfAccounts)
Set vBOB = Vcmp.GetBusinessObject(BoBridge)
Set vRs = Vcmp.GetBusinessObject(BoRecordset)
Set vRs = vBOB.GetObjectKeyBySingleValue(oBusinessPartners, "CardName", "aaa", bqc_Equal)
' When working with segmentation use this function
' to find the account key in the ChartOfAccount object
Set vRs = vBOB.GetObjectKeyBySingleValue(oChartOfAccounts, "FormatCode", "125100000100101", bqc_Equal)
'The Recordset retrieves the value of the key (for example, sStr = _SYS00000000010).
sStr = vRs.Fields.Item(0).Value
'Use the sStr value to set the AccountCode
Where does the FormatCode value of "125100000100101" come from? Why the first call to GetObjectKeyBySingleValue? It doesn't appear the results are being used?
Any help would be greatly appreciated!
Thanks,
Jason Eiler
BTW - I'm developing with/for SAP Business One version 2004 (or 6.7 of the DI API).Hi Jason,
First of all:
The displayed account code must be translated into the internally used code ("_SYS...") when using segmentation - when not using segemntation it is just internal code = displayed code.
The code displayed is just a sample to give you a hint in case you are already familiar with the SAP Business One application.
Therefore the sample code does not talk about where you got e.g. the value for FormatCode from ("FormatCode" is e.g. a field in table OACT where the account name with segments is (redundantly) stored without separators).
The user should know on which account he/she wants to book a line on; maybe you might want to give some help to the user by displaying a dialog with suitable - or preselected accounts?
In addition I am sure you know how to assign a string value to a string property - without explicitly writing it, right?
HTH,
Frank -
Add Line Item In Sales Order VA01
HI All,
I have new requirement in creation of sales order . Here we have free promotion sales . Here if customer buy one material then he will get some other material as free .In standard sap we can give only one line item as free not more than that .
Here our requirement is more than one line item . I suggested them maintain all the free materials in one Ztable when ever the original material will come for sales order then i have to fetch these materials from ztable automatically and it should create sales order. I started doing this using user exit FORM USEREXIT_MOVE_FIELD_TO_VBAP.
These are the below links i checked in our sdn.
Adding Line items to sales order on creation using User-Exit in VA01.
Please give me some idea on this .
Regards,
Madhu.Hi Asik,
Thanks for your reply.In my case i can not got for Bom because the schemes will change for every ten days. I think Bom creation will fill a lot of data but it wont solve my issue.
Regards,
Madhu.
Maybe you are looking for
-
Hi , I am following this blog.. /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure Configuration and design is finished , In monitoring its showing successful for sen
-
Hi there, I've been cutting a job over the last week and recently PP has been quitting and I get "a serious error has occured and pp needs to shut down". I've reinstalled pp and to no avail. even with new projects the same happens. I have a crash rep
-
Microsoft Windows SharePoint Services
This is my first post to an Adobe user forum, so forgive me if I am posting to the wrong forum, but my question relates to LiveCycle Designer ES forms. Is anyone familiar with LiveCycle forms on Windows SharePoint Services? Instead of purchasing Live
-
Hi, My workflow is quite straight forward: log and transfer AVCHD material into FCP 7 by setting in- and out points; then selet all clips and put them on in the sequence (no need to change the order). I'm looking for a way to trim multiple clips in o
-
Capturing problem: camera recognized, but fcp freezes
Just started using fcp 5.1.2 (used to use 4.5 on my G4) after getting the new macbook pro and its my first time capturing video with it from my Canon GL-2. The video doesn't show up in the logging window, when I press play it still says preview disab