Regarding Exit/IDOC Related TD
Hi,
Can anybody tell me what is the code required to be written folowing TD points.
Before below TD i have populated one internal table in
userexit_save_document exit and submitted following new program need to be written as below:
SUBMIT gv_prog
WITH SELECTION-TABLE t_seltab
VIA JOB gv_jobname NUMBER gv_jobnum "USER puser
AND RETURN TO SAP-SPOOL
SPOOL PARAMETERS gv_params
WITHOUT SPOOL DYNPRO.
As i am new to IDOC Concept can anybody help to write following code!
Create new custom program that will create the CTO deletion idocs to send to WWCLASS
Requirements:
o Need to be able to import data in from the save_doc userexit and create and post the idoc
 Import needed data from userexit_save_document
 Fill the control record to send into function (waiting for FA to get this information to me, as they have not yet created the partner)
DOCTYP =
OUTMOD = 2
SERIAL = sy-datum
SERIAL+8 = sy-uzeit
IDOCTP = ORDERS05
MESTYP = ORDERS
MESCOD = ??????
RCVPRT = ??????
RCVPRN = ??????
RCVPFC = ??????
RCVPOR = ??????
 Fill the E1EDK01 segment (Header level segment)
CURCY = currency
ZTERM = zterm
BELNR = order number (vbeln)
 Fill the E1EDP01 segment (Item level segment)
POSEX = item number (posnr)
ACTION = 001
 Fill the E1EDP19 segment (Item Object Identification segment)
QUALF = OID to represent old GCTO id
IDTNR = GCTO ID from vbap
 Generate the idoc
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
MASTER_IDOC_CONTROL = cntrl data
TABLES
COMMUNICATION_IDOC_CONTROL = cntrl data(returned)
MASTER_IDOC_DATA = idoc data
EXCEPTIONS
ERROR_IN_IDOC_CONTROL = 1
ERROR_WRITING_IDOC_STATUS = 2
ERROR_IN_IDOC_DATA = 3
SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
OTHERS = 5
Based on the documentation for this standard function, you will need to do a commit work after calling the program in order to ensure the idoc is dispatched.
o Need to be able to capture failures and send report to users in e-mail
 Failures fall into 2 categories:
An IDOC was created, but the posting fails with error status. In this case, we still want to capture this in the file as a failure, but the users should re-process this with standard SAP transactions (can find status of created idoc in the returned communication_idoc_control table).
An IDOC was NOT created for some reason. In this case, we will need to capture all the necessary information needed to try and re-create an idoc
 File should be sent via e-mail to users defined in a table.
Use standard FM SO_NEW_DOCUMENT_SEND_API1 to send document to specified users
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data =
document_type = 'RAW'
put_in_outbox = ''
TABLES
object_content =
receivers =
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Document Data should include the email header information. Something that denotes to user that this is an WWCLASS CTO Deletion IDOC Error Report
Object Content should include the following information:
o IDOC# (in cases where the idoc was created, but has fail status)
o Order Number
o Currency
o Terms of Payment
o Item Number
o GCTO ID
Receivers should be the list of addresses that will receive the email.
o Read table ZCMAIL with REPID = this program name, and MAIL_LIST = to retrieve all the addresses that will need to have the report sent. Will need to send the FA the name of this program so they can setup the table entries properly.
o Need to add parameters to program that will also allow the user to run this program manually so they can re-create the idoc in cases where the idoc was erroneously not created in normal process.
 Allow user to enter a file name that could be uploaded from their hard drive that will contain all data need to create the idoc.
 Generate the idoc based on data in file.
 File could look similar to the data reported in the error report
