FCC parameters for header and item
Dear All,
I am working on a File to RFC scenario. The file has the PO deatils from which Salesorder has to be created in R/3. Am using the BAPI BAPI_SALESORDER_CREATEFROMDAT1 to create salesorders. I have tested the scenario with XML message - it is working file .
The problem is with FCC.
The structure of the file is as follows
PO number,podate,deliv. date,cust. material,quantity,receiving point
message type:
-->MT_messagetype
>input
>header
po number
po date
deliv date
>item
>item
cust_material
quantity
receiving point
>partner
>partner
dummy field.
input is the recordset
i have to get the first 3 fields from the file inlto header and the rest into item.
i have created a dummy field in partner because I am mapping a constant value to sold to party in partner node .
what should be the FCC parameters ?
After looking at your structure which is comma separated and doesn't have any keyfields it will be difficult to content convert it into different nodes like header and item.
I was looking at using fixed field lenght's along with field separator to split the structure, as the first 4-5 fields of u r row seem to be standard structures which will have fixed length, but then your last field "receiving point" is not a of fixed length.
so as long as my understanding goes you will have to content convert the input into a flat xml structure like this:
<input>
<header>
</po number>
</po date>
</deliv date>
</cust_material>
</quantity>
</receiving point>
</header>
<input>
Recordset name - input
Recordset structure --header,*
FCC
header.fieldNames -- po_number,1,po_date,1,deliv_date,1,cust_material,1,quantity,1,receivingpoint,1
header.fieldSeparator -- ','
header.endSeparator -- 'nl'
Since in your scenario looks like you are creating one sales order per row of file, the above structure should do the job for you.
Cheer's
Similar Messages
-
Receiver FCC Structure For Header and Trailer
Hi Guys ,
I need to go for receiver FCC for header and trailer in PI .How the FCC in communication channel needs to be configured if I am taking a separate node for header and trailer in mapping .Output of the file should be as the file attached.
Thanks.
Regards.Hi,
If you are using File communication channel as a reciver you can go with FCC.
Use record set structure as : Header,detail,trailer.
https://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Otherwise if you are going for SFTP to create the file ... follow the Indrajit suggestion..
Still facing any issue.. Please let us know..
Thanks,
Sreenivas... -
Sales order condition change for Header and Item level..
Hi Gurus,
My requirement is as below..
Business wants to create new sales order from reference.. While creating slaes order fron reference , need to populate header/Item level condition tab data from originally paid by the invoice for that refence sales order not from refence sales order condition price.
I would like to how to bring this one, any user exit or copy control and any VOFm routine need to populate this kind of requirement.
Any one have any idea please let me know.. It very urgent, give reward points for right solution..
thanks,Hi,
Here are the answers to your question
> Is it possible to add/change condition types on the sales order (header and item level) for which invoice has been created already?
I mean is it possible to add some surcharge condition to already invoiced order and than as result debit memo?
The answer is No. You cannot add or change the condition once it is invoiced.
> And one more question : Are there some time restrictions when debit/credit memo can be created? (I believe not, but I would like to have this confirmed, as I am not SD expert.)
The answer is No again. There is no time restriction and you can create debit or credit memo immediately when the invoice is released to accounting.
Hope this helps
Thanks
Mukund S -
ME21N - badi or exit to check waers for header and item overview
hi all,
i need to raise error message, after checking the header (delivery/invoice tab) - currency and item overview - currency.
if they are not equal, then error message must be given and should be stopped from document posting.
i was trying with the EXIT_SAPMM06E_012 and include zxm06u43.
but i could not fulfill the requirement. actually i could not find in what table the item overview currency is being stored. it is having the screen field (MEPO1211-waers).
how to proceed with this.
plz help me in this regard.
Sakthi Sri.hi verma,
i was checking with the BADI >ME_PROCESS_PO_CUST, as you told, and in PROCESS_ITEM i am writing my code as follows,
METHOD if_ex_me_process_po_cust~process_item .
DATA: ls_mepoitem TYPE mepoitem,
ls_customer TYPE mepo_badi_exampl,
ls_tbsg TYPE tbsg,
ls_mepoheader TYPE mepoheader.
DATA: i_ekko TYPE ekko.
ls_mepoitem = im_item->get_data( ).
ls_mepoheader = im_item->get_header( ).
IF ls_mepoitem-waers NE ls_mepoheader-waers. "i_ekko-waers.
MESSAGE e000(z1) WITH 'error'.
ENDIF.
ENDMETHOD.
but is giving error ' The result type of fn. method cant be converted into the type ls_mepoheader'. how to correct this error.
thanks,
Sakthi. -
MRP list out put tables for header and item -reg
Hi ,
What is the table to be used for MRP out put
header is MDKP
for item what is the table ?
regards,
madhu kiranDear,
Tthe MRP item data is stored in a data cluster. The database
table is MDTC, and the data cluster area is ar. Use the following command to
import the data from the data cluster:
Import <structure> from database mdtc(ar) ID <key>.
The ID key value comes from the field dtnum (Number of the material
requirements planning table) in table MDKP
MDKP MDTB MDKP
Please refer this also,
[Table for MRP item|table for MRP item]
Regards,
R.Brahmankar -
Hi guys,
Anybody knows which object may i use for show up a document and its items? I've looking in SBSPEXT* examples.. but i did not find anything interesting.
My own solution should be in HTMLB.
Any help will be rewards,
AlexandreDid you check my weblog on that..?
Display Hierarchy Report in BSP using TableView and Tableview Iterator
Check it once, may be you are looking for the similar kind of output.. -
ALV - Layout for header and item level data
Experts,
A program extracts complete sales order details (including item level data) in ALV format. Now, during display, if anyone changes the layout to have only header level fields, I would like the duplicate records created by item data to go away. Would you know how to accomplish this?
Any help would be rewarded with points.
UVHello,
You can do it instead of adding a button on the ALV, on the selection screen add a radiobutton asking what information is required.
Header Information
Detailed Information
Or something like that
Bye
Gabriel P -
Sender FILE Adapater Content Conversion: Header and Item Data
Hi
I need to pick a file and do the content conversion. The XML structure which should be formed should be in the below format. I have a CSV file which needs to be converted.
Kindly suggest how can I maintain parameters for Header and Item level data in Recordset structure.
How can I specify in Recordset parameter which is Header(Customerno, Doc type and Address) and Item level(Line Item) data.
<?xml version="1.0" encoding="UTF-8" ?>
<customernumber></customernumber>
<documenttype></documenttype>
- <Address>
<name1></name1>
<name2></name2>
</Address>
- <LineItem>
<material>100016</material>
<amount>1000</amount>
</LineItem>Hi Swetank,
The file after conversion should have one Header and you can have any number of line items.
Once you choose File Content Conversion in the message protocol header while configuring the Sender File Adapter, you get the following enteries in the Content Conversion Parameters:
Document Name
Document Namespace
Document Offset
Recordset Name
Recordset Namespace
Recordset Structure
Recordsets per Message
Key Field Name
To maintain the Header information, Some entries are mandatory, i.e.
Recordset Name: Here please specify the name of the structure. It is included in the XML schema.
Recorset Structure: Here you need to enter the sequence and the number of substructures. Since Header is one but you can have many Line items, you will write:
customernumber,1,documenttype,1,Address,1,LineItem,*
this format is clearly explained in the link provided by Divya.
And in the Additional fields you need to write the name of fields corresponding to different Recorset Structures and also add some property to it, like fixed lengths, use some separators etc.
and Most important field is:
Key Field Name: If you specified a variable number of substructures for Recordset Structure, in other words, at least one substructure has the value *, then the substructures must be identified by the parser from their content. This means that a key field must be set with different constants for the substructures. In this case, you must specify a key field and the field name must occur in all substructures.
Here you need to enter LineItem as it is the only Recordset Structure with an *.
I hope this solves your problem,
Thanks and Regards,
Varun Joshi -
Partners in Header and Item level
Hi,
I am creating a credit memo through the following steps.
1. Create rebate agreement in VBO1.
2. Create sales order in VA01.
3. Release through VKM4.
4. Create delivery through VL01n.
5. Post goods issue.
6. Create billing document through VF01.
7. Update billing doc through VBOF.
8. Settle rebate agreement through VB(7.
When the credit memo is created,in debugging mode(VB(7),if I change the partner for "header", partner for "item" is also getting changed.This is as per my requirement. But I wanted to know whether there can be a case where item partners are different than header partners. (Right now I am having only one line item in credit memo.I am not being able to create a credit memo with more line items by repeating all the steps above).Sowrabha
It is possible to have different Partners for Header and Items... However, in your scenario it doesn't create any problem, as it all depends on the Partner Determination Procedures in the customising....
Thanks
Amol Lohade -
Header and Item data in a module pool
Hi Friends,
I designed a screen in that i have header data and item data.
Here in my screen header i have vendor number,Vendor name,
bank Name, Branch, LC value and Due date fields.
and for item details i have to take table control.In the item details i have the fields Sl No, PO Number and Po Value.
and Two push buttons i need to put.SAVE and CANCEL.
When i click on SAVE all my screen details should be saved in a ZTABLE and should generate a LCDOCUMENT-Number from the system.
So my question is shell i take the two tables for header and item data or one is enough and if i take two tables(one is header and one is item data) how i write the logic to store into the ztables.
How can i proceed.Plz provide me with ur inputs
Thanks and Regards.Hi!
you have to take one table.....in which u have to move the header and item data into that b'coz according to the header data the items are to be displayed.......
select the data for which ever tables they came and then take a final table in which include all the fields of header and item .loop on all the tables from which data u have taken and inside it move the data of those fields into the fields of the final table.
In the ALV u need to call the function module to display the ALV with that final table in which ur all data is there and prepare a field catalog of those fields you want to display in the item list.
for example a sample code is there...
types:
begin of type_s_vbak,
vkorg type vbak-vkorg, " Sales Organization
aufnr type vbak-aufnr, " Sales Order Number
auart type vbak-auart, " Sales Order Type
kunnr type vbak-kunnr, " Customer Number
vbeln type vbak-vbeln, " Sales Document
knumv type vbak-knumv, " Number of Document Condition
end of type_s_vbak. " BEGIN OF TYPE_S_VBAK
types:
begin of type_s_konv,
kwert type konv-kwert, " Condition Value
kbetr type konv-kbetr, " Rate (Condition Amount)
knumv type konv-knumv, " Number of Document Condition
kschl type konv-kschl, " Condition Type
end of type_s_konv. " BEGIN OF TYPE_S_KONV
types:
begin of type_s_material,
kunnr type vbak-kunnr, " Customer Number
matnr type vbap-matnr, " Material Number
arktx type vbap-arktx, " Material Description
steuc type marc-steuc, " Fiscal Classification
kwmeng type vbap-kwmeng, " Quantity
knumv type vbak-knumv, " Number of Document Condition
vbeln type vbak-vbeln, " Document Number
kwert type konv-kwert, " Condition Value
total type p length 14 decimals 2,
" Total
ipitype type p length 9 decimals 3,
" IPI Type
ipivalue type konv-kwert, " IPI Value
end of type_s_material. " BEGIN OF TYPE_S_MATERIAL
data:
fs_vbak type type_s_vbak.
data:
fs_mati type type_s_material.
data:
fs_konv type type_s_konv.
data:
t_vbak like
standard table
of fs_vbak.
data:
t_konv like
standard table
of fs_konv.
data:
t_mati like
standard table
of fs_mati.
loop at t_konv into fs_konv where kschl eq 'ZPNF'.
move fs_konv-kwert to fs_mati-kwert.
modify t_mati from fs_mati
transporting kwert
where knumv eq fs_konv-knumv.
endloop. " LOOP AT T_KONV INTO FS_KONV
* Modifying Total Field of Material Table.
loop at t_mati into fs_mati.
w_total = fs_mati-kwmeng * fs_mati-kwert.
move w_total to fs_mati-total.
modify t_mati from fs_mati
index sy-tabix
transporting total.
clear w_total.
endloop. " LOOP AT T_KONV INTO FS_KONV
* Modifying IPI-Type Field of Material Table.
loop at t_konv into fs_konv where kschl eq 'IPI3'.
w_total = fs_konv-kbetr div 10.
move w_total to fs_mati-ipitype.
modify t_mati from fs_mati
transporting ipitype
where knumv eq fs_konv-knumv.
clear w_total.
endloop. " LOOP AT T_KONV INTO FS_KONV
* Modifying IPI-Value Field of Material Table.
loop at t_konv into fs_konv where kschl eq 'IPI3'.
move fs_konv-kwert to fs_mati-ipivalue.
modify t_mati from fs_mati
transporting ipivalue
where knumv eq fs_konv-knumv.
endloop. " LOOP AT T_KONV INTO FS_KONV
and then fill the fieldcatalog and display the ALV
Edited by: Richa Tripathi on Apr 15, 2009 3:28 PM -
BAPI_SALESORDER_CREATEFROMDAT2, Header and Item Level Ship-to
I have a situation where I want to have different header and item level ship-to accounts on a sales order. When I use the BAPI_SALESORDER_CREATEFROMDAT2 to create the order by passing the Ship-to for header and Item in order_partners table, the header ship-to is not updated.
This works fine if the header and item level ship-to are same.
Any ideas.Hi Amit,
put a breakpoint at the BAPI and check your PARTNERS table
e.g. in the case, i am using iterms partner for line 10 & 20 that is different to the header table (000000)
PARTN_ROLE PARTN_NUMB ITM_NUMBER TITLE NAME
1 AG |EDICUS |000000 | | <
2 WE |DODGE |000000 | | <
3 WE |EDICUS |000010 | | <
4 WE |RWCUS |000020 | | <
if your table is not like this , it won't work
otherwise, post the relevant code and we can check
kind regards
Paul Quinn -
Different payment term at header and item level
Hi,
In sales order(VA03) we r getting different payment term for header and item.
Eg: For header we get MZ30 and for item level MZ60.
It's only for a particular material. I have been asked to find out why? Any thoughts?
Thanks in advance
ChesatHi Lakshmi,
Where do we maintain this entry to reflect this change. -
Header and item level approval using N level BADI
Hi Experts,
I beleive we can use either header level or item level approval workflow (WS14000133 and WS14500015) using N Approval-BADI. Please advise what information approval will be able to see if we will be using WS14000133 (Header level approval). Can he see all line item information or header level only.
Regards,
KamalIn SRM the same BADI is used for SC, PO, Invoice and others as well.. If you see the example implementation provided by SAP, you can see the use of CASE statement with different Business Objects and code under it.
Irrespective of the Header level or Item level approval workflow the same BADI has to be implemented.
The difference between Header and Item Level approval is
1) In Header level, approval or rejection is done for the whole cart (there can be 1 item or multiple items).
Approver will be able to see all the items in the cart.
2) In Item level, approval or rejection is done for each and every line item. here is an example ---
Line item 1 has Cost Center as Account Assignment Category and has to be approved by Users A and B.
Line item 2 has Internal Order as Account Assignment Category and has to be approved by Users C and D.
Item 1 goes to user A and once approved, it goes to B. they will not be able to approve or reject item 2. but we can restrict user A and B to see item 2 or not by setting a flag..
Item 2 goes to user C and once approved, it goes to D. they will not be able to approve or reject item 1. but we can restrict user C and D to see item 1 or not by setting a flag..
The SC will get released only after all the items are approved.
For Header Level approval, you need to fill the APPROVAL_TABLE.
For Item Level approval, you need to make use of APPROVAL_TABLE, ITEM_APPROVAL_TABLE and ITEM_APPROVAL_OBJ.
Examples provided by SAP might give you an idea how to code for Header and Item Level.
Hope this gives you some information .....
Regards,
PR.
Edited by: PR on Nov 25, 2008 10:50 PM -
Smartform Template - Header and Items itab
All,
I wanna use template node in smartform as the number of rows should be fixed.
I have two internal tables one each for header and items.
I'm not sure how to proceed.
Help is highly appreciated and rewarded
Regards,
YounusYounus,
As per your query you know that no. of header and line items are fixed(total records ).
Ex : you have 3 header and 6 item
Make template with 9 rows and 1 for heading(column names).
sales order no Sales document item material
1 A K
B L
2 C M
D N
3 E O
F P
while passing data to templat
when new sales order then only write the orderno else
item values.
Don't forget to reward if useful... -
How to create a new field for Q3 - QM notification in Header and item level
Dear All,
l
Sub: How to create a new field for Q3 - QM notification in Header and item level
Ref. the link --> Quality Notification
We want to create a new field in header level and item level.
As per the thread the solution is given below.
In the IMG Config: Quality Management -> Quality Notification -> Notification Types -> Define screen areas for notification types Then Choose 'Define screen areas' Then Click on 'New entries' button Now, select the relevant Notification Type and click in 'Enter'. Select the 'Iten Cases' register and remember to setup the Tabstrip Header, Icon, etc. Set the 'Tabstrip active' flag. Then Save.
Quality Notification -> Notification Types -> Define screen areas for notification types
WE ARE UNABLE TO FIND IN CUSTOMIZATION PATH --> DEFINE SCREEN AREAS FOR NOTIFICATION TYPES.
Please help.
Question No. 2 :
THE REQUIREMENT IS GIVEN BELOW.
We want to hide the field in Q3 - QM Notification
In header --> Reference tab --> Item (sub heading) --> "DEFECT LOCATION" FIELD TO BE ELIMINATED (HIDE)
Ref the link --> Quality notification
The solutiion is given below.
Hi Sami,
We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
Hope this will suffice your requirement.
Kindly ask me if you need any other details.
Thanks & Regards,
Srinivas.D
Hi Sami,
We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
Hope this will suffice your requirement.
Kindly ask me if you need any other details.
Thanks & Regards,
Srinivas.D
By double clicking the "DEFECTIVE QUANTITY (EXTERNAL), WE COULD NOT GET --> field TXTCDOT .
Plese do the needful.
We are using ECC6.0 Ehp3 and Ehp4.
With Best Regards,
Raghu SharmaDear Pushpa,
Transaction Code :SHD0 is working fine.
Please accept my sincere thanks for your sharing your Knowledge.
I am able to fulfill my
Regarding the enhancement, I have not tried.
Once I will complete, I will award the fulll marks to you.
With Best Regards,
Raghu Sharma
Maybe you are looking for
-
It seems frozen in private browsing mode. Cannot get it back into normal browsing mode. Firefox is completely updated on the MAC as is the MAC Lion OS.
-
hi someone can help me. *** example main code: System.out.println("hello 1"); classx.do(); System.out.println("hello 2"); *** result: the program show "hello 1" only *** the method do () of classx: public void do (){ system.out.println("ok"); it seem
-
Folder moving - any alternative to drop & drag
Hi, It seems to be my day for asking basic LR3 questions. I have quite a complicated folder system that I have operated manually for quite a while and I am comfortable with it. Without going into too many details, one of the basic premises is that I
-
I'm editing AVCHD in CS5.5 (720p/30fps) and exporting it as an mp4 H.264 file. Looks fine. But when I upload to Vimeo, with and w/o the Vimeo preset selected in the export setting, anthe video comes out jittery. Any ideas? Suggestions? Thanks!
-
Lack of support for the Android Tablet Forum
It seems there is a lack of Lenovo involvement in the Android Tablet forum. I'm posting here in order to point this out as someone with Lenovo really needs to follow up on the issues there. Many of us are waiting on the Lollipop update for our table