How to split ACC_DOCUMNET03 IDOC after 100 line items for given posting
Hi Friends,
I need to create an IDOC based on the company code and posting date & a particular company code for a given date has reached 100 line items then create another IDOC for that.
EX:
I have 150 Line Items in file
120 Items are related to Company Code "1100" and remaining 30 related to company code "1200"
For this i need to create IDOC's like this
one IDOC with 100 line items which will contain 1100 company code
second IDOC with 20 line items which will contain 1100 company code
Third IDOC with 30 line items which contain 1200 company code
I assume that this can be done through UDF.
Please can you guys help me this.
Thanks in advance.
Thanks,
Vivek.
chk this:
/people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
Similar Messages
-
How to split a condition value across line items with varying percentages?
Hello, can anyone suggest how this can be resolved. This is the scenario.
My client wants to be able to determine pricing for a sales document with a wide range of conditions. One particular condition contributes to the total price of each sales item by determining a percentage of the total amount. The percentage used isn't a fixed percentage but it is determined as follows: Lets say I have 3 sales items in the document with prices 200, 300 and 500 respectively. The total amount for the condition (which is known) then has to be shared amongst these 3 items according to the price of each item. How can this be achieved? Any ideas?You will have to define a Header Condition which will apply to all the Items.
Then, You will have to develop a Z- Requirement in T-Code - VOFM with help your ABAPer.
Then assign this Routine in Alternative formula for condition base value column in your Pricing Procedure.
The ABAP code in the Requirement will read the Basic Price of all the Items & then proportionately divide the value of said Condition line-item wise.
Hope this clarifies.
Thanks,
Jignesh Mehta -
How to relate vbrp & glpca to get line items for both ?
Hi
I am working on some report ,where I am passing vbrp-vbeln to glpca-refdocnr to get some field from glpca tables.
Now I have to work on item data as well.
vbrp-posnr to glpca-refdocln to get he corresponding line items..but when I put a join condtion on vbeln & refdocnr..it gives me duplicates as well.
below is my query & output ..Please advice how to eliminate duplicate records ???hi,
Ok. If we are getting 4 records here then the some where in the previous JOIN statements the records are being duplicated.
If possible try to use join condition on the VBAK table, which is header table in the select statement if that is not possible,
please try with the using DISTINCT key word in the select query.
Let us know the issues.
thanks,
Bhaskar -
Substitution of Business Area for Tax Line Items for Invoices posted in MM
Hi
We have one Business Area for every company code. A substitution rule has been created to populate Business Area in Tax Line Items, while booking vendor invoice. The substitution rule has been defined as
Prerequite
Company Code = 1234 and GL = 1323232
Substitution
Business Area = 6668
The system is working fine, when the Vendor Invoice is posted through FI. However, when the vendor invoice is generated through MIRO or MIR7, the Business Area is not substituted.
In Table VWTYGB01, we have maintained BSEG-GSBER as a field allowed for substitution with Boolean Class 09.
We have created the susbstitution rule for Text and Assignment also and the rules are working fine for all document posted through FI and MM
Regards
Sanil
Sanil K BhandariHi
Business Area is a sensitive field, agreed. However, the substitution rule is working fine for FI posted documents and the issue is in MM generated documents.
Regards
Sanil Bhandari -
Different currency in line items for GL posting
Hi
Is there any possibility of having different currency for line items, if so send me sample code for the same. This is needed for me for Inter company GL Accouting posting.
Thanks
BasaniIs the GL account a recon account?
You need to use t code FBL3N.
However in FS00 check the settings for Line Item display in the Control Data tab. -
How to split the IDOCS based on document number change whit out BPM
Hi all,
Thanks,for giving the responce..
Scenario:File to IDoc.
Problum1 : How to Split the IDocs based on document number change in the source file with out BPM.My file contains document numbers like
20000092
20000092
20000092
50000050
50000050
50000065
I want 3 IDocs in target system.i.e 1 for 20000092,20000092,20000092
2 for 50000050,50000050
3 for 5000006
By using external definations i am getting 6 IDOCs insted of 3.
Problum 2:Is there any chnges/modifications in Directory when we are using external definations.
Could u plz provide me the step by step process(Repository/Directory) with using of external definations.
Thanks in advance.
Regards,
KPHI,
for this no need of BPM.
You can think of Idoc bundling concept to acheive this-just you need to do the external definition to change the idoc occurence
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
to achieve for each document no, one idoc, you can write small user defined function in the mapping with context handling you an achieve this.
For this e.g
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
Regards,
Moorthy -
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. -
How to place a delivery block at line item level from Inbound ORDERS IDoc?
Hi EDI/ABAP Experts,
Can anyone please tell me how to place a delivery block at line item level from Inbound ORDERS IDoc?
I tried using exit "EXIT_SAPLVEDA_001'. But there is no LIFSP field in either of XVBEP and YVBEP structures.
Can you guys throw some light. How to place a delivery block @ line item level on sales order from Inbound ORDERS IDoc.
Thanks,
Matt .Look into the Include: LVEDAF5A that is the only place where this exit is hit... double click on the Structures and look which structure has billling block field.. and use that..
FORM CUSTOMER_FUNCTION_IDOC USING IDOC_DATA.
CALL CUSTOMER-FUNCTION '001'
EXPORTING SEGMENT = IDOC_DATA
DVTCOMAG = VTCOMAG
DXMESCOD = IDOC_CONTRL-MESCOD
CONTRL = IDOC_CONTRL
TABLES DXBDCDATA = BDCDATA
DXVBAP = XVBAP
DXVBEP = XVBEP
DYVBEP = YVBEP
DXVBADR = XVBADR
DYVBADR = YVBADR
DXVBPA = XVBPA
DXVBUV = XVBUV
DD_FLAG_P = D_FLAG_P
DXKOMV = XKOMV
DXVEKP = XVEKP
DYVEKP = YVEKP
CHANGING DXVBAK = XVBAK
DD_FLAG_K = D_FLAG_K
EXCEPTIONS
USER_ERROR = 01.
If you are in ECC6.0 you can also use Enhancement point : INTERPRET_IDOC_ORDERS_01 SPOTS ES_SAPLVEDA. in include: LVEDAF2U -
How to add 100 line item in sales order at one time
Hello Guru's
My requirement is to add 100 line items in sales order at once.
what can be good approach to overcome this situation.Is there some kind of tool which can be useful?
Let me know your suggestions
Thanks a lot in AdvanceHi,
do configuration for Proposal Items tab - like -
then create sales order using with Propose items button - VA01 - then system will accept more than 50 line of materials at a time
Please Use BAPI -- creation of Sales order
Thanking you
Regards
Mahesh -
Printing In Main Window in Smartform After All Line Items
Hi All.
I have this requirement wherein I have to Print Export Charges in main window , below all the line items.
There is a loop on line item tables and I am printing all line items in the main window.
How to print this export charges after all the line items?
Points are assured !!!!Hi,
Create two row line in the main area of the table. First one for line items and the next for the export charges.
Hope this ll help u.
(Sorry, this ll print export charges after every line items, try to print the export charges in the footer of the table.)
Regards,
Prabhu
Edited by: Prabhuraj Krishnan on Apr 15, 2008 11:05 AM -
Splitting a TO into Multiple Line Items
Hi,
I have a requirement like this.
TR-100 pc and TO created automatically for 100 pc. Now I want to break the TO into 3 line items for 40, 30, 30 pc. Is there a way to achieve this?
Thanks
VenkatIf the TR is manual, then maintain the required lines within the TR. Alternatively as Joao has siad, you can look at the TO split functionality however, this will create a new TO for each, rather than adding a new line.
Cheers -
How can I add a new line item for production order?
HI all,
How can I add a new line item for production order through BAPI/FM? Thanks in advance.Hi Mil,
Unfortunetly SAP is not in front of me.
But if possible go to BAPI transaction , check for any production order's bapi for CHANGE purpose. Where you will be able to add your new line.
Reward if useful! -
How to Close a Purchase Order line Item for GRN W/O Deleting the Line Item
Hi,
I want to Close a line item for Goods Receipt in a Purchase Order. How Do I do this?
My Requirement is that the system should not allow for Goods Receipt for the Line Item.
I know of 2 options which are difficult to Implement.
1) I delete the Line item
2) Put the delivery Completed Indicator - For this the system still allows for GR
any Other way of Closing the line Item
NSHi, you can close the Line item by, doing partial GRPO, i.e if u use the Copy From option in GRPO, there comes a Draw docuemnt wizard, there you can choose one line item, and then put GRPO for that line item,
The Wizard comes only in the Copy From option,
Close the Line item, by right clicking on that Line item and then 'close Row'
Edited by: Gayathri Panneerselvam on Dec 19, 2008 10:25 AM -
Automatically pop up of 100 Line items in PO from RFQ
Dear All,
I have created RFQ for 100 line items...Now with Ref. to This RFQ i am creating PO..
My requirement is, is there any way out i can get my all line items i.e. 100 line items in one single shot without entering it manually in line item number.
Regards
UtsavHi
Go to document overview on,Select your RFQ,here multiple line itens in RFQ will be displayed.Now press shift,Down arrow,end .This will select all the Line items in RFQ ,Then drag and drop in the basket .All the line items will be copied to PO
Regards
Sandeep -
How to check plan line items for plan cost at network activity level?
Dear all,
How to check plan line items for plan cost at network activity level? The plan cost is done in network activity in CJ20N.
I am not able to check using CJI4 or CJI9 report.
Kindly advise.
Thanks and regards,
JessieHi Jess,
Have you checked the navigation part which is being displayed on left hand side of report S_ALR_87013565 and S_ALR_87013533.? There you have option to check transaction currency and object currency when you double click on it.
In case if it is not being displayed under navigation. Then you can bring them on from transaction code CJE2. For eg: Report group for S_ALR_87013533 is 12KST1C. Double click on it and it will open up to do changes in report layout and many more. There you also have options to bring on transaction currency too. Similarly, you can check for other report groups as well just by checking the report description.
But I am not sure if suits your requirements. Wait for other experts to comment on this.
Regards,
Amit
Maybe you are looking for
-
I changed the Primary email for an appleid. There was a typo in the email address. this makes the appleid waiting for verification. I spent five and a half hours with support before they understood the problem. Once we both were talking about the sam
-
My iphone 5 broke so had to get a sim card and put it in my husbands old iphone 4. i can not figure out how to get my imformation on this his old phone; contacts, apps ect. i have switched my icloud account and apple id on the phone but nothing has c
-
How do you set default save file type
My Photoshop when I choose save as is choosing TIF as the default file type after opening a raw file. I want to choose PSD as the default. I cannot figure out how to change the setting to raw.
-
Iweb SEO tool won't upload to FTP
Hello I had success last month, when I had to migrate my iweb site to Godaddy for hosting, but now when I try to use iweb SEO to publish it via FTP, it times out. I get "connection lost", or just a "beep" as an error message. I'm using iweb SEO tool
-
Content not displaying.
I built a login form and put an Application.cfc file in the folder i want to restrict and it's not displaying the simple text i put in the index.cfm for testing purposes. ======= Application.cfc code (in folder name "admin_section")========== <cfcomp