SAP ALE / BAPI eWay
Hi,
I installed SAP ALE and BAPI eways. But In enterprise designer -> Repository > SeeBeyond -> eWays , these two eWays are not listed down. Is there any specific reason for this.
Please let me know any body have idea about this.?
Thanks.
Yes. Once the BAPI eWay is installed you start off by connecting to SAP to create a BAPI OTD using the OTD wizard.
Don't forget to copy the dll- and jar-files to you eDesigner and logicalhost as mentioned in the documentation for the eWay. Otherwise it will not work.
/Alex
Similar Messages
-
Consuming an RFC Call Using the BAPI eWay
Greetings all,
We are trying to set up a scenario in which we have a custom RFC function that we are calling synchronously using the BAPI eWay. Here, an ABAP program calls an RFC which is like a proxy on the JCAPS server. On the JCAPS side, we are wanting to map the RFC onto a Web Service call and pass the results back as the exporting parameters of the RFC. While the examples demonstrate the use of an asynchronous function module such as IDOC_INBOUND_ASYNCHRONOUS, it is not clear to me how to work with synchronous calls. Any information would be greatly appreciated. Thanks.
Best Regards,
James Wood
Bowdark Consulting, Inc.
[email protected]I have a similar (if not identical) problem. Chris, your reply to James is talking about the process originating within JCaps. In my scenario (and it sounds like James' too), the process is originating from SAP. What I'm trying to do is this:
SAP calls to my JCD - this is the part that I'm having trouble with
My JCD does something with the data sent to it from SAP (call a database or whatever)
The JCD responds back to SAP so that the request/reply cycle can complete and the SAP program has what it needs
When I create an OTD object in JCaps using my RFC, there doesn't seem to be a way to make the JCD that I want to create use that OTD as a source for the input message.
James, if I'm way off base here, let me know and I'll go get my own thread. :)
Any help or direction would be appreciated. I've Googled this to death and have come up short. -
IDOC/ALE/BAPI/BADI
Hi,
I want to understand the difference between IDOC/ALE/BAPI/BADI in context to a functional consultant.what is the role of each with an EXAMPLE.I want to basically understand with examples w.r.t SD or MM instead of theory which i could get in forum.
What is the role of a functional SD consultant, in these technology mentioned?
If i have to Test a BAPI or BADI what is that i should test???what is the T codes to be tested ? How to go about it??
Like in case of Order to cash testing, i will check if the sales cycle runs well, using T codes, Va01, vl01n, vf01.
Awaiting reply.
Thanks
LKHi Lekshmi,
I want to understand the difference between IDOC/ALE/BAPI/BADI in context to a functional consultant.
what is the role of each with an EXAMPLE.
I want to basically understand with examples w.r.t SD or MM instead of theory which i could get in forum.
What is the role of a functional SD consultant, in these technology mentioned?
Idoc/ALE/BAPI/BADI are basically advanced functionalities available in ABAP. These are treated as seperate module by somebody as "Cross Applications".
If we get in
IDOC is the concept which works for Third party communication from SAP.
Scenarion 1:
For example: I am a Buyer from your Company and i don't have SAP system where you have SAP Practice. I had given you one Order for which i need Confirmation and it needs to understand by my system. In this case IDOC is useful to transfer the confirmation details to my system understandable language. This can be acheived by any other outputs like e-Mail/Printout/Fax. But for these kind of Outputs thers is one limitation. those are in document form means if you take the print out it confirmation can be taken as a print out as a hard copy or soft coy by saving into PDF format. but that data cannot be accessed by my system to convert that data for further my own reporting purpose. if we use IDOCs.
These Idocs are transferred through Middleware and reach third party system (in this example my own system which does not have SAP) and store the details. later i can use that data how ever i can for my internal reporting purpose.
Scenario 2:
ALE: ALE also works like above, but the difference is this works for SAP-SAP communication. if i take the above example.... I have SAP System being a buyer and you have SAP sytem. Order Confirmaiton come from your system to my system.
If i have to Test a BAPI or BADI what is that i should test???what is the T codes to be tested ? How to go about it??
Like in case of Order to cash testing, i will check if the sales cycle runs well, using T codes, Va01, vl01n, vf01.
There is no such tcodes to test the enhancement functionality.
I assume you knows SAP SD.
If i take the example of SD Sales Order.
PO Number field is to explain the enhancement testing.
Your client enhanced the functionality of PO Number for which you are doing the testing for example.
now you get inside of the VA01 transaction and put all the headeer data and PO Number and press enter.
then based on the enhancement functionality system will act.
For example.. you had given AAA111 for Customer 123456.
You have entered Inside of VA01 and entered Sold and Shipto numbers as 123456. then entered PO number as BBB111 and press enter.
As per the enhancement you suppose to enter PO number as AAA111 for customer 123456, but you entered as BBB111.
Based on your enhancements system will through the error saying you entered wrong PO Number.
This is the testing part usually Functional Guy do.
Please let me know if you have any further clarification
Thanks & Regards
Venkat -
Explain the situation for using ale , bapi ,session ,call transation, di
what is the use of bdcmsgcall,
if any erroe occur in the legacy records how to rectify it?
In what situation we can go for lsmw.
Kindly explain the situation's for using ale , bapi ,session ,call transation, direct input.Hi ashok,
chk this.
the functionality of both idoc and bapi are same.
the main difference in BAPI is it is used for Third party application like JAVA, VB etc.
and IDOC is used transfer data from the SAP to sap or non-sap system.
For details refer the contents below
ALE
ALE is SAP proprietary technology that enables data communications between two or more SAP R/3 systems and/or R/3 and external systems. When a new enterprise resource planning (ERP) solution such as R/3 is implemented, companies have to interface the ERP system with legacy systems or other ERP systems.
ALE provides intelligent mechanisms where by clients can achieve integration as well as distribution of applications and data.
ALE technology facilitates rapid application prototyping and application interface development, thus reducing implementation time.
The ALE components are inherently integrated with SAP applications and are robust, leading to a highly reliable system.
ALE comes with application distribution/integration scenarios as well as a set of tools, programs, data definitions, and methodologies that you can easily configure to get an interface up and running.
BAPI
BAPIs provide a stable, standardized method for third-party applications and components to integrate into the Business Framework. These interfaces are being specified as part of SAP's initiative with customers, partners and leading standards organizations. Also, SAP has implemented the emerging Object Application Group (OAG) specifications with BAPIs.
Session method.
1) synchronous processing.
2) can tranfer large amount of data.
3) processing is slower.
4) error log is created
5) data is not updated until session is processed.
Call transaction.
1) asynchronous processing
2) can transfer small amount of data
3) processing is faster.
4) errors need to be handled explicitly
5) data is updated automatically
Session method is to populate the data by filling BDC structure
and keep as session to process from SM37 to post in appropriate Transaction.
Call transaction method is to post the data directly into the Transaction from an Executable program.
Session method SAP defined Function modules.
U can see more help on the differences in the SAP help.
hope u got an idea.
rgds
anver
<i>if hlped pls mark points</i> -
WE need to create applicant for hr recruitement from external data
via idoc and ale bapi .
<b>first</b> we generate the ale interface
Checking message type Message type ZAPPLICANT_CREATEFROMDATA exists already
Check basic type ZAPPLICANT_CREATEFROMDATA01 Basic type ZAPPLICANT_CREATEFROMDATA01 exists Basic type ZAPPLICANT_CREATEFROMDATA01 is released
Basic type ZAPPLICANT_CREATEFROMDATA01 is linked to logical message ZAPPLICANT_CREATEFROMDATA
No predecessors exist Check segment Z1ZAPPLICANT_CREATEFROMDATA Segment Z1ZAPPLICANT_CREATEFROMDATA consistent Check segment Z1BPEDUC Segment Z1BPEDUC consistent Check segment Z1BPEMPLOY Segment Z1BPEMPLOY consistent Check segment Z1BPQUALI Segment Z1BPQUALI consistent Check segment Z1BPVACASS Segment Z1BPVACASS consistent Checking outbound function module ZALE_APPLICANT_CREATE has been generated Checking inbound function module ZIDOC_INPUT_ZAPPLICANT_CREATEF has been generated
<b>Second</b> we configure the partner profile
<b><u>after that we do a test to create an applicant from an idoc</u></b>but we have this message error
make an entry in all required fields even if we put data in
all fields of all idoc segments.
Best regardsHi Mohamed,
first of all, welcome to SDN! Sorry, this is the wrong forum for your question, the experts in the <a href="https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode2-3&contenttype=url&content=https%3A%2F%2Fforums.sdn.sap.com%2Fforum.jspa%3FforumID%3D50">ABAP forum</a> will probably help you.
Regards, Stefan -
Thru Java connector to update SAP by BAPI
Dear...
How to bring the data from external application through the Java connector to SAP? Pls help....Hai Check the following Document & Links
Bapi to create customer master
BAPI_CUSTOMER_CREATEFROMDATA
BAPI_CUSTOMER_CREATEFROMDATA1
Or you can use FM SD_CUSTOMER_MAINTAIN_ALL
what is BAPI?
BAPI stands for Business API(Application Program Interface).
I have answered this question before..
A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
You can make your function module remotely enabled in attributes of Function module but
A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
The following standardized BAPIs are provided:
Reading instances of SAP business objects
GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
The BAPI GetList() is a class method.
GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
Create( ) and CreateFromData! ( )
The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
Change( )
The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
Check these Links out
http://searchsap.techtarget.com/ateQuestionNResponse/0,289625,sid21_cid558752_tax293481,00.html
http://www.sap-img.com/abap/interview-question-on-bapi-rfc-abap-objects-tables.htm
http://www.sap-img.com/fu033.htm
http://www.sap-img.com/abap/ale-bapi.htm
Please check out this thread..
Re: bapi
Also refer to the following links..
www.sappoint.com/abap/bapiintro.pdf
www.sap-img.com/bapi.htm
www.sap-img.com/abap/bapi-conventions.htm
www.planetsap.com/Bapi_main_page.htm
www.sapgenie.com/abap/bapi/index.htm
<b>Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
Java Connector(JCO) can call not only BAPI's but also the function modules which are remotely enabled..
BAPI's as i said earlier are remotely enabled function modules..
Hence, JCO can call also BAPI's(n not only BAPI's as u mentioned).</b>
Thanks & regards
Sreenivasulu P -
SAP ALE connection with EDI sub-system
We are using the SAP ALE functionality to connect to the EDI sub-system, rather than the traditional way (creating IDoc flat files). For this setup also, the RFC type is TCP/IP type. But I'm not sure of the various other details to complete the setup. Rather I guess, I don't know which is the correct program to run on the Application Server.
Look at the error text below, and tell me if this is not working because I cannot connect to the program on the application sever?
RFC connection type: T (TCP/IP)
Activation type: Start on Application server
Program: /usr/sap/D05/SYS/exe/run/rfcexec.sec
Test connection error:
ERROR timeout during allocate
LOCATION SAP-Gateway on host jua-sap-dev / sapgw02
DETAIL no connect of TP /usr/sap/D05/SYS/exe/run/rfcexec.sec from host jua-sa
COMPONENT SAP-Gateway
COUNTER 6321
MODULE gwr3cpic.c
LINE 5774
RETURN CODE 242
SUBRC 0
RELEASE 640
TIME Thu May 3 17:01:32 2007
VERSION 2Hi Vinodh,
I am facing the same issue right now with GIS. Did you get the solution for this please?
Regards,
Deepesh Datt. -
hi,
first ,i m newhand in ALE BAPI
for the purpose of transfering MatMaster Data from one client to another i want to use BAPI(standardmaterial) in distribution model (BD64).
of course i have set the necessary points in IMG , but what confused me is how can i generate through the method of this object type ?
in the context of ALE/IDOC(MATMAS) we can generate idoc through Tcode bd10 , but in this bapi scenario(standardmaterial/save/idoc type:matmas_bapi) it seems not work .
please kindly suggestHI,
Steps for outbound interface for material master
1, create port
2,create RFC destination
3,create partner profile(here you have to assign process code MATM to mesage MATMAS this prcess code will calls the outbound function module to fill the Idoc)
4 create CDM.
Otherwise refer the below link:
aptechnical.com/Tutorials/ALE/MaterialMaster/Distribute1.htm
Regards,
suresh.d -
Post AccountngEmployeeExpnses ALE/BAPI
Hi all,
I have to send Employee expenses fro HR to FI using ALE/BAPI.
I configured ALE/BAPI and added object AcctngEmplyeeExpnses in distribution model.
I want to know what is transaction to post data from Sending system to reciever system.
Thanks
ShashHi Kanth,
You can use process code <b>BAPI</b> for your inbound message type ACC_EMPLOYEE_EXP.
This process code will call function module IDOC_INPUT_ACC_EMPLOYEE_EXP to post the above IDoc.
If you set to trigger by background job in the inbound partner profile (t/code WE20)then you need to run/schedule a job for program RBDAPP01. Otherwise, the IDoc will be process immediately.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful. -
EDI documents are posted to SAP with BAPI ...How?
how is that EDI documents are posted to SAP with BAPI....is there some step by step doc to do that.....
Hi,
There are couple of EDI subsystems like Meractor from where you can fire a BAPI to post a document into our SAP system.
First the EDI subsystem receives the EDI document and from there are going to fill all the internal tables of the BAPI and call that BAPI from the EDI subsystem itself, if the BAPI is successfully executed then it will return the document number and if it fails then it will throw the error why it has failed.
If it has failed then the EDI team will look into the reason and work on it, if it is a data related then they will take care and it is a problem with the config then they are going to intimate the SAP team to make the necessary config and they will refire the BAPI again.
Thanks,
Mahesh. -
PURCHASE ORDER CREATION USING ALE ( BAPI )...
HI,
I DESPERATELY NEED SOME ADVISE IN CREATING A PURCHASE ORDER USING ALE....I AM VERY NEW TO ALE SO CAN ANYONE EXPLAIN IN STEPS WHAT TO BE DONE IN DETAIL....PLS HELP ME OUT IN THIS REGARD....I WILL GET SOME DATA AS INBOUND IDOCS AND I NEED TO CREATE A PURCHASE ORDER USING ALE USING BAPI( BAPI_PO_CREATE1 ).......HOPING A QUICK REPLY ASAP.....Hi Gianluca,
I need to do the same as per the original post and your answers gets me halfway there. My remaining question is how to get the PO to output the PORDCR messgage on the outbound side (also a SAP system)? Or do you have to output the PO as an ORDERS message and map that to the PORDCR message in something like XI or other middleware?
Thanks for the help.
Johan -
ALE-BAPI-Scenario to XI with several BAPIs
Hello
<b>Descritpion of the current situation:</b>
I configured an ALE Distribution model to transfer the HR payroll accounting data from an single SAP 4.7 system (WebAS 6.20) into 8 different SAP-Accounting-Systems (SAP R/3 4.6C). The model contains 14 BAPIs-Calls which are sent to SAP XI (3.0 SP17) and forwarded to the corresponding SAP-R/3-System, depending on the company-code.
SAP XI demands for each BAPI an RFC-Sender-Adapter which contains a programID. For each programID I have to configure an TCP/IP-RFC destination in the sender system which contains the corresponding programID. The ALE distribution model configuration (BD64) allows only to use logical systems as receiver. So I have to create 14 logical systems with the same identification as the 14 TCP/IP-RFC destinations. In addition I was only allowed to create TCP/IP-RFC destinations with a length of 10 characters, because the field for the logical system isn't longer.
<b>My questions are the following</b>:
1) Is there a possibility to avoid the creation of 14 logical systems in this situation?
2) Are there User-Exits or BADIs to map a different RFC-Destination in ALE before executing the BAPI-Call (i.e. depending on the logical system AND the BAPI)?
3) Does anybody have a similar model and what are the experiences?
Thanks
Beat MuellerHi
Here's the List of the Object-Methots and BAPIs for Checking:
CompanyCode.GetPeriod:
- BAPI_COMPANYCODE_GET_PERIOD
CostType.GetFixaccountList:
- BAPI_FIXACCOUNT_GETLIST
GeneralLedgerAccount.GetDetail:
- BAPI_GL_ACC_GETDETAIL
AcctngServices.DocumentDisplay:
- BAPI_ACC_DOCUMENT_DISPLAY
AcctngServices.PreCheckPayrollAccountAssign:
- BAPI_CODINGBLOCK_PRECHECK_HR
AcctngEmplyeeExpnses.Check:
- BAPI_ACC_EMPLOYEE_EXP_CHECK
AcctngEmplyeeExpnses.Post:
- BAPI_ACC_EMPLOYEE_EXP_POST
AcctngEmplyeeRcvbles.Check:
- BAPI_ACC_EMPLOYEE_REC_CHECK
AcctngEmplyeeRcvbles.Post:
- BAPI_ACC_EMPLOYEE_REC_POST
AcctngEmplyeePaybles.Check:
- BAPI_ACC_EMPLOYEE_PAY_CHECK
AcctngEmplyeePaybles.Post:
- BAPI_ACC_EMPLOYEE_PAY_POST
Customer.Find:
- BAPI_CUSTOMER_FIND
Customer.GetDetail2:
- BAPI_CUSTOMER_GETDETAIL2
Vendor.Find:
- BAPI_VENDOR_FIND
Vendor.GetDetail:
- BAPI_VENDOR_GETDETAIL
and here are the IDocs for Posting the Documents:
ACC_EMPLOYEE_EXP.ACC_EMPLOYEE_EXP02
ACC_EMPLOYEE_PAY.ACC_EMPLOYEE_PAY02
ACC_EMPLOYEE_REC.ACC_EMPLOYEE_REC02
Documentation:
4.6c:
http://help.sap.com/saphelp_46c/helpdata/en/ae/1c4b6e5733d1118b3f0060b03ca329/frameset.htm
Our project had been stopped until now and will be reactivated in April. Have you been successfull posting the payroll form HR to FI/CO via SAP XI? How did you solve it?
Greetings
Beat Muller -
Hello,
When coming to ALE is it preferable to have an intercompany ALE communication...I know its normally Intra company....?
SAme with BAPI is intercompany BAPI communication preferrable...?
What might be the issues...?
Can any one help...
Thanks..
LArryHello,
Whether ALE or BAPI , is not a question of intracompany or B2B, but whether you need a sychronous (BAPI) or asynchronous (ALE) communication.
E.g. : there is more than one SAP-System in your company. You want to transfer changes of material master data form one system to the other. If you would do it synchronous, nobody could change a material master if the connection between the two systems is broken ( or the other system is down ) . A bad idea.. . So, you would do it via ALE.
Other case: you build a list on system 1 and need to read some data from system 2. There you could act with a bapi.
Regards Wolfgang -
Send mail to non-sap using bapi's
hi friends,
Can any one please help me how to send mail from sap to non-sap systems using bapi's.plesae help me .i want the procedure and code
regards
srikanth.vHi,
Use this sample Code...
REPORT ZSENDMAIL.
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
Creation of the document to be sent
File Name
DOC_CHNG-OBJ_NAME = 'SENDFILE'.
Mail Subject
DOC_CHNG-OBJ_DESCR = 'Send External Mail'.
Mail Contents
OBJTXT = 'Minimum bid : $250000'.
APPEND OBJTXT.
OBJTXT = 'A representation of the pictures up for auction'.
APPEND OBJTXT.
OBJTXT = 'was included as attachment.'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creation of the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Creation of the document attachment
(Assume that the data in OBJBIN is in BMP format)
*OBJBIN = ' \O/ '. APPEND OBJBIN.
*OBJBIN = ' | '. APPEND OBJBIN.
*OBJBIN = ' / \ '. APPEND OBJBIN.
*DESCRIBE TABLE OBJBIN LINES TAB_LINES.
*OBJHEAD = 'PICTURE.BMP'.
*APPEND OBJHEAD.
Creation of the entry for the compressed attachment
*OBJPACK-TRANSF_BIN = 'X'.
*OBJPACK-HEAD_START = 1.
*OBJPACK-HEAD_NUM = 1.
*OBJPACK-BODY_START = 1.
*OBJPACK-BODY_NUM = TAB_LINES.
*OBJPACK-DOC_TYPE = 'BMP'.
*OBJPACK-OBJ_NAME = 'PICTURE'.
*OBJPACK-OBJ_DESCR = 'Representation of object 138'.
*OBJPACK-DOC_SIZE = TAB_LINES * 255.
*APPEND OBJPACK.
Completing the recipient list
RECLIST-RECEIVER = '[email protected]'.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
*RECLIST-RECEIVER = 'SAPUSERNAME'.
*RECLIST-REC_TYPE = 'P'.
*APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
CASE SY-SUBRC.
WHEN 0.
WRITE: / 'Result of the send process:'.
LOOP AT RECLIST.
WRITE: / RECLIST-RECEIVER(48), ':'.
IF RECLIST-RETRN_CODE = 0.
WRITE 'The document was sent'.
ELSE.
WRITE 'The document could not be sent'.
ENDIF.
ENDLOOP.
WHEN 1.
WRITE: / 'No authorization for sending to the specified number',
'of recipients'.
WHEN 2.
WRITE: / 'Document could not be sent to any recipient'.
WHEN 4.
WRITE: / 'No send authorization'.
WHEN OTHERS.
WRITE: / 'Error occurred while sending'.
ENDCASE.
in this code....Internal table IF RECLIST-RETRN_CODE is not 0,then the mail is not send to the recipient, so if you want the undeliverable mail for a perticular recipient then call the same function module SO_NEW_DOCUMENT_ATT_SEND_API1 with undeliverd message to whom want to receive the undeliverd message.
hope this solves your problem -
Problem in retrieving multiple records SAP xMII from SAP using BAPIS
Hi friends,
In SAP xMII i called BAPI_USER_GETLIST by passing import parameters 10 and y.In r/3 BAPI returned 10 rows but In xMII it was returned only one Record.
i want to display 10 records in sap xmii
1) I created to connection ECC5 in Dataservices-->SAPSERVERConfiguration
2)In BLS we placed JCO Interface inside Sequence
3)In BLS I used ECC5 connectrion(using JCO Interface) and called BAPI_USER_GELLIST
4)In Links-->Transaction created two input values for "maxnoofrows","withusername" and output value is "userid".
Input what i mapped
Transaction>"maxnoofrows" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->MAX_ROWS
Transaction>"withusername" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->WITH_USERNAME
Output what i mapped
SAPJCOINTERFACE->Response>BAPI_USER_GETLIST>TABELS>USERLITS >ITEM>USERNAME=====Transaction-->userid
5)Saved the Transaction.
6)In Query Template -->xactuateQuery selected
7)In Datasource Query mode was selected ,Inputrarams i passed 10 and y as parameters.
It was returned one user id from R/3 inSAP xMII
please help me to retrive all 10 rows from r/3
Regards
Srikanthhi,
What is the data type of Transaction output (userid)?
Make this as XML type.
The format which BAPI returns the result does not match with xMII XML format.
Create a xMII XML document and configure with column name as userid. and by using repeater and XML row add all tho values to the document. Then assign whole doument to transaction output.
Hope this will help to resolve the issue.
Regards,
Kishore
Maybe you are looking for
-
Goods receipt and goods issue smartform
Hi : Is there any standard smartform for Goods receipt / Goods issue slip ? How to create a customizing form using smartforms when a material document is created and saved . Thx. Raghu
-
USB Errors while trying to install 64 bit Arch
I'm trying to install Arch onto some brand new hardware. I am installing using the Arch Netboot environment. When I try to install 64 bit Arch, I get the following errors straight after archiso.img is downloaded and the kernel is booted: usb 2-5: dev
-
Dealing with MS Word special chars
Hi, Is there a java.String method (or similar) which will replace MS Word special chars - such as "culry apostrophes" - with HTML compliant versions? cheers Hugh Edited by: inabind on Aug 11, 2008 7:39 AM
-
MBP15 Retina: Cant wake from Display Sleep
I've bought my MBP15 with Retina a week or two ago. You know how your display turns off after a minute of leaving you Mac idle? When I touch the trackpad or any key on the keyboard to log back in, the display turns back on for 1 second, then goes bla
-
Hi all I am in the process of creating a PO for a scenario where I will have to do IV before Goods Receipt. For this, I unchecked the option "GR-based IV" while PO creation. On doing this the system shows the error "Please enter GR-based IV". How to