Multiple Batches in a HU causing Multiple Pick TOs be created
Hi,
Below is my scenario and I hope some one that is familiar with WM/HU can help me.
We have HU with multiple batches (e.g. 5 different batches) which are received on the same time, we are also 2 step picking relevance. So, we have to create picking TO using LT0E to against the DN group number. We are expecting only 1 TO been created if the HU quantity (e.g. 5 units) is matching the DN quantity (e.g. 5 units). However, the system is generating 5 TOs and each referring to the individual batch number. This has actually cause issue on TO confirmation process where the system is prompting a Destination HU which at the point of picking this sould be equivalent to the Source HU. However, system do not except the Source HU and throwing out the error message saying "Destination storage bin of TO item # and HU# are different". Can anybody help me to understand what is the problem here? Thanks.
Tracy
Hi,
Try this.
1. Goto Tcode MIGO with your PO number and do the GR for 3 quantities and give the batch mentioned by the vendor. Dont process check and post
2. Again go the PO reference field and give the same PO number and do the second GR for the 5 quantties with the different batch number
3. Then finally do fot the 3 rd GR.
4. With three line items in GR, check and post the transaction.
It will generate only 1 Material document number.
Regards,
RitiG
Similar Messages
-
Multiple Pick Up & Ship To Addresses on Sales Documents
Hello Experts,
Our client provides Freight services to their customers. Here is a scenario in sales process:
One the line level they would like to have multiple pick up and multiple ship to address. I know that it can be accomplished through user defined table and udf on line level on marketing documents.
Would like to know if there is any other approach?
Thanks,
PraneethHello Praneeth,
That is probably the only way because the system table structure will not be able to support such needs.
Thanks,
Gordon -
WM - using multiple pick faces
Hi Gurus,
I have a situation where some materials for a delivery need to be picked from storage type 003 and other materials need to be picked from storage type 002. This is contolled by the pick strategy in the material master record, When SAP is creating the TOs from the delivery via VL06P, a separate TO is created for each storage type. Is it OK to use multiple pick faces in this way.
The reason that I am asking is because on some rare occasions, when their is insufficient stock in storage type 003, this system nominates the high bay area (storage type 001) as the source location. This is despite the fact that 001 has not been included in the search strategy for picking materials. The problem with this is that the high bay requires a full pallet pick.
Any ideas what could be going wrong?
Regards,
JTHi
Although the question is not very much clear to me,
However as i understood, you want to know the config to create & split the transfer order from a delivery based on source storage type.
My suggestion would be please check the node
SPRO--Logistic execution -- Warehouse management ---Activites / Transfer - Processing performance data/ TO split -
Multiplication error in DLLs created with SIT
I have a problem with a multiplication in a DLL created with the Mathwork's Matlab/Simulink and National Instruments SIT. When multiplying two values of different types (fixed point types) I get really strange and unexplainable results. When I run the simulation in Simulink only, I do not get the error. But when running the same program as DLL in Labview I get a result of 146.xxx instead of 235. Feel free to chck out the included files (.mdl, .dll, .vi).
I'm desperately looking for solutions.
Philip
Attachments:
interface_test.vi 34 KB
interface_test.dll 130 KB
interface_test.mdl 11 KBGo ahead and hook up your error clusters and attach them to an indicator. This way you can see if there is a labVIEW problem with your code.
I cannot run your code myself because of a lack of software but I opened the VI up and saw it was missing error handling. -
Use multiple primary keys to create DB constraint
Hi,
Is it possible to have multiple primary keys within one EJB to create a DB including the constraints, if so how? Is there an example of this or any example which uses multiple primary keys to create a DB?
Thanks,
Maarten"Is it possible to have multiple primary keys within one EJB..."
If you mean a composite key, yes. Your PrimaryKeyObject would have one attribute for each column that makes up your composite key. If that's not what you meant, please clarify.
"...to create a DB including the constraints"
Not sure what you mean here. Constraints are enforced by the DB, and you don't create databases with EntityBeans. -
Is it possible to run single workflow instance for multiple item changed or created?
I have created a SharePoint Designer 2010 approval workflow and I am starting this workflow on item created and modified . Now when I am adding and updating multiple items it is starting workflow for each item but I want to start only one workflow for all items.
I think it is possible in workflow 2013 but i want to use in
workflow 2010.
Is this possible? if yes then how?Hi Resham,
From your description, my understanding is that you want to only start a workflow instance when multiple items are added or updated.
Per my knowledge, if we set workflow start on item created or modified, when we add or update multiple items, SharePoint will create a workflow instance for each item, it is unable to just create an instance for multiple items. It is same
between SharePoint 2010 workflow and SharePoint 2013 workflow.
You said it is possible in workflow 2013, do you have any references?
Thanks,
Wendy
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Weird issue with Exchange 2010 Room Mailboxes - allows multiple booking of the created meeting rooms
Hi,
we are facing weird issue with Exchange 2010 Room Mailboxes
it allows multiple booking of the created meeting rooms.Sometime we are not getting acceptance or declined mail but and we could see our meetings has been booked at slot.
for e.g.
User A booked room1 with weekly recurrence for time 4pm to 5pm., and User B made his booking other day,without realizing that user A meeting is exists.
Neither of user A nor user B got declined/rejected emails.
please sahre guidelines if anyone known to this issue.
Note - Allow Conflict booking is disabled already :) but still have issue
Thanks,
NPratikHi,
Just add more in this issue, following testing is done.
referring results and conclusion, you will get better view on issue
====================
Test Case - 1
User OnCloud/O365 - Pratik Nimbalkar
Email ID - [email protected]
( same as UPN)
Room Booking Scenario - Book Room for 6.30pm to 7.30pm slot
Results - Accepted
Room Booking Scenario for same slot- ReBook Room for 6.30pm to 7.30pm slot
Results - Declined
Conclusion = working fine
==================
Test Case - 2
User OnCloud/O365 - Testsm
Email ID - [email protected]
( different from UPN)
Room Booking Scenario - Rebook Room for 6.30pm to 7.30pm slot
Results - No Response from Room Mailbox neither Accepted nor Declined
But we can see as booked as "Tentative"
Room Booking Scenario for same slot- Rebook Room for 6.30pm to 7.30pm slot
Results -No Response from Room Mailbox neither Accepted nor Declined
But we can see as booked as "Tentative"
=========================
Conclusion = There is issue with booking room and not getting response while user is
@abc.my id.
======================
Note = for all other on premise users those are having @abc.co.in
and @abc.my it is working fine. Users are getting respective correct reply from room mailboxes.
This issue seems with only on cloud
@abc.my users -
Hi
Pl advice why 2 picking request for the delivery and how it will happen. can we simulate the same sceniro in test system
Doc. Date Qty/Value UoM/Cur Overall Proc
Standard Order 1800874585 / 10 12.06.11 1.000 PC Completed
. Outbound delivery 5281065823 / 10 13.06.11 2.000 PC Completed
.. Picking request 20110613 13.06.11 1.000 PC Completed
.. Picking request 5281065823 13.06.11 1.000 PC Completed
GD goods issue:delvy 4929560164 / 1 13.06.11 2.000 PC complete
KumarHi,
Can you please tell me what you have seen the example order qty is 1000 PC and delivery qty is 2000 PC
Can you please tell me how it is possible ?
did u do combined Delivery based on multiple sales order
Please try to check and revert
Regards,
Prasanna -
Multiple Picking location for a Shipping point
Hi,
Is it possible to assign mutiple picking location against a shipping point in one plant.
Currently we can assign only one storage location as picking location against a shipping point in the below bath
SPRO->LE->Shipping->Picking->Determine picking location->Assign picking location
I have mutiple storage location for a single shipping point. I want system to check any one of the storage location while creating delivery for that particular shipping point.
Eg:
Plant P1 have storage locations S1,S2,S3,S4 & shipping Point SH1,SH2.
System has to determine picking location as S1 or S2 for shippint point SH1.
Is it possible to control this by any userexit or anyother way?
This has to be applicable for STO/PO also.
ThanksHello,
there is user-exit:
"Determinations in the Delivery
You can use the following enhancements to control determination of the organizational units that control the picking or putaway process of deliveries:
Enhancement Function influenced
V02V0002 Storage location determination
V02V0003 Gate and staging zone determination (Header)
V02V0004 Staging zone determination (item)"
SPRO: Logistics Execution>Shipping>System Modifications-->Previous User Exits in Shipping
Line: -
You can also use Business Add-In for Delivery Processing:
Business Add-In for Delivery Processing
Use
Application component: LE-SHP-DL
You can use the Business Add-In LE_SHP_DELIVERY_PROC to influence processing of delivery data, during creation and changing of deliveries at specific points described in the interface. The BAdI methods enable you to read, write, determine, delete, and save your own delivery-related data, and to change the standard delivery data.
SPRO: Logistics Execution>Shipping>System Modifications-->Business Add-Ins in Shipping
-->Business Add-In for Delivery Processing
Andrzej -
Why one DO line ties to multiple picking request?
Hi guys,
One item line in delivery note having 2 picking request, how come?
Also the numbering of these 2 picking request is so strange. One is 20101223, the other is 0001427148. You may refer to the document flow as follows:
Standard Order 0001675490 / 10
Delivery 0081882817 / 10
Picking request 20101223 / 10
Picking request 0001427148 / 10
GI :In-Transit 4905344742 / 1
Delivery 0081883279 / 10
Picking request 20101224 / 10
GI :In-Transit 4905347876 / 1hi,
here one picking request with zero quantity and the next will be for full quantity.
here in my PRD also we are seeing the same scenario.
i suppose there is no issues but why is it coming we have to fetch.
balajia -
Multiple Posting change notice created for one material document
Hi All,
The scenario is that the user needs to transfer material from unrestricted to quality stock type. while doing so the storage type is different than the actual storage type for the material. Meaning if the material is normally stored in high rack storage type, when it is found that the material is damaged or expired it need to be moved to the quality storage type. For this the user will first create material document in IM with movement type 322 transferring material from unrestricted stock to qualtiy stock. A PCN will be created in back ground which will in turn be converted manually by the user to a TO. while doing so the user will pick the quant manually from the required storage type and select the destination storage type as the quality or quanranntine area.
The issue here is that system creates one PCN for each material document line item. The requirement is that the system should create only one PCN with multiple lines for one Material document.
The setting in the movememnt type clearly says that it will behave as it is behaving.
Is there any other way or setting by which we can create one PCN with multiple line items for a material document.
Would look forward to your replies.
Regards,
JeetendraThanks and Sorry for the delayed reply. We have now convinced the users that the system behaviour is standard and we cannot change the same.
To your question about the need to have one PCN with multiple lines please note that the setup is such that when material document is created for transferring material from unrestricted to quality and vice versa this document is created with multiple materials in one go. Now when the PCN is to be converted to TO then the user ends up in creating number of TO's equal to the number of lines in the Material Document. We wanted to avoid this and hence this was posted in SDN. -
Problem in uploading multiple line items while Creating sales order by BAPI
Hi experts , Im able to create sales order with one item while using this program, but the problem is when iam having multiple items or multiple sales order , iam not able to createthe line items , though its creating sales order header , Iam copy pasting my code , please add the additional code to my code to take more than 1 line items ,This is urgent requirement . Points will be rewarded for answers , Thanks in advance
*& Report Z_SO_CREATE_BAPI
REPORT Z_SO_CREATE_BAPI.
DATA: i_header TYPE bapisdhd1 occurs 0 with header line.
DATA: i_details TYPE bapisditm OCCURS 0 WITH HEADER LINE.
DATA: i_partner TYPE bapiparnr OCCURS 0 WITH HEADER LINE.
DATA: i_return1 TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: i_return2 TYPE bapiret2.
data : ORDER_HEADER_IN like BAPISDHD1.
data : ORDER_ITEMS_IN like BAPISDITM occurs 0 with HEADER LINE .
data : ORDER_ITEMS_INX Like BAPISDITMX occurs 0 with HEADER LINE .
data : RETURN like BAPIRET2 occurs 0 with header line.
data : ORDER_PARTNERS like BAPIPARNR occurs 0 with
header line.
DATA : ORDER_KEYS LIKE BAPISDKEY OCCURS 0 WITH HEADER
LiNE.
data : ORDER_SCHEDULES_IN like BAPISCHDL occurs 0 with
header line.
data : ORDER_SCHEDULES_INX like BAPISCHDLX occurs 0 with
header line.
data : BEGIN OF TAB OCCURS 0,
SRNO(4),
DOC_TYPE like ORDER_HEADER_IN-dOC_TYPE,
SALES_ORG LIKE ORDER_HEADER_IN-SALES_ORG,
DISTR_CHAN LIKE ORDER_HEADER_IN-DISTR_CHAN,
DIVISION like ORDER_HEADER_IN-DIVISION,
REQ_DATE_H(10),
PURCH_DATE(10),
PMNTTRMS LIKE ORDER_HEADER_IN-PMNTTRMS,
PURCH_NO_C LIKE ORDER_HEADER_IN-PURCH_NO_C,
ITM_NUMBER like BAPISDITM-ITM_NUMBER,
MATERIAL LIKE ORDER_ITEMS_IN-MATERIAL ,
PLANT LIKE ORDER_ITEMS_IN-PLANT,
TARGET_QTY LIKE ORDER_ITEMS_IN-TARGET_QTY,
ITM_NUMBERX like ORDER_ITEMS_INX-ITM_NUMBER ,
MATERIALX LIKE ORDER_ITEMS_INX-MATERIAL ,
CUST_MAT22 LIKE ORDER_ITEMS_IN-CUST_MAT22,
PLANTX LIKE ORDER_ITEMS_INX-PLANT,
TARGET_QTYX LIKE ORDER_ITEMS_INX-TARGET_QTY,
ITM_NUMBER LIKE ORDER_ITEMS_IN-ITM_NUMBER,
MATERIAL LIKE ORDER_ITEMS_IN-MATERIAL ,
PARTN_ROLE LIKE ORDER_PARTNERS-PARTN_ROLE,
PARTN_NUMB LIKE ORDER_PARTNERS-PARTN_NUMB,
END OF TAB.
DATA: v_vbeln TYPE bapivbeln-vbeln.
selection-screen begin of block b1 with frame.
skip 3.
parameter:p_infile like rlgrap-filename obligatory.
skip 3.
selection-screen end of block b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.
PERFORM value_help.
start-of-selection.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_infile
FILETYPE = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = tab.
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
**Validation for the Create SO screen
*AT SELECTION-SCREEN ON BLOCK na_create.
Loop at Tab.
i_header-doc_type = TAB-DOC_TYPE .
i_header-sales_org = TAB-SALES_ORG.
i_header-distr_chan = TAB-DISTR_CHAN .
i_header-division = TAB-DIVISION .
append i_header.
*endloop.
i_partner-partn_role = TAB-PARTN_ROLE .
i_partner-partn_numb = TAB-PARTN_NUMB.
APPEND i_partner.
i_details-material = TAB-MATERIAL .
APPEND i_details.
endloop.
*Bapi for Creating SO
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN = v_vbeln
order_header_in = i_header
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT = v_vbeln
tables
RETURN = i_return1
ORDER_ITEMS_IN = i_details
ORDER_ITEMS_INX = ORDER_ITEMS_INX
order_partners = i_partner .
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 =
IF NOT v_vbeln IS INITIAL.
*Bapi Commit Work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
return = i_return2
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
IMPORTING
RETURN =
ENDIF.
LOOP AT i_return1 . "INTO wa_return1.
WRITE:/ i_return1-message.
ENDLOOP.
FORM value_help .
CALL FUNCTION 'DSVAS_DOC_WS_FILENAME_GET_50'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = ' '
MASK = ',.,..'
MODE = 'O'
TITLE = ' '
IMPORTING
FILENAME = p_infile
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform.
txt file data
order type salesorg distch divison materialno parter role
TA PB01 01 00 000000000000000852 WE
Partner no
8101000000Hi Neerja,
you can reffer this sample code. It may not be complet soluation for your poblem,
but you will get some idea.
*& Report ZBAPI_SALESORDER_CREATE
*& Author : Karthik
REPORT ZBAPI_SALESORDER_CREATE.
data : ORDER_HEADER_IN like BAPISDHD1.
data : ORDER_ITEMS_IN like BAPISDITM occurs 0 with
header line.
data : RETURN like BAPIRET2 occurs 0 with header line.
data : ORDER_PARTNERS like BAPIPARNR occurs 0 with
header line.
DATA : ORDER_KEYS LIKE BAPISDKEY OCCURS 0 WITH HEADER
LINE.
data : ORDER_SCHEDULES_IN like BAPISCHDL occurs 0 with
header line.
data : BEGIN OF TAB OCCURS 0,
SRNO(4),
DOC_TYPE like ORDER_HEADER_IN-dOC_TYPE,
SALES_ORG LIKE ORDER_HEADER_IN-SALES_ORG,
DISTR_CHAN LIKE ORDER_HEADER_IN-DISTR_CHAN,
DIVISION like ORDER_HEADER_IN-DIVISION,
REQ_DATE_H(10),
PURCH_DATE(10),
PMNTTRMS LIKE ORDER_HEADER_IN-PMNTTRMS,
PURCH_NO_C LIKE ORDER_HEADER_IN-PURCH_NO_C,
ITM_NUMBER like BAPISDITM-ITM_NUMBER,
CUST_MAT22 LIKE ORDER_ITEMS_IN-CUST_MAT22,
PLANT LIKE ORDER_ITEMS_IN-PLANT,
TARGET_QTY LIKE ORDER_ITEMS_IN-TARGET_QTY,
PARTN_ROLE LIKE ORDER_PARTNERS-PARTN_ROLE,
PARTN_NUMB LIKE ORDER_PARTNERS-PARTN_NUMB,
END OF TAB.
data: itab1 like alsmex_tabline occurs 0 with header
line.
DATA: gd_currentrow type i.
data : PURCHASEORDER like ekko-ebeln.
Data: tot_rec type i, "Total Records
gd_update type i, "Main Table Increement Counter
gd_lines type i, "Success Table increement Counter
w_textout like t100-text. "VARIABLE TO GET ERRORLOG
data : begin of it_success occurs 0,
SALESDOCUMENT LIKE BAPIVBELN-VBELN, "PROJECT
end of it_success.
data : begin of it_error occurs 0,
srno(4),
err_msg(73) TYPE c, "TO RETREIVE ERROR MESSAGES
end of it_error.
data : srno(4).
DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
selection-screen begin of block b1 with frame.
skip 3.
parameter:p_infile like rlgrap-filename obligatory.
skip 3.
selection-screen end of block b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.
PERFORM value_help.
start-of-selection.
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_infile
i_begin_col = '1'
i_begin_row = '2' "Do not require
headings
i_end_col = '22'
i_end_row = '10000'
TABLES
intern = itab1
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
others = 3.
if sy-subrc <> 0.
message e010(zz) with text-001. "Problem uploading
Excel Spreadsheet
endif.
*perform open_group.
sort itab1 by row col.
Get first row retrieved
read table itab1 index 1.
Set first row retrieved to current row
gd_currentrow = itab1-row.
loop at itab1.
Reset values for next row
if itab1-row ne gd_currentrow.
append tab .
clear tab.
gd_currentrow = itab1-row.
endif.
SHIFT ITAB1-VALUE LEFT DELETING LEADING SPACE.
case itab1-col.
when '0001'.
TAB-SRNO = itab1-value.
when '0002'.
TAB-DOC_TYPE = itab1-value.
when '0003'.
TAB-SALES_ORG = itab1-value.
when '0004'.
TAB-DISTR_CHAN = itab1-value.
when '0005'.
TAB-DIVISION = itab1-value.
when '0006'.
TAB-REQ_DATE_H = itab1-value.
when '0006'.
TAB-PURCH_DATE = itab1-value.
when '0007'.
TAB-PMNTTRMS = itab1-value.
when '0008'.
TAB-PURCH_NO_C = itab1-value.
when '0009'.
TAB-ITM_NUMBER = itab1-value.
when '0010'.
TAB-CUST_MAT22 = itab1-value.
when '0011'.
TAB-PLANT = itab1-value.
when '0012'.
TAB-TARGET_QTY = itab1-value.
when '0013'.
TAB-PARTN_ROLE = itab1-value.
when '0014'.
TAB-PARTN_NUMB = itab1-value.
endcase.
endloop.
append tab.
clear tab.
sort tab by SRNO.
LOOP AT TAB.
concatenate tab-REQ_DATE_H+4(4)
tab-REQ_DATE_H2(2) tab-REQ_DATE_H0(2) into
tab-REQ_DATE_H.
concatenate tab-PURCH_DATE+4(4)
tab-PURCH_DATE2(2) tab-PURCH_DATE0(2) into
tab-PURCH_DATE.
SRNO = TAB-SRNO.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = tab-PARTN_NUMB
IMPORTING
OUTPUT = tab-PARTN_NUMB.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = tab-CUST_MAT22
IMPORTING
OUTPUT = tab-CUST_MAT22.
IF TAB-SRNO = SRNO.
ORDER_HEADER_IN-DOC_TYPE = TAB-DOC_TYPE.
ORDER_HEADER_IN-SALES_ORG = TAB-SALES_ORG.
ORDER_HEADER_IN-DISTR_CHAN = TAB-DISTR_CHAN.
ORDER_HEADER_IN-REQ_DATE_H = TAB-REQ_DATE_H.
ORDER_HEADER_IN-PURCH_DATE = TAB-PURCH_DATE.
ORDER_HEADER_IN-PMNTTRMS = TAB-PMNTTRMS.
ORDER_HEADER_IN-PURCH_NO_C = TAB-PURCH_NO_C.
ORDER_HEADER_IN-DIVISION = tab-DIVISION.
ORDER_ITEMS_IN-ITM_NUMBER = tab-ITM_NUMBER.
ORDER_ITEMS_IN-material = TAB-CUST_MAT22.
ORDER_ITEMS_IN-PLANT = TAB-PLANT.
APPEND ORDER_ITEMS_IN.
ORDER_PARTNERS-PARTN_ROLE = TAB-PARTN_ROLE.
ORDER_PARTNERS-PARTN_NUMB = TAB-PARTN_NUMB.
APPEND ORDER_PARTNERS.
ORDER_SCHEDULES_IN-ITM_NUMBER = tab-ITM_NUMBER.
ORDER_SCHEDULES_IN-REQ_QTY = tab-TARGET_QTY.
append ORDER_SCHEDULES_IN.
ENDIF.
AT END OF SRNO.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN =
ORDER_HEADER_IN = ORDER_HEADER_IN
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT = SALESDOCUMENT
TABLES
RETURN = RETURN
ORDER_ITEMS_IN = ORDER_ITEMS_IN
ORDER_ITEMS_INX =
ORDER_PARTNERS = ORDER_PARTNERS
ORDER_SCHEDULES_IN = 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 = ORDER_KEYS
EXTENSIONIN =
PARTNERADDRESSES =
IF SALESDOCUMENT <> SPACE.
commit work.
ADD 1 TO gd_update.
it_success-SALESDOCUMENT = SALESDOCUMENT.
append it_success.
CLEAR :SALESDOCUMENT,ORDER_HEADER_IN.
REFRESH : RETURN,ORDER_ITEMS_IN,ORDER_PARTNERS.
ELSE.
loop at return.
it_error-SRNO = tab-SRNO.
it_error-err_msg = return-MESSAGE .
Append it_error.
ENDLOOP.
CLEAR :SALESDOCUMENT,ORDER_HEADER_IN.
REFRESH : RETURN,ORDER_ITEMS_IN,ORDER_PARTNERS.
ENDIF.
endat.
endloop.
DESCRIBE TABLE it_success LINES gd_lines.
IF gd_lines GT 0.
Display result report column headings
PERFORM display_column_headings.
Display result report
PERFORM DISPLAY_SUCESS.
ENDIF.
IF SUCESS FAILS Display Error Report
DESCRIBE TABLE it_error LINES gd_lines.
IF gd_lines GT 0.
PERFORM errorheadings.
PERFORM errorreport.
ENDIF.
*& Form display_column_headings
text
FORM display_column_headings.
WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
SKIP.
WRITE:2 'The following records inserted
successfully:'(013).
WRITE:/ sy-uline(15).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'Sales order'(004), sy-vline.
WRITE:/ sy-uline(15).
ENDFORM. "display_column_headings
*Subroutine to display SUCESS REPORT
FORM DISPLAY_SUCESS.
FORMAT COLOR COL_NORMAL.
LOOP AT it_success.
WRITE:/ sy-vline,
(10) it_success-SALESDOCUMENT, sy-vline.
CLEAR it_success.
ENDLOOP.
WRITE:/ sy-uline(15).
REFRESH: it_success.
FORMAT COLOR COL_BACKGROUND.
ENDFORM. "
DISPLAY_REPORT
*& Form errorreport
text
FORM errorreport.
LOOP AT it_error.
WRITE:/ sy-vline,
(10) it_error-SRNO, sy-vline,
(40) it_error-err_msg, sy-vline.
ENDLOOP.
WRITE:/ sy-uline(104).
REFRESH: it_error.
endform. "errorreport
*& Form ERRORHEADINGS
text
FORM ERRORHEADINGS.
SKIP.
WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
SKIP.
WRITE:2 'The following records failed during
update:'(008).
WRITE:/ sy-uline(104).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'ERROR.'(009), sy-vline.
WRITE:/ sy-uline(104).
FORMAT COLOR COL_NORMAL.
ENDFORM. "ERRORHEADINGS
**& Form value_help
text
--> p1 text
<-- p2 text
FORM value_help .
CALL FUNCTION 'DSVAS_DOC_WS_FILENAME_GET_50'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = ' '
MASK = ',.,..'
MODE = 'O'
TITLE = ' '
IMPORTING
FILENAME = p_infile
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. "value_help
Regards,
Amit. -
Multiple document numbers not created while creating multiple idocs.
Hi Experts,
we have developed one the interface file to idoc, whenever invoice number change it will create a multiple idocs.
but i am facing some issue with context handling, can you suggest the suitable mapping / UDF for the below issue.
Our customized idoc structure has header and line items and both are in not same level-its parent child structure.
in our sample file there are three different invoice number and as per the requirement its creating three idocs and corresponding headers but not line item details.
all line item details creating in 1st idoc itself and 2nd and 3rd idoc has only header items no line items. but tried fix with graphical mapping context handling for this problem but not resolved. please advise.
Regards,
Krushi.hi Hareesh,
thank you for your quick response.
after the File Adapter FCC, below is the inbound payload, first four feilds we mapped to header and rest for line items.
<SettlementDetails>
<row>
<PaymentType>CHECK</PaymentType>
<Filler></Filler>
<Currency>IN</Currency>
<Filler1></Filler1>
<Invoice>100410-133MT5-MH</Invoice>
<Filler2></Filler2>
<SettlementMethod>4</SettlementMethod>
<Filler3></Filler3>
<PreferredTradingPartnerIdentifier>MT</PreferredTradingPartnerIdentifier>
<Filler4></Filler4>
<FinalPayAmount>12.00</FinalPayAmount>
<Filler5></Filler5>
<ProductIDUnformatted>55111064001</ProductIDUnformatted>
<Filler6></Filler6>
<Filler7></Filler7>
<Filler8></Filler8>
<PaytoPreferredTradingPartnerIdentifier>MT</PaytoPreferredTradingPartnerIdentifier>
<ClaimType>ORIG</ClaimType>
<CMSRecordID>FFSU</CMSRecordID>
</row>
</SettlementDetails>
multiple settlement details will be there.
regards,
krushi. -
F110 issue with multiple users - unable to create DME output
Hi
I have an issue, when i have multiple users executing F110 using the payment programs for DME output. program SAPPAYM that when a user tries to create DME output, that nothing is created.
it is as if the first person who creates a payment proposal then blocks the subsequent users from creating output.
we have found that the only way around this issue is to get one user executing a payment run at a time.
Only by getting all the other suers off the system and deleting any payment proposals can we produce the output.
any ideas??
LizHi
I have an issue, when i have multiple users executing F110 using the payment programs for DME output. program SAPPAYM that when a user tries to create DME output, that nothing is created.
it is as if the first person who creates a payment proposal then blocks the subsequent users from creating output.
we have found that the only way around this issue is to get one user executing a payment run at a time.
Only by getting all the other suers off the system and deleting any payment proposals can we produce the output.
any ideas??
Liz -
Multiple records to be created for multiple values in a field
I am having a requirement in which i will have multiple values for a field.The values are seperated by commas.I need a record to be created for each value.(eg: if there are 4 values i need 4 records to be created). Any one please help me out.
Hi !
You can try solve it at File Content Conversion level, by specifing your value separator as the endSeparator.
Or you can import all values as a unique record and then solve it via graphical mapping, using an advanced UDF, where you receive N records, then inside the UDF, you split the values via its separator and create new array values (one for each input value after splitting) and output that array to be used to fill destination structure.
Regards,
Matias.
Maybe you are looking for
-
Removing HP registration tile from start screen in Windows 8.1
I registered my new laptop with HP. I try to delete the HP registration tile from the start screen and I cannot complete the directions as I never get an option to unpin the tile from start. Help would be appreciated.... DD
-
User Exit IDOC creation - When purchase order gets created
Hi All, The requirement is whenever user creates a Purchase Order in the current SAP system an IDOC needs to get created and be sent to another SAP system where a Sales Order will be created. Can anybody suggest the correct User exit/enhancement at t
-
How to perform grouping like a daisy chain
Hi: I have a database table of Building Inspections (InspectionID) for each Building Permit (PermittingID). Sometimes the inspections fail and have to be re-inspected. I do not relate each re-inspection to the original inspection. I relate each re-
-
Multiple signatures per address
Is there any way to get Mail to handle a signature per each sending address, under one account? Pretty much every other Mail client out there seems to support this. It seems odd that I can have random signatures, but not ones bound to an address. In
-
Different languages of adobe installation, now I cant upload the software
I have installed adobe photoshop in Italian because I am used to use it i this language, but I have istalled illustrator, indesign etc in english (because i whant to be able to use online tutorial), the this is now i can update photoshop because it s