Mapping scenario with one customer and many invoices
Hi!
I am receiving a flat file with one customer and n-invoice records. The file could look like this:
133133222051241480320842420500089
13317350071000010806372131000 0015890009876543X
13317350071000010806372131000 0015890009876543X
13317350071000010806372131013 0015890009876443X
13317350071000010806372131014 0015890009872343X
where the first line is customer and the rest are invoices.
My question is: How can I get this into a structure like this:
<Customer>
<...>
<Invoice>
<...>
<Invoice>
<...>
When using content conversion (Customer,1,Invoice,*) there has to be specified a key field, which is not a possibility. Do I have to create a UDF for this to get the mapping I want?
Thanks for your answers!
regs Ole Mugaas
Thanks for your answers!
As I can see from the Krawcyk blog, he is only using one node and maybe that's why he don't have to use keyField. We have also come to the conclusion that we have to use keyfield, but then we have to give the fields out own values. This is not good enough since the values are predefined. Creating a "placeholder" in each data type would not be a good answer because then our customers have to send an additional field in the file which would cause a lot of work.
Do you know how this can be solved with the keyfield? Is it possible to create a keyField and give it a value that is already there, ex:
Invoice.keyFieldValue = Invoicenumber (where Invoicenumber is a field specified in the DT) ?
regards Ole
Similar Messages
-
WBS Element in customer and Vendor invoices
Hi Gurus,
Is it possible to have wbs element in customer and vendor invoices, which will allow to see project wise invoices in FI reports?? If yes, how? And if no, what is the general business process for such scenario???
Thank YouHi Mohit
I Believe this is possible yet not practical for the reasons there is no one to one match between WBS and Customers / Vendors. You can have multiple WBS for a single customer invoice / Vendor invoice.
Expert advice will follow soon
Regards
Mustafa -
One Delivery Type, Many Invoice Types
We have a peculiar invoicing configuration where we just use one sales order type (PCRE) and one delivery type (ECRE) and many invoice types, one for each plant, my problem its that for the last plant we must be missing a configuration since when creating a new invoice (VF01) SAP by default suggest an outdated invoice type (I am erasing it from VTFL next) but since this is also entered with the rest of the plants where we do not have problem I am wondering where can I find link between Invoice Type and delivery when the delivery type its the same for all the plants?
in other words: how does SAP knows the correct invoice type since the delivery type and sales type are the same for every plant, since only our invoices are different for each plant?
I have been looking here unsuccessfully: VTLA , VTFL, VTFA, V/54, OVL3 and others.
Thank you and Best Regards,
Carloswhere can I find link between Invoice Type and delivery
In VTFL only, you can find a link between your delivery type and billing type. If multiple billing types are there for one delivery type, you have two options. Either you have to key in manually in VF01 or VF04 or go for billing exit USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ). Nevertheless, you should have copy control for all those billing types against that delivery type in VTFL.
thanks
G. Lakshmipathi -
Dunning letters printing with zero balance and no invoice listing
How to trouble shoot 'Dunning letters printing with zero balance and no invoice listing' problem
As per my understanding it could be due to OB22 settings.
refer following SAP notes
335608,191927,
373296 -
It's a Magic Mouse question. I have set this up in Preferences by ticking Swipe between pages with one finger and also Swipe between full-screen apps with two fingers, however when I try to do the latter, the 2 finger swipe will take me from the app that I am on to the dashboard only and not to my other open apps.
I also find that Smart zoom only works with some apps, for instance not with Word docs or email.
How can I correct this please?Just figured out it also does not work with the Mail app.
-
When I got my new iPhone and was trying to switch everything over I accidentally set up a new icloud account with one email and had one on my old iphone with another account. Does anyone know how I can merge the two accounts?
You cannot merge Apple IDs but you can go to Settings > iCloud and 'Delete Account'. When prompted to turn off documents and data, choose the only option which is Delete from my iPhone, but on the other prompt for Contacts, Calendars, etc you can choose 'Keep on my iPhone' Then once the Account is Deleted form the iPhone, log back in with the correct Apple ID and choose Merge when prompted. This will merge your data from this iPhone with that iCloud account effectively putting your devices on the same account.
-
I've got a wireless network with one iMac and a Vista PC, on the Vista PC is through USB a printer connected. How can i print from my iMac to that particular printer ?
You need to turn on Printer Sharing on both the PC and OS X. I can't help you on Vista but in OS X it's System Preferences - Sharing - check the Printer Sharing box.
-
i tried to sinc my photos and i ended up deleting off my phone all the pictures. i only ended up with one folder, and i cant figure out how to put rest of folders from my computer back on my phone.....help
and on a second problem. I need to know for sure that my contacts are backed up on my computerCreate a parent folder on your computer to store the named folders of photos that you want transferred to your iPhone. Under the Photos tab for your iPhone sync preferences with iTunes, select the parent folder. All named folders of photos within will be transferred to your iPhone as separate folders or albums.
Regarding your 2nd question, this should be easy. Your contacts should be available on your computer with or without an iPhone or any cell phone, which can be lost or stolen.
Although contacts are included with your iPhone's backup which is updated by iTunes as the first step during the iTunes sync process, not a good idea to depend on this either since the iPhone backup includes a significant amount of other data. Contacts are designed to be synced with a supported address book app on your computer. With Windoze, this can be with Outlook 2003, 2007, or 2010 along with syncing calendar events and notes, or with the address book app used by Outlook Express with XP and by Windows Mail with Vista and Windows 7 called Windows Contacts for syncing contacts only. -
can you activate an iphone with one sim, and than once it is activated use it with another sim?
It could be the activation server is unavailable right now, however have you or anyone else ever used that computer to jailbreak or hack another phone? That can have an affect on the hosts file. You can check this regarding information on the hosts file or security software problems.
Error 1 or -1
This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
Update to the latest version of iTunes. Mac OS X 10.5.8 (Leopard) users may need to download iTunes 10.6.3.
Third-party security software or router security settings can also cause this issue. To resolve this, follow Troubleshooting security software issues.
Downgrading to a previous version of iOS is not supported. If you have installed software to perform unauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Advanced iTunes Store troubleshooting—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > Mac OS X > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.
Error 3014
This error occurs when iTunes is unable to reach gs.apple.com in a timely fashion. Follow the steps below in Unable to contact the iOS software update server gs.apple.com. -
When printing from Preview, the document prints with large print and many lines added and pages added. Why does this happen?
Thank you!!! That was the problem--scale was set at 200% (don't know why)--when I reduced it to 100% it printed perfectly.
Thanks again for helping me resolve this problem. -
Expandable lists that expand and collapse with one click and edit in wysiwyg
I have a lot of text based lists on one page, so I threw them into content editor web parts so i can expand / minimize the lists. However, two clicks (one on the arrow and then one on "restore") is becoming really tiresome. How can I make expandable
lists that expand and collapse with one click? AND they are still editable from the wysiwyg browser editing tool?
I have already tried using Jquery to create expandable content, but the problem here is that the content can't be edited in the wysiwyg browser based editor - the expand or collapse button doesn't "work" when you are in the edit mode, so you can never
see the expandable content to edit. I can change the content in the code but it's no good if my non-coder co-workers can't also edit it.
I am in 2010.I just found the answer myself here: blog (.) pathtosharepoint.com/2008/10/25/expandcollapse-buttons-for-your-web-parts/
Worked perfectly. Allows open and close of CEWP with one click, and you can still edit their content in the wysiwyg editor. -
Clearing between customer and vendor invoice with F110 transaction
Hello,
I have an issue related to the functionalities of the transaction F110.
I'd like to clear the vendor invoice with the custome invoice.
Customer and vendor records are linked properly and the flag 'Clrg with Cust.' is set on vendor and 'Clearing with Vendor' is set on customer.
Both the invoice are in USD and the amount in document currency of the vendor invoice is > of the amount in document currency of the customer invoice.
I entered in both the invoice the same payment method (outgoing payment method).
The error that I can see in the proposal log is related to the customer invoice and is:
Payment method selection for items due now to the amount of USD 500,00
Due items with currency USD, pmnt method - items total is > 0
..none of the payment methods defined can be used for these items
information re. vendor xxxxxxxx / customer yyyyyyy / paying company code TS01 ...
.. payment not possible because of reported error
According to the log of the proposal the vendor invoice can be paid.
If I click on display proposal and double click on the customer invoice (with red light) I can read the note:
No pymt possible because items with a debit
Following the settings of the payment method used:
Payment method in the country
- Payment method for outgoing payment selected
- Bank transf. selected
- allowed for personal payment flagged
- Bank details flagged
- Document type for payment XX
- clearing document type XX
- Use classic payment medium program selected
Currency allowed: This table is empty (will mean that all currencies are permitted)
Payment method in company code
Minimum amount: 0,01
Maximum amount: 9.999.999.999,99
Distribution amnt: 0,00
Single paymentfor marked item selected
Foreign business partner allowed selected
foreign currency allowed selected
Cust/vend bank abroad allowed? selected
Bank selection control "No optimization" selected
Can you please help me to understand the error?
I'm afraid it is a problem with the bank but I don't understand why the payment of the vendor invoice is allowed and the customer invoice not.
Thank you very much in advance
Kind RHello,
I have an issue related to the functionalities of the transaction F110.
I'd like to clear the vendor invoice with the custome invoice.
Customer and vendor records are linked properly and the flag 'Clrg with Cust.' is set on vendor and 'Clearing with Vendor' is set on customer.
Both the invoice are in USD and the amount in document currency of the vendor invoice is > of the amount in document currency of the customer invoice.
I entered in both the invoices the same payment method (outgoing payment method).
The error that I can see in the proposal log is related to the customer invoice and is:
Payment method selection for items due now to the amount of USD 500,00
Due items with currency USD, pmnt method - items total is > 0
..none of the payment methods defined can be used for these items
information re. vendor xxxxxxxx / customer yyyyyyy / paying company code TS01 ...
.. payment not possible because of reported error
According to the log of the proposal the vendor invoice can be paid.
If I click on display proposal and double click on the customer invoice (with red light) I can read the note:
No pymt possible because items with a debit bal.still exist; see job log
Following the settings of the payment method used:
Payment method in the country
- Payment method for outgoing payment selected
- Bank transf. selected
- allowed for personal payment flagged
- Bank details flagged
- Document type for payment XX
- clearing document type XX
- Use classic payment medium program selected
Currency allowed: This table is empty (will mean that all currencies are permitted)
Payment method in company codeMinimum amount: 0,01
Maximum amount: 9.999.999.999,99
Distribution amnt: 0,00
Single paymentfor marked item selected
Foreign business partner allowed selected
foreign currency allowed selected
Cust/vend bank abroad allowed? selected
Bank selection control "No optimization" selected
Can you please help me to understand the error?
I'm afraid it is a problem with the bank but I don't understand why the payment of the vendor invoice is allowed and the customer invoice not.
Thank you very much in advance
Kind Regards
Emanuela -
Order booking on one customer and invoicing a different customer
Hi all,
I have a requirement wherein I book a sales order on one customer C1. And I need to ship the goods to some C2, who is a customer for C1. I should invoice C2 and not C1. I get the payment from C2. how can I achieve this?
plz help.
Thanks in advance.Hi
you can create customer c2 bill to location under c1 while ur booking the order u can select customer c2 address as bill to as well ship to location . so that order invoice will be sent to customer c2 address. -
Classic and extended classic scenario with one EBP
Hello Guys
If I have a one EBP and multiple ERP back ends. For one backend, I need to have classic and other to have extended classic scenario. How this can be fulfilled. Is it possible, if so please provide the configuration setup.
Thanks in advance.Hello,
In BADI BBP_EXTLOCALPO_BADI method DETERMINE_EXTPO.
you can try this.
Structure Declaration
DATA: ls_item_data TYPE bbps_extpo_badi.
Moving item data to a structure
MOVE-CORRESPONDING item_data TO ls_item_data.
SELECT SINGLE LOGSYS FROM comm_product
INTO lv_logsys
WHERE PRODUCT_GUID = ls_item_data-PRODUCT .
If lv_logsys = 'XXXCLNT010' "backend system
Cancelling the enhanced classical scenario
bbp_extpo_gl-bbpexpo = space.
ELSE IF lv_logsys = 'YYYCLNT010' "backend system
Cancelling the enhanced classical scenario
bbp_extpo_gl-bbpexpo = ' X'.
ENDIF.
Regards,
Neelima -
Dear all,
I have a input that looks like this:
HeaderKeySomeHeaderInformationItemKeySomeItemInformationItemKeySomeItemInformation...
Here's the actual input
TEHGMESS0026000000288S0001TEI2____026200006112410400000000 18010000000000 00126000000000126000120600000000002000000000 000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000JTEI2____026200006112410400000000 19010000000000 00126000000000126000120600000000002000000000 000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
HeaderKey = TEHGMESS
ItemKey = TEI2____
Is it possible to process this via MessageTransformBean (my actual scenario is JMS to IDoc)? I already tried but I only succeeded when having new lines in my input to separate between Header and (multiple) Items.
So when the input and my configuration looks like below it works, but when I only have a single row input it doesn't work, even when specifying xml.recordHeader.endSeparator = '0' / xml.recordItem.endSeparator = '0'. I even tried xml.endSeparator = '0' but no luck.
Input that works
TEHGMESS0026000000288S0001
TEI2____026200006112410400000000 18010000000000 00126000000000126000120600000000002000000000 000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
TEI2____026200006112410400000000 19010000000000 00126000000000126000120600000000002000000000 000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
Matching configuration that works for input which structures are delimited by new line.
Paramentername
Parametervalue
Transform.Class
com.sap.aii.messaging.adapter.Conversion
Transform.ContentType
text/xml;charset=utf-8
xml.conversionType
StructPlain2XML
xml.documentName
MT_TEI2Split
xml.documentNamespace
http://hansgrohe.com/pi/MQ/TEI2/10
xml.keyFieldName
SATZARTKey
xml.keyFieldType
CaseSensitiveString
xml.processFieldNames
fromConfiguration
xml.recordHeader.fieldFixedLengths
8,4,9,1,4
xml.recordHeader.fieldNames
SATZARTKey,SATZLENHG,NUTZLEN,MESSAE,MESSNR
xml.recordHeader.keyFieldValue
TEHGMESS
xml.recordItem.fieldFixedLengths
8,4,2,10,8,19,3,3,2,10,6,2,10,6,2,10,6,6,6,6,6,11,9,2,10,6,2,10,6,3,4,3,7,14,8,1,31
xml.recordItem.fieldNames
SATZARTKey,SATZLEN,BUCHART,TRNR,ANDGNR,MITEM,TEIVARI,BSTSTATU,REFTYP,ORNO,POS,REFTYP1,ORNO1,POS1,CHATYP,CHARGE,CHAPOS,ABBVONL,ABBNACH,ZUBVONL,ZUBNACH,I2MENG,I2BUNR,REFTYPN,ORNON,POSN,REFTYP1N,ORNO1N,POS1N,BSTSTATN,ABUSERAB,ABUSERFN,ABUSERNA,I2TIME,I2LIDNR,I2FMCODE,FILLER
xml.recordItem.keyFieldValue
TEI2____
xml.recordsetName
records
xml.recordsetStructure
recordHeader,1,recordItem,*
Any clues on this? Is it even possible to have multiple structures in one row? Many thanks in advance
JensSAP came back to me with this answer:
First, I would like to point the documentation for Message Transform
Bean (MTB) in 7.4:
http://help.sap.com/saphelp_nw74/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm?frameset=/en/57/0b2c4142aef623e10000000a155106/frameset.htm¤t_toc=/en/45/0ea2de423c2d6be10000000a11466f/plain.htm&node_id=18
As it is written at the beginning of this document, MTB is used to
call classes written for the Plain Adapter Engine. So you may find
additional documentation about the parameters for convertion in the
documentation of the Plain Adapter Engine
(http://help.sap.com/saphelp_nw74/helpdata/en/0d/00453c91f37151e10000000a11402f/content.htm?frameset=/en/1b/d5ef3b1ad56d4fe10000000a114084/frameset.htm¤t_toc=/en/75/246b3de666930fe10000000a114084/plain.htm&node_id=11).There it is written that the structures by default are
arranged line-by-line. The endSeparator just adds additional character
string as a separator after the last column in a row.
I hope that this answers your question. MTB expects the data to be
structured line by line.
You may add a custom module, which transforms the message in the
expected format.
If you have a look at the second link there's even a more precise wording that multiple structures within one line are not supported:
xml.NameA.endSeparator
Even if no specification is made here, a line break must follow since substructures are always expected as a line of the document.
Bottom line is that it's not supported by now and verfied by me with PI 7.4 SP5
Many thanks to Ambrish, Amit and Hareesh for the valuable input. Will probably try to work things out for now following Ambrish's / Hareesh's suggestion as this seems easier to implement. Amit's proposal with a dedicated module however would probably be the more polished solution.
Cheers
Jens
Maybe you are looking for
-
I don't get why my Apple ID keeps saying this device is already associated with an Apple ID and something about 90 days but also it doesn't let me download any of my pre orders when available it has happened to me twice and my past purchases can some
-
IPhoto is not responding/loading for ever/crashing when I start it
Hello I hope anybody out there can help me with this... So, whenever I click on the iPhoto icon on my iMac, the app launches and the window opens, I can see some of the miniatures of my photos, everything is normal. But, when I try to scroll down in
-
Using advanced statistical functions in BO or creating your own ones
Hello, Can someone tell me if it is possible to use more advanced statistical functions in BO (webi or deski f.i.) like the possibility to extrapolate figures. I only see a limited functions in Webi (mean, intrapolate, percentiles, ...). If not is it
-
IPod nano does not connect with wireless earphone via bluetooth transmitters.
My iPod nano(6th) can not connect with wireless earphone via bluetooth transmitter. I want to know which is wrong iPod nano or bluetooth transmitter...Now I tried with i10s because I thought previous one (motolora) might be wrong. But both can not co
-
How to limit umber of items in a webpart view?
Hi My scenario goes like this 1. I have created a list 2. Then I created a web part page and added that list on that page 3. Now i would like to limit the number of item visible on that page to a specific number, as this page is my home page and i do