Generating unbound multi-line items of type long?
I'm trying to generate a form containing an unbound item with datatype long which I'd like to have multi-line. Is this possible using Headstart without adding an entry to the Headstart Object library?
I tried to use CGSO$LONG, but that won't make it multiline. It also means I have to add "Ofgstnd1.olb" to my list of object-libraries to use in the preferences which seems to override the headstart obj.library on many items.... Does anybody have any suggestions??
Greetz,
Tim
You could create a custom object library which contains only the 'long' item. Then in qms65_recommended, edit the STOOLB preference and add your custom library, using the ';' as a separator.
Regards,
Lauri
Similar Messages
-
Hi All,
In my scenario sales order created in R3 side and send mail from XI side.
Every thing is working fine. But the issue is in case multi line items in the sales order, the mail showing only one line item.
Please help me on this scenario, and send me some documents for go through and try.
Thanks.
Senthil kumar V.1 We can send an e-mail with multi-line content using E-Mail Adapter.
2. We can set Dynamic Data as the e-mail content.
3. The Dynamic Content has to be formatted either in Mapping or in Module and then sent to E-mail Adapter. E-Mail Adapter cannot do the formatting.
4. Content can be of any number of lines.
5. The consolidation should be done in Mapping or in a Module program and the consolidated data should be given to the adapter.
6. Yes Content can also be set in HTML format
Edited by: Dharamveer Gaur on Sep 18, 2008 7:15 AM -
Data upload:F-02: each documnet number to be generated for each line item
Dear ABAP experts,
I have a requirement.
When we uplaod customer or vendor invoices ,a document number will be generated or posted.
Similarly, my requirement is :When I do the same kind of uploads, for each line item in an excel file each document number has to be generated or posted .This upload is using Tcode: F-02.
How do I generate each document number for each line item (for each vendor or customer).
Please do the needful.Either send me a sample code or an idea how to proceed.
Thanks,
Hema.Hi,
using below code you can generate document number for each line Item.
PERFORM bdc_dynpro USING 'SAPMF05A' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
IF wa_final-field1 NE c_space.
convert date to user format
MOVE wa_final-field1 TO v_date.
CALL FUNCTION '/SAPDII/SPP05_CONVERT_DATE'
EXPORTING
if_date = v_date
IMPORTING
ef_date = v_date1.
PERFORM bdc_field USING 'BKPF-BLDAT'
v_date1. " Document Date
Clear v_date field
CLEAR: v_date1 , v_date.
ENDIF.
PERFORM bdc_field USING 'BKPF-BLART'
wa_final-field4. " Document Type
PERFORM bdc_field USING 'BKPF-BUKRS'
wa_final-field2. " Company Code
IF wa_final-field3 NE c_space.
convert date to user format
MOVE wa_final-field3 TO v_date.
CALL FUNCTION '/SAPDII/SPP05_CONVERT_DATE'
EXPORTING
if_date = v_date
IMPORTING
ef_date = v_date1.
PERFORM bdc_field USING 'BKPF-BUDAT'
v_date1. " Posting Date
Clear v_date field
CLEAR: v_date1 , v_date.
ENDIF.
PERFORM bdc_field USING 'BKPF-WAERS'
wa_final-field5. " Currency
PERFORM bdc_field USING 'BKPF-KURSF'
wa_final-field6. " Rate
PERFORM bdc_field USING 'BKPF-XBLNR'
wa_final-field7. " Reference
PERFORM bdc_field USING 'BKPF-BKTXT'
wa_final-field8. " Document Header Text
PERFORM bdc_field USING 'RF05A-NEWBS'
wa_final-field9. " Cr.Posting Key
PERFORM bdc_field USING 'RF05A-NEWKO'
wa_final-field10. " Cr.Vendorcode or GL Account
PERFORM bdc_dynpro USING 'SAPMF05A' '0302'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BSEG-HKONT'
wa_final-field11. " Dr.Alternative Recon A/c
PERFORM bdc_field USING 'BSEG-WRBTR'
wa_final-field12. " Dr.Amount in Document Currency
Begin of changes by someshwar
IF v_field5 NE 'jpy' OR v_field5 NE 'JPY'.
TRANSLATE v_field5 TO UPPER CASE.
IF v_field5 NE 'JPY'.
PERFORM bdc_field USING 'BSEG-DMBTR'
wa_final-field13. " Dr.Amount in Local Currency
ENDIF.
Changes end
PERFORM bdc_field USING 'BSEG-GSBER'
wa_final-field14. " Dr.Business Area
PERFORM bdc_field USING 'BSEG-ZTERM'
wa_final-field15. " Dr.Payment Terms
IF wa_final-field16 NE c_space.
convert date to user format
MOVE wa_final-field16 TO v_date.
CALL FUNCTION '/SAPDII/SPP05_CONVERT_DATE'
EXPORTING
if_date = v_date
IMPORTING
ef_date = v_date1.
*Begin of changes by someshwar
IF wa_final-field16 NE '00000000'.
PERFORM bdc_field USING 'BSEG-ZFBDT'
v_date1. " Dr.Baseline date
ENDIF.
*Changes end
Clear v_date field
CLEAR: v_date1 , v_date.
ENDIF.
*Begin of changes by someshwar
IF wa_final-field17 NE ''.
PERFORM bdc_field USING 'BSEG-ZLSCH'
wa_final-field17. " Dr.Payment Method
ENDIF.
*changes end
PERFORM bdc_field USING 'BSEG-ZUONR'
wa_final-field18. " Dr.Assignment
PERFORM bdc_field USING 'BSEG-SGTXT'
wa_final-field19. " Dr.Text
*Perform Save posting
PERFORM save_post.
ELSE.
PERFORM bdc_dynpro USING 'SAPMF05A' '0302'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BSEG-HKONT'
wa_final-field11. " Dr.Alternative Recon A/c
PERFORM bdc_field USING 'BSEG-WRBTR'
wa_final-field12. " Dr.Amount in Document Currency
*Begin of changes by someshwar
IF v_field5 NE 'jpy' AND v_field5 NE 'JPY'.
TRANSLATE v_field5 TO UPPER CASE.
IF v_field5 NE 'JPY'.
PERFORM bdc_field USING 'BSEG-DMBTR'
wa_final-field13. " Dr.Amount in Local Currency
ENDIF.
Changes end
PERFORM bdc_field USING 'BSEG-GSBER'
wa_final-field14. " Dr.Business Area
PERFORM bdc_field USING 'BSEG-ZTERM'
wa_final-field15. " Dr.Payment Terms
IF wa_final-field16 NE c_space.
convert date to user format
MOVE wa_final-field16 TO v_date.
CALL FUNCTION '/SAPDII/SPP05_CONVERT_DATE'
EXPORTING
if_date = v_date
IMPORTING
ef_date = v_date1.
PERFORM bdc_field USING 'BSEG-ZFBDT'
v_date1. " Dr.Baseline date
ENDIF.
Clear v_date field
CLEAR: v_date1 , v_date.
ENDIF.
PERFORM bdc_field USING 'BSEG-ZLSCH'
wa_final-field17. " Dr.Payment Method
ENDIF.
PERFORM bdc_field USING 'BSEG-ZUONR'
wa_final-field18. " Dr.Assignment
PERFORM bdc_field USING 'BSEG-SGTXT'
wa_final-field19. " Dr.Text
*Perform Save posting
PERFORM bdc_field USING 'RF05A-NEWBS'
'40'. " Cr.Posting Key
PERFORM bdc_field USING 'RF05A-NEWKO'
'999996'. " Cr.Vendorcode or GL Account
PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'BU'.
*& Form BDC_TRANSACTION
FORM bdc_transaction USING p_tcode.
DATA: l_v_string TYPE string.
REFRESH i_messtab.
CALL TRANSACTION p_tcode USING i_bdcdata
MODE g_mode
UPDATE 'S'
MESSAGES INTO i_messtab.
IF NOT i_messtab[] IS INITIAL.
READ TABLE i_messtab WITH KEY msgtyp = 'E'.
IF sy-subrc EQ 0.
LOOP AT i_messtab.
IF i_messtab-msgtyp = 'E'.
PERFORM fill_error_table USING i_messtab-msgtyp
i_messtab-msgid
i_messtab-msgnr
i_messtab-msgv1
i_messtab-msgv2
i_messtab-msgv3
i_messtab-msgv4.
ENDIF.
ENDLOOP.
v_error = v_error + v_count.
ENDIF.
READ TABLE i_messtab WITH KEY msgtyp = 'S' msgnr = 312.
IF sy-subrc EQ 0.
SELECT SINGLE * FROM t100 WHERE sprsl = sy-langu
AND arbgb = i_messtab-msgid
AND msgnr = i_messtab-msgnr.
l_v_string = t100-text.
REPLACE '&' WITH i_messtab-msgv1 INTO l_v_string .
PERFORM fill_error_table USING i_messtab-msgtyp
'ZMSG_FI'
'025'
i_messtab-msgv1
wa_final2-field2
v_success = v_success + 1.
ELSE.
LOOP AT i_messtab.
IF i_messtab-msgtyp = 'S'.
PERFORM fill_error_table USING 'E'
i_messtab-msgid
i_messtab-msgnr
i_messtab-msgv1
i_messtab-msgv2
i_messtab-msgv3
i_messtab-msgv4.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
CLEAR : t100 , l_v_string .
ENDFORM. " BDC_TRANSACTION
Regards,
Siva. -
Dears,
Can you please let me know how to generate Profit Center Old line items. I have activated line item indicators in
1) Profit Center Accounting - Basic Settings - Controlling Area Settings - Maintain Controlling Area Settings
2) Profit Center Accounting - Basic Settings - Controlling Area Settings - Activate Direct Postings - Set Control Parameters for Actual Data.
However, system is displaying the line items in KE5Z after the time the above settings are done.
Please guide me.
Regards
HariHi Sudhakar,
Thanks for your valuable solution..
Can you please let me know how to generate Balance Sheet & P&L for each Profit Center.
I used S_ALR_87013336 (Profit Center Group: Balance Sheet Accounts Plan/Actual/Variance), however it is not showing any data.
Report S_ALR_87013326 (Profit Center Group: Plan/Actual/Variance) is working fine.
Regards
Hari -
Table which contain Purchase order number, PO line item, PO type
Hi experts,
Can you please tell me which table contains the fields Purchase order number, Purchase order item number and purchase order type with respect to the fields of the table MKPF--MBLNR.
I am given a conditon where i have to select MBLNR, VGART, BLART from MKPF and after selecting these line items, i have to validate for purchase order of type ZSPM,ZSFIAND ZINS.
Can you any one suggest me what shall i do... Thanks in advance.
Regards,
BuvanaPassing MKPF-MBLNR to MSEG
get the EBELN (Purchase order).
Pass this EBELN to EKKO to get Order type (BSART)
and to EKPO to get the line item. -
Sales order line item conditin type
hi experts
in pricing procedure determination we at lost we are giving condition type. it was displayed in sales order line item level
what is the purpose of this condition type.
thanks to every buddy who are trying to give answer this question.
narasimha
[email protected]Hi,
This is to avoid going into the line item and entering the value in the amount field.
When u assign it there in your pricing procedure determination you can enter the amount in the amount field for each line item and avoid drilling down to conditions tab for each item
Hope you find this helpful.
If you, please reward points for contribution.
Regards
Ravi -
Cost Center Error in Shopping cart Multi Line items
Hi,
We are working on SRM 4.0. when the user is trying to create a shopping cart from catalog he gets the error message as
"you don't have the acces to the cost object xyz12.please return to the cost assignment section and correct".
We have given the access to that cost center in SRM even also he is getting the same error.
He does not have any problem with single line item against the same cost center. problem gets only when he is going to create with multiple line items in shopping cart against the same cost center.
Request all please advise me where i need to check to overcome the issue.
Regards,
SriHi,
Thanks for your kind response. can you please elaborate bit more step by step.
Awaiting for your feedback.
Regards,
sri -
Lsmw........(multi-line items)
hi,
how to insert several line items in a sales order. whether this can be performed using recording or any other method can be used . If so please let me know.
thank you.
regards
premHi Prem,
Follow these steps for processing multiple records in lsmw.
I presume that you have one header line and multiple line items in the file and has a unique identifier. Let us say you have two nodes in lsmw called VBAK and VBAP.
Normally lsmw process one line of the file at a time. When lsmw reads the header line, process the VBAK node and use the 'transfer_record' command (this must be already there). When the second record is processed and if the unique identifier is same as the header then write a command called 'skip_record' in the '__BEGIN_OF_RECORD__' session of VBAK. If you do like this we will have one header and multiple line items.
Thanks
Vinod -
Problem with Multi line items in Order
When a customer sends an order, generally the line items will be maintained individually.But here the problem is customer wants all kg deposits under separate item u2018AAAu2019.
Example:
Item Code Quantity Item Price Net Price Net Amount
abc 2 kgs $15/kg $15/kg $30.0
xyz 3 kgs $10/kg $10/kg $30.0
AAA 5 kgs $15/kg $15/kg $75.0
There will be no item in SAP with code u2018AAAu2019, so before placing the order in SAP, someone has to distribute the kg deposits in the ratio of quantity to all items with kgs. Also when we send back the invoice, take out all kg deposits from different items , add up total and put it under new item u2018AAAu2019 and send it.
Can you suggest how we can resolve this problem ?create a new program in which
--> get all the line items into table
--> sort all line items
--> loop at itab and put sum of all similier line items in anoter itab with priscribed name
--> finally use call transaction va03 or some thing by passing new internal table
shiva -
Spool is not generating for deleted line item in PO.
Hi Experts,
A PO which was created in SRM pushed into SAP environment and when it was created initially spool was generated and user was able to take the print out. But if he delete a linte item no spool is created and message log was saying there is print relevent changes exists. I could the the change updated linte item change history of that PO.
I tried replicating the scenario in test environment but I have not come across this situation. Please help if any one worked on similar problem.
Thanks in advance,Hi Experts,
Any suggestions.
Regards, -
This seems like a simple problem but I can't find a good answer.
If I have an item that contains infinite empty records for the
user to fill in. I want to be able to check the entire item to
see if any of the instances of the item are not null. Do I have
to create a function for this or is there something is Developer
that can handle this?
nullHi Fan,
You can try do it in 2 ways: statically & dynamically.
I will explain both of the ways to you. Suppose you have bound your table to a context node by name SFLIGHT. It contains CARRID, CONNID, FLDATE, PRICE & an attribute by name CHECK of type WDY_BOOLEAN.
Static Method:
When you right click on your table & say "Create Binding" you select the context node as SFLIGHT & then you get the option to specify the Cell editor of the various table columns. Now go to your column CHECK and select the cell editor as "Checkbox" & name of property to be bound as "Checked". Now this would result in the column CHECK being displayed as a checkbox to you. Also the checked/unchecked values go and get stored in the boolean attribute CHECK that you had created at context level.
Dynamic Method:
Whenever you are working with dynamic ui modification you need to put your coding inside the WDDOMODIFYVIEW method. You need to basically perform the below steps to realise your functionality:
1) You need to first get the reference of the table element.
2) You then use this reference to get the reference of the desired column by specifying the column index. 3) 3) You then create an object of type checkbox & then embed it within the cell editor of the table column
Below is the coding from the method:
method WDDOMODIFYVIEW .
data: lr_table type ref to cl_wd_table,
lr_column type ref to cl_wd_table_column,
lr_check type ref to cl_wd_checkbox.
check first_time = abap_true.
lr_table ?= view->get_element( id = 'TABLE' ).
lr_column ?= lr_table->get_grouped_column( id = 'TABLE_CHECK' ).
lr_check = cl_wd_checkbox=>new_checkbox( bind_checked = 'SFLIGHT.CHECK' ).
lr_column->SET_TABLE_CELL_EDITOR( THE_TABLE_CELL_EDITOR = lr_check ).
endmethod.
Regards,
Uday -
Error M8-688 - Creation of several vendor line items is not possible for document type RN.
Hello All,
We are using the Net Invoice Posting with document type RN(Invoice- Net). We are generating different vendor line items in the accounting document based on the withholding tax codes involved in the invoice posting. When it comes to net invoice posting system is giving an error message M8-688 - Creation of vendor line items is not possible for document type RN. Is there is any way to create multiple vendor items with net invoice posting? Please suggest.
Thanks,
Chandu.I dont think that there is any way because it is a hardcoded error message.
IF NOT t003-xnetb IS INITIAL.
MESSAGE e688 WITH pi_rbkpv-blart.
ENDIF.
SAP is checking the customizing for net/gross posting per document type in table T003
And if it is set up as net, then it is a hard error. -
SD - Accounting document line items are generating for each item
Hi all of you,
We have done account determination for SD. Accounting documents are also generating, but with in the invoice accounting document, number of line items are generating for each item with in the sales order, standard invoice type is F2 like -
Item 001 - X Material
Item 002 - Y Material
Item 003 - Z Material
The accounting document is -
Line Item 001 - Customer Ac Dr
Line Item 002 - Discount A/c Dr
Line Item 003 - Sales revenue
Line Item 004 - Discount A/c Dr
Line Item 005 - Sales Revenue
Line Item 006 - Discount A/c Dr
Line Item 007 - Sales revenue
Line Item 008 - VAT
Even, in my experience I did not find this type of entry and the sales revenue and discount accounts are same with in the COA and is posted with in the plant.
Please give me your valuable suggestion to rectify the above issue.
Regards,
Ramki
Edited by: Ramki on Nov 5, 2009 10:06 AMDear Ramki,
This is SAP Standard. System generates Accounting document line item for each Line items in Invoice.
This is standard & also required bacuase say you have different Material types in single Invoice (e.g.Material & Service items, Trading Goods, etc). The valuation class assigned to these Material Types may be different & you might want to post revenues from these Line items in different GL Accounts.
Hope this helps. .
Thanks,
Jignesh mehta -
System is generated extra line item of G/L while clearing throgh F-44
Dear Experts ,
When we processing clearing through F-44 , system is generating one extra line item of G/L , due to this system is not allowing for clearing as the message " Posting is only possible with zero balance ; correct document " is served by system.
Actually while clearing , i am including TDS clearing document (posted via F-54) also .
please suggest.
Thanks & Regards
ShaileshHi
1. First of all i have given advance to vendor with deducting TDS (@10%) via F-48
2. after that i have raised one invoice for same vendor with deducting TDS via FB60
3. vendor TDS clearing via F-54
4. now when i going for vendor clearing via F-44 with taking reference from above F-54 document
i got below error : -
How to not select an invoice if a certain line item type is present?
Hi,
I've created a report that lists all invoices that have a particular line item type on it. For example, I wanted to produce a revenue report by item type, "P-Tank". So, the invoice table links to the invoice line items table. Each line item record has a "resource id" on it. The resource id links to the resource type table. So, if invoice #8 has, say, three line items and one of them has a resource type of "P-Tank" then I report on it. Basically, I'm making a report grouped by Resource ID and the Resource ID must by of Resource Type 1, 2 or 3. So, this report I've solved.
Now, I want to report on those invoices that do not have either a resource type 1, 2 or 3 item on it. If I use a formula:
"Not ({resource_type.resource_type_id} in [1, 2, 3]) that doesn't work because it just omits the line item that is of resource type 1, 2 or 3....but still leaves the invoice on the report with the other line item types. * I want to identify any and all invoices that do not have either a line item resource type 1, 2, or 3 on it.*
Any help is much appreciated!
thx,
MarkHi Abhilash,
That didn't seem towork. I'll simplify the example to see if we can find the answer easier this way.
I'm using two tables: invoice; and invoice_items
An invoice can have many items on it.
I don't want my query to select any invoices that have a Tank item on it (Tank has a resource id = 8).
So, I'll join the invoice table to the invoice_items table:
invoice.invoice_id = invoice_items.invoice_id.
The result set looks like the following:
Invoice # Invoice Item # Invoice Resource ID
22 1 8
22 2 9
23 1 5
So, because Invoice #22 has a line item with resource id = 8 on it I do not want Invoice #22 to appear on the report at all, regardless of what other items and resource id's are on it.
I have tried joining the two tables in every manner (e.g. inner, outer, not enforced, enforced, etc) and even when I put the condition, invoice_items.resource_id <> 8, it still brings up Invoice #22 but just omits the one line item and leaves the record with resource id 9 (in the example above). I don't want Invoice #22 to appear at all in the report.
Does that help clarify the problem?
thx,
Mark
Maybe you are looking for
-
Cannot add field to value section of PowerPivot table- using TechNet tutorial
I am doing the MS TechNet tutorial for PowerPivot and using the sample files. Everything has worked until I got to the Create a PivotTable tutorial. when I try to add the SalesAmount field to the values section of the grid, it gives me the error "C
-
Hyperlinks in scrollbar.....
Hi all, I am unable to sove the problem of placing many number of hyperlinks and making these hyperlinks to scroll by using a Scrollbar since long time. But, I didn't get any solution. Experts, I think anyone can help in this context. So, pleas
-
iTunes match suddenly quit uploading music to the cloud. It goes through all the other steps but when it comes to uploading it fails. The songs are reading error beside them and I tried to refresh iTunes Match but it keeps failing to upload. Is an
-
Hey everyone, I was wondering how I would be able to "rip" the music files from a Dvd. I own the Korn Greatest Hits which includes a bonus DVD of their live concert at CBGB's. I absolutely love it, but I do not know how to take the audio files off of
-
Xml.processFieldNames limitations
We are having some problems using the content conversion on the JMS adapter. Our legacy system sends fixed-width records to us via MQ series. Each record can contain hundreds of fields, also fixed-width. Although we are able to set up simple parsi