FAQs_Interface
FAQs_Interface
6. What happens if I don't use EXIT in DO & ENDDO while reading AL11 file?
- LOOP will not be ended (infinite LOOP).
7. How do you identify if the file does not exist in specified folder in AL11?
- After OPEN DATASET, we check SY-SUBRC = 0, if not 0 then file does not exist or
invalid.
9. Which technique you use to update AL11 file data into SAP?
- It depends on situation, If the file data is less and dont have sufficient time
for the development then we go for BDC.
Otherwise we can prefer BAPI.
11. How do you validate the presentation server file is valid or not?
- We can use a FM or class method to validate the i/p file path.
BAPI:
-----
16. What is BAPI?
- Full form of BAPI is Business Application Programming Interface and it's a RFC
FM.
17B) How to know the errors using bapi while uploading data?
Ans.
A BAPI should be able to record and classify all possible errors that may occur a
function Module BAPI_MESSAGE_GETDETAIL is used to handle the Error Messages.
You have to create a parameter named Return for every BAPI. This parameter
returns exception messages or success messages to the calling program.
BAPIs themselves must not trigger any messages (such as MESSAGE xnnn) in
the coding. In particular they must not generate terminations or display dialog
boxes. Instead, all messages must be intercepted internally and reported back to
the calling program in the Return parameter. Otherwise the BAPI will not be
processed correctly and control may not be given back to the calling program.
All error messages or indeed any message that may be returned by the BAPI, must
be defined in message table (Tools ® ABAP Workbench ® Development ® Programming
environment ® Messages) and described in the documentation for the return
parameter. This also applies to the most important or most likely error messages
generated by other programs that can be indirectly passed via the BAPI to the
application program.
Features
The export parameter Return can be implemented as follows:
As a structure, whereby it must be defined in the function module as an export
parameter, as well as in the method in the BOR.
As a table, whereby it must be defined in the function module as a table parameter,
as well as in the method in the BOR as an export parameter.
Before filling the Return parameter you should either initialize the structure with
CLEAR or the table with REFRESH and CLEAR.
If the return parameter is not set or is set to an initial value this means that
no error has occurred.
The Return parameter may be based on the following reference structures:
BAPIRET2
You must use this reference structure when developing new BAPIS.
BAPIRET1, BAPIRETURN
These reference structures are still partly used in old BAPIs.
Both structures must be filled in the logon language.
20. Can we test BAPI independently (without a program) with COMMIT functionality?
- Yes, Execute SE37 -> Menu -> Execute in sequence -> Provide required BAPI name
and followed by COMMIT BAPI.
Proxy:
-----
31. Explain about PROXY?
- PROXY is a middleware between SAP to NON-SAP vice versa.
PI team will generate a proxy class with required structure parameters
respectively for inbound and outbound using tcode SPROXY.
As an ABAPer we use this proxy class and it's method for our requirement with
ABAP logic.
32. How do you know the data is transferred to 3rd party or not?
- We will receive the response from 3rd party to PI and PI to SAP.
40. What is your preferred option among all file process options?
- If customization required then Proxy is the preferred option.
If standard process then IDOCs is best option, IDOCs can capture step by step
status of the process.
We can have a copy of the data from both the sides SAP and NON-SAP systems.