Can anybody help me in writing code for above TD!
Thanks in advance.
Thanks & Regards,
Deep.
HI,
Any solutions for the same!
Thnaks,
Deep.
Similar Messages
-
Regarding the Message Type and IDOCS related to IS-Banking
Hi Gurus,
can any one provide me the Message Type and IDOCs related to IS-Banking.
Regards.
Kiran kumar.Hi,
Refer this link,
http://www.stylusstudio.com/edifact/d04b/BANSTA.htm
Hope it helps you. -
What are the user exits available related to Credit Management?
What are the user exits available related to Credit Management?
<b>I have blocked users from releasing SO through Tciode VKM3 , now I want to block
the same (releasing of SO through VKM4) ,I want VKM4 to be used only for releasing delivery orders. Can anyone help me in configuring the same?.</b>
Thanx in advance,
Regrds,
BinayakHi,
User Exits For Credit Checks And Risk Management
Credit Check
If you want to carry out your own individual credit checks, that differ from those in the standard system, you must define them in the following user exits:
LVKMPTZZ
LVKMPFZ1: USER_CREDIT_CHECK1
LVKMPFZ2: USER_CREDIT_CHECK2
LVKMPFZ3: USER_CREDIT_CHECK3
User exit for availability check
User exit USEREXIT_AVAIL_CHECK_CREDIT exists in Include MV45AFZF.
This user exit allows you to determine whether the system should or should not carry out an availability check after a blocked document has been released or after a new credit check.
Risk Management for Receivables
RVKMPUS2
Using this user exit, you can define new forms of payment guarantee.
Regards,
Amrish Purohit -
Hello,
Can anyone send me an example in IDOC related to employee details
What are the steps to be followed for triggerring IDoc.
Regards,
LibinHi Libin,
As for finding your needed idoc.
1. Choose the transaction WE09 (SAP Menu ® Tools ® IDoc Interface/ALE ® Administration ® Services ® IDoc Search by Contents ® WE09).
2. Choose the Data Source button to specify whether you want to search for IDocs from the database or the archive (or both) .
3. If you have set the u201AArchiveu2019 flag, you can select files in the archive information system, or manually.
Regarding to the steps to trigger an idoc , search SDN. But before that you will need to do ALE settings.
http://help.sap.com/saphelp_nw04/helpdata/en/d5/edf15ddcdc11d1890c0000e8216438/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b815e43d711d1893e0000e8323c4f/frameset.htm
Rgds
joel
Edited by: joel trinidade on Feb 23, 2009 5:46 PM -
Dear all,
I have some problem in idoc related issuses.i preparing technical documents from FS.
There are some filds coming from the client system to sap systmm,.there r nearly 7 field(parent).
And 9 fields (childs).this is from cls to WBI . I have to conclude TO fileds fromWBI to sap.
How can I pick the fields , shall I send all the fields or some paticuler fields only.. can any one
regars
vcHi Libin,
As for finding your needed idoc.
1. Choose the transaction WE09 (SAP Menu ® Tools ® IDoc Interface/ALE ® Administration ® Services ® IDoc Search by Contents ® WE09).
2. Choose the Data Source button to specify whether you want to search for IDocs from the database or the archive (or both) .
3. If you have set the u201AArchiveu2019 flag, you can select files in the archive information system, or manually.
Regarding to the steps to trigger an idoc , search SDN. But before that you will need to do ALE settings.
http://help.sap.com/saphelp_nw04/helpdata/en/d5/edf15ddcdc11d1890c0000e8216438/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b815e43d711d1893e0000e8323c4f/frameset.htm
Rgds
joel
Edited by: joel trinidade on Feb 23, 2009 5:46 PM -
Any BAPI or IDoc related to Warehouse Bin Master conversion
hi all,
Is there any BAPI or IDoc related to warehouse Bin Master conversion?
Regards,
AshaThere is no standard BAPI / IDOC for this.
Created custom BAPI for this. -
Hi....
Please send some FAQ'S regarding ale,idocs
thanks
k..swaminathHi,
plz go through the links...
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
Reward points if u find useful.
Regards,
Nagaraj -
What is the need of xi in idoc to idoc related scenarios
Hi all,
Can any one explain me what is the need of xi in idoc to idoc related scenarios.\
we can Send Idoc with out Xi right?
Thanks,
SrinivasIDOC to IDOC Scenario
pass through idoc to idoc scenario
IDoc to IDoc Scenario with High Volumes
SM58 Error For IDOC to IDOC Scenario -
Regarding documentation on User Exits, IDOCS, Interfaces etc.
Hi Friends,
Can any one help me if any documentation on User Exits(MM/WM related), ALE IDOCS/ INTERFACES etc available which shall help in understanding the above concepts.
Quick help will be highly appreciated and rewarded pls.
Thanks in Advance
Regards,
Prasanna.this info is spread though all channels SAP has, but unfortunatly not consistent, thats why it is so hard to find something.
You can find info at help.sap.com
e.g. this link (see the menu on the left as well)
http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm
Further you can find info at SAP MArketplace (OSS notes)
Or directly to the coding in SE37 and SE38.
IDOC and ALE documentation can be found here:
http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
and
http://www.logosworld.com/www5/books/IDocBook/IDocBook.htm
Edited by: Jürgen L. on Oct 24, 2008 12:21 PM -
1. How can we view and rectify the errors or warnings caused ,while we create a new idoc ,which may be an extension of an existing basic Idoc type(at Transaction code we30)?
2. How can we delete an Idoc created,if its already been released (at Transaction code we30) and configured(at transaction code we82)?
3. Is that mandatory that the check box Mandatory field should always be checked,whenever we create(extend) a new segment to an existing segment(at transaction code we30)?
4. On what basis,we can identify that To which existing segment - we can append our needed segment(new segment if any to be appended)?Hi Nagarajan,
Answers for your questions:
1)How can we view and rectify the errors or warnings caused ,while we create a new idoc ,which may be an extension of an existing basic Idoc type(at Transaction code we30)?
WE30 is created for IDOCs. First set break point related user exit.For testing WE19. Just enter that error IDOC number in WE19 and press F8. Then it will display the segments. Then press /H in the command box and press inbound function module push button (Just side of inbound push button). Then it will open in debug mode. we can test.
2. How can we delete an Idoc created,if its already been released (at Transaction code we30) and configured(at transaction code we82)?
Yes it is possible to delete hte IDOC which is released from our system, i think thorugh remote function but i am not sure.
3. Is that mandatory that the check box Mandatory field should always be checked,whenever we create(extend) a new segment to an existing segment(at transaction code we30)?
Based on the requirement we can select that check box. suppose it u upload the data for MM01 t-code then observe what are all the manditory feilds in that screen. Based on that choose mandotory check box for proper fields in the segment.(In MM01 suppose meterail number is manditory then while creating segment select that manditory chk box for MATNR)
4. On what basis,we can identify that To which existing segment - we can append our needed segment(new segment if any to be appended)?
Based on the basic IDOC type and given information from the user.
Hope this helps you, reply for queries,
Regards.
kumar. -
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 the time of Purchase order creation which could be used ?
Also the function modules for creating the IDOCs within the user-exit.
Thanks for your help.Hi Meghna,
Your requirement is SAP standard function which means you don't have to use any user exit.
What you need to do is configure output control, then when a PO saved, a idoc will send to vendor automaticly.
Here is a step brief
1. configure output type in NACE
2. Add condition record in NACE
3. Setup partner profile in WE20
if you need detailed doc, give me your email, I can send you.
Regards,
Brown -
hi
i am adding one field VBKD-IHREZ in the IDOC.
i have added following code in the Include which exists inside a User exit corresponding to fill Idoc Structure to BDC data structure.
z1edk05 is the new segment which i have add in z1orders through we30.
the code is below which i have added in Include.
when i activate this code i got error
the field z1edko5 is unknown. there are similer fields with name "z1edk03","z1edk01"
include LVEDACOM.
in UNICODE programs the character "-" can not appears in names as it does appear in the names 'IVBEP-POSNER'
if not z1edk05-ihrez is initial.
perform zzdynpro_setvalue tables dxbdcdata
using 'BDC_OKCODE' EQ '=SICH'.
PERFORM zzdynpro_new tables dxbdcdata
using 'SAPMV45A' '4002'.
perform zzdynpro_setvalue tables dxbdcdata
using 'VBKD-IHREZ' z1edk05-ihrez.
perform zzdynpro_setvalue tables dxbdcdata
using 'BDC_OKCODE' 'BACK'.
ENDIF.
regards
AtulHi,
Check if you released your idoc. Have you added the extended idoc to the message type in tcode we82. Also check if the partner profiles contain the zidoc in extension.
And as you have mentioned....it is showing 'o' in the error but your segment name contains 'zero(05)'. So please check it once.
Regards,
Sumalatha -
Hi all,
What is message in Idoc? Please tell in layman terms. Is it part of the data records? Please point me to related files or threads.
Thanks,
Charles.Hi,
The Message type are mornally assign to SAP document type (IDOC). A message type represents a business function ( Purchase order data, Invoivce data etc). The technical structure of the message type is the IDoc type.
An <b>IDoc type</b> can be implemented for various "logical" <b>messages</b>; one message can also be assigned to different IDoc types (m:n relationship).
The message is defined by the values for <b>message type (required),</b> <b>message code</b> (optional) and <b>message function</b> (optional). These three fields belong to the key fields in the partner profiles, which are used, for example, to determine inbound processing. If the 'Message type' field is not maintained (e.g. in the case of a control record from Release 2.1, in which MESTYP did not exist), the IDoc Interface uses the value from STDMES (EDI message type).
<b>Example</b>
The message ORDERS (= message type) identifies purchase orders (outbound) and sales orders (inbound).
Check transaction <b>WE81,</b> for Message type in SAP.
Also, follow this link for more infomation related to IDOC processing
http://help.sap.com/saphelp_46c/helpdata/en/72/c18ee5546a11d182cc0000e829fbfe/frameset.htm
Check this lin for information about "Distribution Using Message Types".
http://help.sap.com/saphelp_46c/helpdata/en/78/2174a351ce11d189570000e829fbbd/frameset.htm
Let me know if you need any other information.
Regards,
RS -
Hi SAP Gurus,
While doing posting from F-47 aganist a PO No., I need to check PO amount with the downpayment amount and raise a error message. Can any one tell me the EXIT name which I can use.
Regards,
Pavan.Hi,
Check these below. It might help you
User exit
SAPLF051 Workflow for FI (pre-capture, release for payment)
RFKORIEX Automatic correspondence
RFEPOS00 Line item display: Checking of selection conditions
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
FEDI0001 Function Exits for EDI in FI
FARC0002 Additional Checks for Archiving MM Vendor Master Data
F180A001 Balance Sheet Adjustment
F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
F050S002 FIDCC1: Change IDoc/do not send
F050S003 FIDCC2: Change IDoc/do not send
F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
Business Add-in
AC_QUANTITY_GET Transfer of Quantities to Accounting - Customer Exit
ADJUST_NET_DAYS Change to Net Due Date
FBAS_CIN_LTAX1F02 Tax interface
FBAS_CIN_MF05AFA0 EWT - Downpayment Clearing - Tax transfer for CIN
FISPLIT Online Split: Cash Discount, Exchange Rate Differences
FI_AUTHORITY_ITEM Extended Authorization Check for Document Display (FB03)
FI_DOC_DISP_LI Diversion to Document Items (FB03)
FI_FB08_SUBST_BUDAT FB08: Check Posting Date for Reversal of FI Doc. with FB0
FI_GET_INV_PYMT_AMT BAdI for determining the payment amount for an invoice
FI_HEADER_SUB_1300 Screen Enhancement for Document Header SAPMF05A
FI_PAYREF_BADI_010 BAdI: Payment Reference Number
FI_RES_ITEM_CURRENCY Document of Residual Item with Invoice Currency
FI_TRANS_DATE_DERIVE Derive BKPF-WWERT from Other Document Header Data
BADI_ENJ_ALT_ADR Go to alternative vendor/customer data
BADI_F040_SCREEN_600 Screen Enhancement on F040 0600 Document Header
RFESR000_BADI_001 BAdI for Own Processing of POR Item
BADI_MIRO_SPLT_ADD Append additional fields of ACCVS to ACCIT
BADI_PRKNG_NO_UPDATE BAdI for Deactivating Update of Parked Documents
FVFZ Replacement for Function Modules of Function Group FVFZ
F050S008 FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger
INVOIC_FI_INBOUND BADIs for Inbound IDoc INVOIC FI (Vendor Invoice) -
Regarding "WPUFIB01"idoc enhancement
hi ,
i have a std idoc "WPUFIB01" to which i am trying to add two new fields with the use of E1WXX01 cutomised segment.all the process is done using inbound processing.Currently i am using the enhancement name "WPUE0002" and the user exit i am using is "EXIT_SAPLWPUE_130".my problem is that i that i am unable to read the segment "E1WXX01" while processing the idoc.pls help ...thanx in advance..Hi Rahul,
Did you release the segment and the Custom IDOC TYPE.
Check whether you are using the correct idoc type.
Check if the segment is populated in the idoc.
Regards
Arun
Maybe you are looking for
-
ORA-29855 problem with creation of a index
Hi to all, I'm trying to create an index but I have this problem: SQL>CREATE INDEX ITALIA_NODE_IDX ON ITALIA_NODE$(GEOMETRY) INDEXTYPE IS MDSYS.SPATIAL_INDEX; CREATE INDEX ITALIA_NODE_IDX ON ITALIA_NODE$(GEOMETRY) INDEXTYPE IS MDSYS.SPATIAL_INDEX ERR
-
I'd be really grateful if someone could help me. I am very new to apple products and bought my ipod only in July this year. I didn't realise you had to keep updating them etc.. but anyway. My internet connection is extremely slow and unreliable (abou
-
I want to restore my i phone 5s , please help in here
i want to restore my i phone 5s , please help in here
-
I'm having trouble removing the proxy from the patching setup. I'm using GC 10g R3. Every time I try to set it back to direct Internet connection, it gives me a Error: "Proxy Test resulted in Exception" when I click on the apply button. I need to rem
-
When using e-mail I can't attach a file
When file upload comes up it just says not responding