RFC for Availbility check.

Hi all,
I am working for a Retail project. there is a requirement like...
Whenever POS (point of sales - Store) doing the billing for an article one request should go SAP to check the availbility of the product and get the status of the same.. is there any standard RFC for the req... pls do the needful...
it is some thing like online availability check...
Thanks in advance...
subbu..

hi
Synchronous RFC (CALL FUNCTION-DESTINATION)
Syntax
CALL FUNCTION func DESTINATION dest parameter list.
Effect
Synchronous call of a remote-capable function module specified in func using the RFC interface. With the addition DESTINATION, the destination is specified in dest. Character-type data objects are expected for func and dest. The calling program is continued using the statement CALL FUNCTION, if the remotely called function has finished.
CALL FUNCTION - DESTINATION parameter list
Syntax
... http://EXPORTING p1 = a1 ... pn = an
http://IMPORTING p1 = a1 p2 = a2 ...
http://CHANGING p1 = a1 p2 = a2 ...
http://TABLES t1 = itab1 t2 = itab2 ...
[EXCEPTIONS exc1 = n1 exc2 = n2 ... MESSAGE mess
OTHERS = n_others].
Effect
These additions are used to assign actual parameters to the formal parameters of the function module, and return values to exceptions that are not class-based. The additions have the same meanings as for the general function module call, the only differences being that, with the addition TABLES, only tables with flat character types can be transferred, and that if a header line exists, it is not transferred. The additions EXPORTING, IMPORTING and CHANGING allow you to transfer tables that have deep character types, deep structures, and strings.
For EXCEPTIONS, you can also specify an optional addition MESSAGE for the special exceptions SYSTEM_FAILURE and COMMUNICATION_FAILURE. If one of these exceptions occurs, the first line of the corresponding short dump is entered in the field mess, which must be flat and of character-type.
Transferring tables using the addition TABLES is considerably faster than using the other additions, since a binary format is used internally instead of an XML format.
Parallel Processing with Asynchronous RFC
To achieve a balanced distribution of the system load, you can use destination additions to execute function modules in parallel tasks in any application server or in a predefined application server group of an SAP system.
Parallel-processing is implemented with a special variant of asynchonous RFC. It’s important that you use only the correct variant for your own parallel processing applications: the CALL FUNCTION STARTING NEW TASK DESTINATION IN GROUP keyword. Using other variants of asynchronous RFC circumvents the built-in safeguards in the correct keyword, and can bring your system to its knees
Details are discussed in the following subsections:
· Prerequisites for Parallel Processing
· Function Modules and ABAP Keywords for Parallel Processing
· Managing Resources in Parallel Processing
Prerequisites for Parallel Processing
Before you implement parallel processing, make sure that your application and your SAP system meet these requirements:
· Logically-independent units of work:
The data processing task that is to be carried out in parallel must be logically independent of other instances of the task. That is, the task can be carried out without reference to other records from the same data set that are also being processed in parallel, and the task is not dependent upon the results of others of the parallel operations. For example, parallel processing is not suitable for data that must be sequentially processed or in which the processing of one data item is dependent upon the processing of another item of the data.
By definition, there is no guarantee that data will be processed in a particular order in parallel processing or that a particular result will be available at a given point in processing.
· ABAP requirements:
¡ The function module that you call must be marked as externally callable. This attribute is specified in the Remote function call supported field in the function module definition (transaction SE37).
¡ The called function module may not include a function call to the destination “BACK.”
¡ The calling program should not change to a new internal session after making an asynchronous RFC call. That is, you should not use SUBMIT or CALL TRANSACTION in such a report after using CALL FUNCTION STARTING NEW TASK.
¡ You cannot use the CALL FUNCTION STARTING NEW TASK DESTINATION IN GROUP keyword to start external programs.
· System resources:
In order to process tasks from parallel jobs, a server in your SAP system must have at least 3 dialog work processes. It must also meet the workload criteria of the parallel processing system: Dispatcher queue less than 10% full, at least one dialog work process free for processing tasks from the parallel job.
Function Modules and ABAP Keywords for Parallel Processing
You can implement parallel processing in your applications by using the following function modules and ABAP keywords:
· SPBT_INITIALIZE: Optional function module.
Use to determine the availability of resources for parallel processing.
You can do the following:
¡ check that the parallel processing group that you have specified is correct.
¡ find out how many work processes are available so that you can more efficiently size the packets of data that are to be processed in your data.
· CALL FUNCTION Remotefunction STARTING NEW TASK Taskname DESTINATION IN GROUP:
With this ABAP statement, you are telling the SAP system to process function module calls in parallel. Typically, you’ll place this keyword in a loop in which you divide up the data that is to be processed into work packets. You can pass the data that is to be processed in the form of an internal table (EXPORT, TABLE arguments). The keyword implements parallel processing by dispatching asynchronous RFC calls to the servers that are available in the RFC server group specified for the processing.
Note that your RFC calls with CALL FUNCTION are processed in work processes of type DIALOG. The DIALOG limit on processing of one dialog step (by default 300 seconds, system profile parameter rdisp/max_wprun_time) applies to these RFC calls. Keep this limit in mind when you divide up data for parallel processing calls.
· SPBT_GET_PP_DESTINATION: Optional function module.
Call immediately after the CALL FUNCTION keyword to get the name of the server on which the parallel processing task will be run.
· SPBT_DO_NOT_USE_SERVER: Optional function module.
Excludes a particular server from further use for processing parallel processing tasks. Use in conjunction with SPBT_GET_PP_DESTINATION if you determine that a particular server is not available for parallel processing (for example, COMMUNICATION FAILURE exception if a server becomes unavailable).
· WAIT: ABAP keyword
WAIT UNTIL
Required if you wish to wait for all of the asynchronous parallel tasks created with CALL FUNCTION to return. This is normally a requirement for orderly background processing. May be used only if the CALL FUNCTION includes the PERFORMING ON RETURN addition.
· RECEIVE: ABAP keyword
RECEIVE RESULTS FROM FUNCTION Remotefunction
Required if you wish to receive the results of the processing of an asynchronous RFC. RECEIVE retrieves IMPORT and TABLE parameters as well as messages and return codes.
Managing Resources in Parallel Processing
You use the following destination additions to perform parallel execution of function modules (asynchronous calls) in the SAP system:
In a predefined group of application servers:
CALL FUNCTION Remotefunction STARTING NEW TASK Taskname
DESTINATION IN GROUP Groupname
In all currently available and active application servers:
CALL FUNCTION Remotefunction STARTING NEW TASK Taskname
DESTINATION IN GROUP DEFAULT
The addition first determines the amount of resources (work processes) currently available (i.e. in all servers or in a group of application servers, comparable with login servers). The resources available for executing asynchronous calls on each application server depends on the current system load.
The applications developer is responsible for the availability of RFC groups in the production system (i.e. the customer's system). For details on how to maintain the RFC groups, see Maintaining Group Destinations For Load Distribution.
After determining the available resources, the asynchronous call is executed in an available application server. If no resources are available at that particular time, the system executes the exception routine RESOURCE_FAILURE (see the addition Exceptions). In the case of an asynchronous function module call, this exception must be handled by the application program.
The process for determining available resources in an RFC group is as follows:
First, the system determines the length of the dispatcher queue for the relevant application server. If it is greater than 10% of the overall length, the server makes no resources available. If it is smaller, the system makes available the current number of free dialog processes minus 2 (as a reserve instance for other purposes, e.g. for logon to the system or administration programs). Thus, one application server must have at least 3 dialog processes if RFC parallel processing is taken into account.
§ At present, only one RFC group per program environment is supported for parallel execution of asynchronous calls. Using both additions (DESTINATION IN GROUP Groupname and DESTINATION IN GROUP DEFAULT) in one program is not allowed.
§ The exception routine RESOURCE_FAILURE is only triggered in connection with asynchronous RFCs with the additions DESTINATION IN GROUP Groupname and DESTINATION IN GROUP DEFAULT.
You are recommended (for performance and other reasons) to use an RFC group with sufficient resources for parallel processing of asynchronous calls
Continue with the following section:
CALL FUNCTION - STARTING NEW TASK
regards
satish

Similar Messages

  • User-exit for availbility check in SD - cross company

    Hi all,
    I have a issue regarding that we want to check the stock availibility at 2 different plants (belonging to 2 different company codes) as they were 1 plant. Meaning we want to do availability check across 2 plants. And when creating the delivery, the system should consider all batches from the 2 plants.
    Since this is not SAP standard we either need APO (this can do it) OR some user-exit tricks - have any of you ever done this?
    Please help me asap .....
    Best regards
    Lars

    Can u brief the query in detail without missing anything right from deliver creation .
    Material avaliablity stock is for a plant and storage location . and plant is defined under company code .
    We can check the stock avaliable for the plant and material in table <b>MARD for the field LABST</b> for the requirement .
    plant company code can be evaluated .
    a material can be present in two different plants .
    u can check table MARC and MARD for the same .
    check the user exits for the same .
    EXIT_SAPLV50R_001     
    EXIT_SAPLV50R_VIEW_001
    EXIT_SAPLV50R_VIEW_002
    Are u creating a Outbound/inbound delivery ?
    Brief the navigation so that it wil be easy for us .
    regards,
    vijay

  • ERROR while CREATING RFC FOR SOLUTION MANAGER DIAGNOSTICS

    Dear all,
    Hi,
    I am configuring solution manager 7.0.
    In SPRO>basic setting >operation>solution manager diagnostics > create RFC for solution manager diagnostics i am getting this error
    program WEBADMIN not registerred.
    can any one tell me how to register this program in sap gateway.
    best regards
    azeem

    Hi Azeem,
    Just before creating the rfc connection do this step.
    Set-Up Solution Manager Connection to Solution Manager Diagn
    Use
    Check the connection to function Solution Manager Diagnostics.
    Default Settings
    The function Solution Manager Diagnostics is installed on the Java instance of the Solution Manager system by default.
    Activities
    If the default values are correct, save the settings.
    To run the Solution Manager Diagnostics in another system, enter the required data and save.
    Also check that your java is active.
    Regards
    Ashok

  • "No valid RFC for the system VEP" in solman_setup in solman7.1

    Hi Gurus,
         I've installed Solman 7.1. Configured STMS as single domain alone. STMS was successfull and the RFC was created and that also successfull. But in solman_setup, in system preparation phase, check STMS, its throwing the error "No Valid RFC for the system VEP".
              I tried deleting the RFC and recreating it, Deleting the STMS ans reconfiguring it, Tried 000, 001 and 100 client, Restarted the SAP server, Restarted the OS lvel also. But nothing works. I've searched but no solution works. Please suggest me what might be the solution for this.
       And also I need to configure the MOPZ in solman 7.1. Please guide for that, since i've not doone in 7.1 and everything in this was new.
    Thanks and Regards,
    Santhosh Kumar.

    Issue resolved by activating single system landscape in STMS.
    Regards,
    Santhosh Kumar.

  • RFC For IDoc outbound processing

    I am creating an RFC for BDC for call transaction we19
    input as : idoc number
    and output:-.. iDoc Outbound processing done
    so:-
    I go to we19> give iDoc Number (say, some number for ALEREQ01), and execute> click on Outbound processing-->click enter -->enter
    in this way, I can process any iDoc from SAP system to outbound.
    I want  to create RFC for the same.
    Problem:-
    when i am executing that RFC, and when I check the iDoc status in we05, that iDoc shows status as Idoc ready to dispatch( its in yellow color).. Its not showing green color and not saying that IDoc passed OK
    when I try manually ,I see the status green..OK..successfully
    Any idea why I am getting this problem??
    Is there any problem in my BDC recording?..but when I run that recording for Process, i dont see any problem,it executes successfully.. but when I copy the Code from BDC and make a RFC using that code, its giving problem as mentioned.

    Hi Ankit,
    Theorotically it should work.... but I'll suggest not to use BDC here. What you can do is,
    1. You have Idoc number..Right?
    2. Read control record from EDIDC and data record from EDID4.
    3. Then call Master_idoc_distribute.
    4. This will again distribute the same IDoc with same control and data record as a new one. It will be same as WE19 , but without WE19.
    Please check and confirm.
    Regards,
    Audy.

  • Availbility check in production order

    Hi Friends
    We need to have the availbility check in production order , where we need to exclude some of the storage locations stock & include some of the storage locations stock
    How we can achive this
    In Customising , either it says to take all the storage locations stock OR to exclude all the storage locations stock

    Hi
    Check in T code OPJJ for the availablity check  control which you are using in Material master. also check the stocks tab for selcting your type of stocks while doing the availablity check
    Also check the control for your oder type in OPJK
    Check and revert
    Regards
    Anupam Sharma
    Edited by: anupam sharma on Dec 21, 2009 2:53 PM

  • BAPI/RFC FOR MB52

    PLS PROVIDE BAPI/RFC FOR MB52.
    OR
    PLS PROVIDE BAPI/RFC TO READ MARD-LABST.
    PLS HELP I AM NEW TO SAP.
    I tried
    BAPI_MATERIAL_AVAILABILITY
    but it wont provied al stock for some material it provided error
    EAG024No checking group is maintained for product 000000002000181306, plant JGE1 in matl master.
    my requiremts is
    material/plant/sloc/batch/fr_stk kid of table
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Feb 14, 2011 5:23 PM

    Hi Gautam,
    Check the bapi  BAPI_MATERIAL_STOCK_REQ_LIST. it contains various parameters like MATERIAL
    PLANT,MRP_AREA,0PLAN_SCENARIO,SELECTION_RULE,DISPLAY_FILTER,PERIOD_INDICATOR,GET_ITEM_DETAILS
    GET_IND_LINES,GET_TOTAL_LINES,IGNORE_BUFFER,MATERIAL_EVG
    Read the documentation of this Bapi . If you wont get all parameters what you require better to go for a Zbapi. Please tell if require more help on this
    Regards,
    Madhu.

  • Finding FM/BAPI/RFC for Create Inbound Delivery(vl31n).

    Hi all,
    i need for a FM/BAPI/RFC for Create Inbound Delivery(vl31n) or ASN
    where in import Parameter i have to pass -
    *vendor no*
    *PO no*
    *External ID no*
    *Delivery date*
    *TransPlanngDate*
    *BillOfLad*
    *GR/GI Slip*
    in Export i need ASN no and in tables we can use ITEM details.
    Regards,
    Sunil sahoo.

    Hi,
    Check the below link
    [https://forums.sdn.sap.com/click.jspa?searchID=16938983&messageID=5780492]
    Regards,
    Surinder

  • Setting up of an RFC for getting the SNOTES downloaded to my R/3 system

    hi All Experts,
            How to Set up an RFC for getting the SNOTES downloaded to my R/3 system. Is the any particular SAP maintained IP thru which we get the SNOTES.
    Thanks in advance,
    Shyam.

    Hello,
    For RFC based traffic the SAP gateway port is important, check also the message server and dispatcher ports.
    This document is a good reference point, I recommend you store it somewhere:
    [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4e515a43-0e01-0010-2da1-9bcc452c280b|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4e515a43-0e01-0010-2da1-9bcc452c280b]
    [http://help.sap.com/saphelp_nw70/helpdata/en/43/3464ec8b631c1ce10000000a1553f7/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/43/3464ec8b631c1ce10000000a1553f7/content.htm]
    I hope this is usefull.
    Wim

  • What is the RFC for public ipv4 ranges?

    is there an RFC for public ipv4 ranges? I understand RFC 1918 is for private ipv4 ranges

    After a very fast check on http://www.rfc-editor.org/rfc-index.html  I find this:
    RFC 1366 Guidelines for Management of IP Address Space
    and subsequent RFC that obsolete one another
    Bye,
    enrico.
    PS please rate if useful

  • Open sales order value for credit check need to be changed (S066)

    Hi all,
    I need to change open sales order value which is already there in S066 table.
    Previously we had used open order value for credit check. Open order values are already updated in the S066 table.
    Now we dont want to consider open order value for credit check (which is already included in the credit exposure field in FD32).
    When we create sales order system is taking old open order value for credit. Now i have changed not to update open order value for credit check. Now its not updating open order value. But my issue is how to change existing or (previous) open order value for credit?
    Can i change S066 table data directly to '0'. Is it advisable to chage open order value directly from this table?
    Please advise me.
    Regards,
    Babu
    Edited by: babs on May 19, 2010 4:26 PM

    Hi Babs,
    If you doesn't want to reflect the open order value in the structure for this order value ,If the order is not processed kindly delete the line items and the order. Then save the document. Then try to see the structure S066.. This will be modified.
    If you want to modify the value then follow the below process.
    Otherwise delete the line item in the order and change the pricing date and the document date. Re enter the line item again so that it will take it up the new changes.
    I hope it will help.
    Regards,
    SK

  • Incoming orders in COPA not working if Sales Order blocked for Credit Check

    Hi all,
    We need to build a report showing all incoming sales order by entry date and/or change date (change of values or quantities later on). COPA allows to do this, but the problem is that COPA line item table is only updated if the sales order is released from credit check (VKM3). I am looking for a solution to be able to record sales orders in COPA even if they are still blocked for credit check. By doing that we will be able to report all sales orders entered from COPA and provide basis for commissions calculation to the business.
    I have investigated possible COPA enhancements like COPA0005 but it doesn't seem to be used at the time of sales order save.
    Thanks.

    Hello ,
    Thanks for the reply
    As you said , the credit check in the service order is information message "Credit check (maximum percentage for ope
    exceeded)" .
    If you enter and come out this message then one more message will come , i.e., "The business transaction can not be carried out" detail message -  System status CNOK is active (ORD XXXXXXX).
    with the above message , system will not allow to do the Service order release.
    In this particular case , we have done the VKM1 for the sales order to unblock the order from credit check . But again system is checking the credit check at service order (created w.r.t sales order) . we are not able to control this .
    we also suggested the solution to the customer , saying removal of credit check for service orders . But customer requires credit check to happen at both the documents.

  • Txn for cancelled checks

    Hi Friends,
    Can u please suggest me the Txn used for cancelled checks in SAP .
    Thanks n Regards,
    S.Agarwal.

    Hi
    LI05     Inventory History for Storage Bin
    LM55     Print Storage Bin Labels
    LP22     Replenishm. Planning for Fixed Bins
    LS04     Display Empty Storage Bins
    LS05     Generate Storage Bins
    LS06     Block Storage Bins
    LS08     Block Storage Bins by Aisle
    LS10     Generate Storage Bins
    LS25     Display Quants per Storage Bin
    LSET_BIN_COORDINATES     Maintain Storage Bins by selection
    LT343XYZ     Copy Storage Bin Definition Rules
    LT343XYZA     Maintain Bins by Definition Rule
    LX01     List of Empty Storage Bins
    LX03     Bin Status Report
    LX05     Block Bins in Bl.Storage w.Time Lim.
    LX15     Selection of Bins for Annual Invent.
    LX16     Selection of Bins for Continuous Inv
    LX40     Material Situation Prod. Storage Bin
    LX41     Bin Status Report WM/PP Interface
    LX45     Verification Field in Storage Bin
    rwd if useful
    rgds
    BV

  • How to use multiple languages at the same time for spell checking?

    I use two different languages all the time and words are mostly so different (English and Finnish) that I could have spell checking on for both languages at the same time.
    Now it seem to allow to select only one language at the time and I have to switch back and fort zillion of times per day.

    Thanks for the quick answer.
    The Dictionary Switcher doesn't seem to work with Finnish language, it doesn't detect it at all to be one of the choices although in the Firefox context menu Languages -> Finnish/Finland is shown.
    Also, if it would work, I would need to get rid of multiple EN_* langauges. I just need EN_UK or EN_US, not all 22 different EN_*.
    One option would be to create a custom dictionary, which would have words from both languages. The next task is then to find out how to make this kind of custom ENFI-dictionary, which would have words from both English and Finnish languages.
    Finnish may be a some kind of special case for spell checking anyway, because the support is in its separate plugin:
    http://voikko.sourceforge.net/

  • Why can't I use my Mac Book pro for cashing checks like every one else uses their iPhone and iPad? I am a grandmother and in the past 4 years I have purchased 4 MacBook Pros and 1 iPad for my children and grand children.

    I would like to be able to use my MaBook Pro for cashing checks lie the I phone and I pad. Why isn't this feature included?

    This has nothing to do with Apple.  As BobTheFisherman indicated, your bank needs to create an App for the Mac to do this.  These types of applications tend to be limited to mobile devices as they are a bit easier to maneuver for taking photos.

Maybe you are looking for