Sales Header and Item integration issues.
Experts,
If I integrate 2LIS_11_VAHDR and 2LIS_11_VAITM into an ODS:
Issues:
1) If I make my SO # as a Key Field: then I cannot capture all my item level details since they will be overwritten as the key is just SO #.
2) If i make both SO # and SO Item # as key fields: I can capture all my item details with out any problem since VAITM will have both SO # and SO Item # but how do I capture specifically header details as header DS does not have SO Item #
Please help me out
thanks
Hi Hari,
Can u be more specific on your requirement so that we can help u..?
Mahendra
Similar Messages
-
Data load problem with Sales Header and Item
Hi all,
The delta loads have failed, so I want to reload the delta again. I deleted the failed requests in data targets and then trying to reload the data. I am getting a message saying
Last delta update is not yet completed
Therefore, no new delta update is possible.You can start the request again if the last delta request is red or green in the monitor (QM activity)
Is it in RSA7, that I have to make the delta red? Please let me know where I have to do this. The data is going to an ODS object.
thanks
Sabrina.Hi Sabrina,
Hope you have sorted it out by now, as there are other responses as well. Assuming that you now know the cause of failure.
For the below message "If you set a 'red' delta upload to green,with the next request, BW sends a delta request to the source system and this delivers the next delta data.
The data from the 'red' delta load is then no longer available (even with a repeat). This can lead to loss of data.Do you want to execute a QM Action?" -- Say OK and and set the QM status to red (status not ok) and when prompted for activation of M records, say "no" (as indicated in my previous post).
However, to be able to load this request from PSA you need to have this request in PSA (depending on the processing options), so goto RSA1> Modeling> PSA--> find your request under the relevant application component, and right click -->start the update immediately.
Hope it helps,
Sree -
Hi all,
How to link Header and Item details
RanjithHi,
The Line item table always have the header tables key as one of the key field. so u can use it.
for eg : VBAK-vbeln and VBAP-vbeln
Vbeln is the link between sales header and item table.
Hope this helps. -
How can we revise the pricing both at header and item level of sales order?
Dear All,
Now there's one issue of the pricing to me. i want to revise the pricing both at header and item level of sales order. but after i finished the cutomize and tested it, it's more different as i thought. i found that the pricing can revise at the one side only,for example, if i revise the pricing at item level and it's grey and can't be revised at the header. on the other hand, it's the same result what's happened at item.
So, in my opinion, we can't revise the pricing both at header and item, right? if not, please give me more advices and teach me how to solve the problem. thanks a lot.Dear Lakshmipathi,
Thanks a lot for your kindly and useful answer for me and I learn more for the pricing technology.
I didn't notice the way that you reminded ago therefore I also saw the button at the condition tab. And your suggestion makes me know more.
And I had tested the way that you said, I met with a question. Below is my opinion for my testing.
I had created one SO and the pricing was $10, then I revised the pricing from 10 to 15 by VK11. It can't be updated automatically at SO and I must update it manually by clicking the "Update" button. This is OK for my testing, but I have another question to disturb you for the use of "Active" button. When I click the button and nothing is responsed, it's quite different what you said. So, please give more detail for the Active button. Thanks a lot. -
Delivery tolerance at header and item level in sales order
Dear All,
My client wants to maintain delivery tolerance at both header and item level. NOTE: The tolerance at sales order header is different than the delivery tolerance at sales order item.
eg if i maintain 3% plus and minus tolerance at item, the header level tolerance can be 2%.
Also if there are more than 1 line items, the system should give warning message, when it finds that the delivery tolerance at item level can be maintained but that of the header level cannot be maintained and vice varsa.
Awaiting an early help and thankful for the same in advance.
Regards,
Avnesh KamdarHi Avnesh,
Delivery tolerance can be made in the customer master,sales org data ---delivery tab.
Delivery tolerance is always at item level.
Reward points if it helps.
Regards
Karan -
How to header and item data of sales order using bapi interface
hi friends,
i am geetha, i having a problem like how to upload sales oder header and item data through va01 tcode using BAPI FUNCTION MODULES.
i need bapi function modules for header adn item data and brief explation on that , how to pass importing and tables parameters to get exact output .
regards
geetha.Use : BAPI_SALESORDER_CREATEFROMDAT2
Sales order: Create Sales Order
Functionality
You can use this method to create sales orders.
You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
Notes
1. Mandatory entries:
ORDER_HEADER_IN : DOC_TYPE Sales document type
SALES_ORG Sales organization
DISTR_CHAN Distribution channel
DIVISION Division
ORDER_PARTNERS..: PARTN_ROLE Partner role, SP sold-to party
PARTN_NUMB Customer number
ORDER_ITEMS_IN..: MATERIAL Material number
2. Ship-to party:
If no ship-to party is entered, use the following: Ship-to party =
sold-to party.
3. Commit control:
The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
4. German key words:
The following key words must be entered in German, independantly of
the logon language:
DOC_TYPE Sales document type, for example: TA for standard order
PARTN_ROLE Partner role, for example: WE for ship-to party
Further information
You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.
Parameters
SALESDOCUMENTIN
ORDER_HEADER_IN
ORDER_HEADER_INX
SENDER
BINARY_RELATIONSHIPTYPE
INT_NUMBER_ASSIGNMENT
BEHAVE_WHEN_ERROR
LOGIC_SWITCH
TESTRUN
CONVERT
SALESDOCUMENT
RETURN
ORDER_ITEMS_IN
ORDER_ITEMS_INX
ORDER_PARTNERS
ORDER_SCHEDULES_IN
ORDER_SCHEDULES_INX
ORDER_CONDITIONS_IN
ORDER_CONDITIONS_INX
ORDER_CFGS_REF
ORDER_CFGS_INST
ORDER_CFGS_PART_OF
ORDER_CFGS_VALUE
ORDER_CFGS_BLOB
ORDER_CFGS_VK
ORDER_CFGS_REFINST
ORDER_CCARD
ORDER_TEXT
ORDER_KEYS
EXTENSIONIN
PARTNERADDRESSES
Exceptions
Function Group
2032 -
Free form partner function field in Sales document header and item..
Hello Experts,
Is there anyway we can use the partner functions functionality in Sales document header and item level, so that we can enter a free form number in the Partner field? I mean is it possible to be able to enter a free form number WITHOUT getting validated against corresponding master data like Customer or Vendor master, Contact person, Personnel or User master records?Hi,
It is not possible.
Because partner function will be determined in the sales document header and item as per the configuration you have done in the partner determination.
It is not possible to enter a number wihich is not created and assigned.
Regards,
Mullairaja -
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 -
User Status update on Header and Item in Sales Order
Hi,
I need to update the user status in both the header and Item based on some conditions. I checked the user exit's under 'MV45AFZZ' but no use.
Could any one please provide me where I can write the code to upate user status in header and Item.
Thanks
Srihari.
Edited by: SrihariKonduru on Dec 23, 2009 4:21 PMHi,
Thanks for quick reply.
But I think this will be updated the satus using a report program. But in my case if the user creates a sales order or he is in change mode based on the selection of Distribution channels and Dunning key's I need to update the satus.
For this I need a exit to write the code. And also I required sample code snippet to update the status in user exit. If that availble it will be great help to me.
Thanks
Srihari. -
Linking Sales Order Header and Item into a DSO
I am trying to combine my Sales Order Header and Item into a DSO.
I created individual DSOs for each extractor and loaded successfully. I then created a new DSO with the Document number as the key field and loaded the data. However, when I check the new DSO, the data is not combined but seperated on one line.
To make it clearer
DSO1
CH1 CH2 CH3 KF1
DSO2
CH1 CH4 CH5 KF2
In my new DSO3, I used CH1 as the key field and when I load data, I expect to see
CH1 CH2 CH3 CH4 CH5 KF1 KF2
But I get
CH1 CH2 CH3 KF1
CH1 CH4 CH5 KF2
Is there something I'm doing wrong?Hi Siggi
I'm not sure what you mean.
What I am trying to achieve on the long run is to combine Sales Order and Billing into a cube. But first i need to get the orders into a DSO and also Billing into another DSO. And then combine into a consolidated DSO before going to a cube. Please correct if this approach is wrong.
In the meantime, I am trying to combine the sales order item and header into one DSO. -
Trigger delta and extract header and item texts for sales order
Hi,
I need to force a delta as well as extract the header and item texts when any (and only) change is made on the sales order texts.
Nothing else is changed on the order except the header or item texts.
Please advise how this can be achieved in the user exit of the VA02 transaction. Please suggests suitable FMs that could be explored.
Thanks
ShreyasHi,
I need to force a delta as well as extract the header and item texts when any (and only) change is made on the sales order texts.
Nothing else is changed on the order except the header or item texts.
Please advise how this can be achieved in the user exit of the VA02 transaction. Please suggests suitable FMs that could be explored.
Thanks
Shreyas -
How to make pricing field as output only in sales order header and item lev
Hi ,
I want to make the field PRICING DATE as output only both at header and item level. How can i do pls guide me in detail.
Regards
SunainaHi Sunaina ,
Through User Exit you get this requirement plese take help of ABAPer to activate the user exit according to your requirement.
Try With this User Exit
Program MV45AFZZ
USEREXIT_FIELD_MODIFICATION
This user exit can be used to modify the attributes of the screen fields.
To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP. If a field has no field name, it cannot be allocated to a group.
The usage of the field groups (modification group 1-4) is as follows:
Modification group 1: Automatic modification with transaction MFAW
Modification group 2: It contains 'LOO' for step loop fields
Modification group 3: For modifications which depend on check tables or on other fixed information
Modification group 4: is not used
The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit.
This FORM routine is called up by the module FELDAUSWAHL.
See the Screen Painter manual for further information on structuring the interface.
I hope it will help you,
Regards,
Murali. -
Outbound file interface - Header and item record transfer issue
Hi.
Pls help me complete this work by today:
I have to pass header and item record into file in application server.
I am retrieving Header record from table MCHB & RESB
and item record from MKOL & LFA1
I have to create separate file per plant ( plant is multiple selection field)
I have a check box (p_sob) for special stock selection in my selection screen .
If p_sob is initial
Header record should come from MCHB and RESB
and corresponding item entries from MKOL and LFA1
If some batch entries entries only exists in MCHB and not in MKOL then item fields will be blank
However if some entries exists only in MKOL and not in MCHB then header fields will be filled by correponding item fields.
Can anyone tell me the basic frame of the program.
Regards,
Simran*& Form sub_populate_header
Subroutine to populate header table
FORM sub_populate_header.
DATA: l_clabs TYPE char13, "Valuated stock
l_bdmng TYPE char13, "Requirement quantity
l_avqty TYPE char13, "Available quantity
l_slabs TYPE char13. "Consignment stock
DATA: i_mkol_tmp type standard table of ty_mkol initial size 0.
LOOP AT i_mchb INTO wa_mchb.
READ TABLE i_mkol INTO wa_mkol WITH KEY matnr = wa_mchb-matnr
werks = wa_mchb-werks
lgort = wa_mchb-lgort
charg = wa_mchb-charg
BINARY SEARCH.
IF sy-subrc EQ 0.
*Mark those MKOL records for deletion
wa_mkol-mark = c_mark. "marked for deletion
ELSE.
*Population of Plant,material number,batch,storage location and
*valuated stock
wa_header-werks = wa_mchb-werks. "Plant
wa_header-matnr = wa_mchb-matnr. "Material number
wa_header-charg = wa_mchb-charg. "Charg
wa_header-lgort = wa_mchb-lgort. "Storage location
wa_header-clabs = wa_mchb-clabs. "Valuated stock
l_clabs = wa_header-clabs.
SHIFT l_clabs LEFT DELETING LEADING space.
*Population of material description
READ TABLE i_makt INTO wa_makt WITH KEY matnr = wa_header-matnr.
IF sy-subrc EQ 0.
wa_header-maktx = wa_makt-maktx. "Material description
ENDIF.
*Population of Requirement quantity
READ TABLE i_sum INTO wa_sum WITH KEY charg = wa_header-charg
BINARY SEARCH.
IF sy-subrc EQ 0.
wa_header-bdmng = wa_sum-bdmng. "Requirement quantity
l_bdmng = wa_header-bdmng.
SHIFT l_bdmng LEFT DELETING LEADING space.
ENDIF.
*Population of Available quantity
l_avqty = l_clabs - l_bdmng.
SHIFT l_avqty LEFT DELETING LEADING space.
wa_header-avqty = l_avqty. "Available quantity
APPEND wa_header TO i_header.
CLEAR wa_header.
ENDIF.
ENDLOOP.
*Deleting batches from MKOL which exists in MCHB
i_mkol_tmp[] = i_mkol[].
DELETE i_mkol_tmp WHERE mark = c_mark.
*Sorting I_MKOL
SORT i_mkol_tmp BY matnr werks charg lgort.
LOOP AT i_mkol_tmp INTO wa_mkol_tmp.
*Population of Plant,Material number,charg & Storage location
wa_header-werks = wa_mkol_tmp-werks. "Plant
wa_header-matnr = wa_mkol_tmp-matnr. "Material number
wa_header-charg = wa_mkol_tmp-charg. "Batch number
wa_header-lgort = wa_mkol_tmp-lgort. "Storage location
APPEND wa_header TO i_header.
CLEAR wa_header.
ENDLOOP.
ENDFORM. " sub_populate_header
*& Form sub_populate_item
Subroutine to populate item table
FORM sub_populate_item .
LOOP AT i_mkol INTO wa_mkol.
wa_item-lifnr = wa_mkol-lifnr. "Vendor number
wa_item-slabs = wa_mkol-slabs. "Consignment stock
READ TABLE i_lfa1 INTO wa_lfa1 WITH KEY lifnr = wa_mkol-lifnr
BINARY SEARCH.
IF sy-subrc EQ 0.
wa_item-name1 = wa_lfa1-name1. "Vendor name
ENDIF.
ENDLOOP.
ENDFORM. " sub_populate_item
*& Form sub_batch_stock
Subroutine to output batch record from table (MCHB & MKOL) into
file in application server
FORM sub_batch_stock .
DATA: l_record TYPE string, "String
l_clabs TYPE char13, "Valuated stock
l_bdmng TYPE char13, "Requirement quantity
l_avqty TYPE char13, "Available quantity
l_slabs TYPE char13, "Consignment stock
l_tabix TYPE sytabix. "Index
LOOP AT i_header INTO wa_header.
*Separate file per plant
AT NEW werks.
*Creation of file
PERFORM sub_create_file.
Open File on the application server for processing
OPEN DATASET g_file_name FOR APPENDING IN TEXT MODE
ENCODING DEFAULT.
IF sy-subrc NE 0.
*Display error message
MESSAGE e055 WITH g_file_name. " Error in opening file
ENDIF.
ENDAT.
AT NEW charg.
CONCATENATE c_header " Header indentification
wa_header-werks " Plant
wa_header-matnr " Material number
wa_header-maktx " Material description
wa_header-charg " Batch number
wa_header-lgort " Storage location
l_clabs " Valuated stock-unrestricted use
l_bdmng " Requirement quantity
l_avqty " Avalable quantity.
INTO l_record SEPARATED BY
cl_abap_char_utilities=>horizontal_tab.
Transfering header record to file
TRANSFER l_record TO g_file_name.
CLEAR: l_clabs,
l_bdmng,
l_avqty,
l_record.
ENDAT.
LOOP AT i_mkol INTO wa_mkol WHERE matnr = wa_header-matnr
AND werks = wa_header-werks
AND charg = wa_header-charg
AND lgort = wa_header-lgort.
*Population of Vendor number and consignment stock
wa_item-lifnr = wa_mkol-lifnr. "Vendor number
*Storing Consignment stock into local variable to change datatype
*from QUAN to CHAR
l_slabs = wa_mkol-slabs.
SHIFT l_slabs LEFT DELETING LEADING space.
wa_item-slabs = l_slabs. "Consignment stock
*Population of Vendor name
READ TABLE i_lfa1 INTO wa_lfa1 WITH KEY lifnr = wa_mkol-lifnr
BINARY SEARCH.
IF sy-subrc EQ 0.
wa_item-name1 = wa_lfa1-name1. "Vendor name
ENDIF.
CONCATENATE c_item " Item identification
wa_item-lifnr " Vendor number
wa_item-name1 " Vendor name
l_slabs " Consignment stock-unrestd. use
INTO l_record SEPARATED BY
cl_abap_char_utilities=>horizontal_tab.
*Transfering Item record into file
TRANSFER l_record TO g_file_name.
CLEAR: l_slabs,
l_record.
ENDLOOP.
AT END OF werks.
Close File
CLOSE DATASET g_file_name.
CLEAR g_file_name.
ENDAT.
ENDLOOP.
ENDFORM. " sub_batch_stock -
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 -
Different division at header and item level in Order
Hi Gurus,
i am facing this issue where while creating quotation in CRM i entered sold to party, selected the org data ( OA/DI/OP ). i entered the product with quantity. now at item level in Organization tab my sales area is showing as ( OA/DI/01). system is picking the division maintained for product which is 01) so division is different at header and item level. i need the header division to be used at item level as well.
how can i achieve this?
Thanks and Regards
Sudhir GroverHi Sudhir,
Make sure the settings in the SPRO>CRM>Master Data>Products>Special Settings for Sales Operations--> Define Division settings is activated with Header Div. Act.
Also check the details in the IMG activity documentation for define division settings.
Hope this helps.
Regards,
Chandrakant
Maybe you are looking for
-
Hi vrox41 here i have been experiencing a problem with my ipod touch when i connect it on my computer it is not recognized by itunes or windows and it doesnt charge
-
Value mapping replication Interface.
I'm trying to make value maping replication, til now my understanding is for one guid we need to pass two items in which key and value pair both under one guid. and other fields needs to be mapped. The Structure of the Interface of ValueMappingReplic
-
hi, is there any sales areas in B1 like sap r/3.if it is ok,then how to assign salesmanagers to salesareas. regards guru
-
Design of Cube for Year and Period from Posting Date
Experts, In my report requirement one of the selection criteria is Year and Month (YY-MM) which needs to be got from the Posting Date. In my ODS I have a 0PSTING_DATE. What infobjects are needed in the cube to get the value of YY and Period and the m
-
Lightroom 5 crashes when exporting photos
Lightroom 5 suddenly crashes, when I like to export some pictures, thats a very new phenomenon?? Repairing installation does´nt work. What can I do? Thanks