React on a transaction with user specific code

Hello,
I am new in the field of SAP development and I have some questions about the general strategy.
It's the task to react on a transaction in SAP (an order generated by a user in the SAP system). After the order is done I have to control a Lego train (It's for a university project for education purposes). Therefore it's necessary to call own code.
I searched a little bit in the SAP help and found these possible solutions: BAPI's and RFC or the IDOC-Interface. So my first question: where can I find the BAPI C++ library for download? There is no clue in the help.
And my second question: is there a way to inject own functions e.g. via DLL? When I understand the BAPI/RFC right, than I have to program a stand alone server and SAP system calls the server. So I need a "real standalone, external" program. That's a little bit overhead for my concerns I think. So is there a way to insert a function like a plugin and than to call the function like a trigger?
And a third suggestion was to use a shared folder for data exchange via files. Is this (simple) solution possible? I found nothing during my searches about this.
Thx a lot for your help!
Best regards
Pellaeon

Hi Gilad,
There are some ways to call BAPI functions on SAP. First one; you can use librfc32.dll for non-unicode and librfc32u.dll for unicode applications, in order to call function modules remote on SAP. Second one; you can create C++ BAPI proxy classes by using SAP Assistant which is delivered by SAPGUI. This is hardest way. Since simplfy the development, I strongly recommend that you develop "Tcp Server application". You can find several samples on internet, about it.
Second question is "is there a way to inject own functions e.g. via DLL?". The answer is yes but no. Do not confuse regarding my answer. This is because, you can use remote threading (named as injection) in order to perform functions on the instance. I said "no" also, because kernel functions are not well documented. So, SAP do not support plug-in development at kernel level by 3rd parties (unless you deal with SAP). I worked about remote threading issue on SAP, previously. All in all, it depends how you have dominated know-how about remote threading.
Third answer is; the best way to be read files by SAP is storing files on application server level. So you can share that directory and perform your functions successfully with the required authorizations.
Best regards,
Orkun Gedik

Similar Messages

  • How can I print from my iPhone or iPad to a Ricoh printer with User Log Codes turned on?

    Our company recently purchased a Ricoh printer and implemented the User Log Code feature to track whos printing and how much. Our biggest problem is that no apps we can locate allow for log code input and therefore no mobile devices can print. Is there any work around for this? Any app that allows the input of log codes?
    Thank you!

    That's way beyond the scope of this forum. There are, though, print server monitors that would allow you to track printing from workstations on your network that are not connecting directly to the printer via WiFi.

  • How to Substitute CoA GL Text with User specific GL Text in reports

    Hello Experts,
    We have one Chart of Account shared by many countries in different company codes. So, it is not possible to change English text of GL accounts for country specific requirement. I had a way out by making country chart of account but customer did not want it to avoid complexities. Therefore, is there a way to maintain India specific text for some selective GLs and replicate it in the reports. Users are fine with doing entries with existing text. Only problem is with reports to show it to external parties.
    Please advise and send your expert comments!
    Thank you,
    With Kind Regards,
    Naresh B. Pandya

    If you put a formatting trigger on any item or frame and return FALSE, it will disappear.
    So the totals need to be within a frame which has a trigger which returns false if text file is chosen.

  • Unbalanced Transaction with Cenvat Tax Code

    Hi All
    I  have a problem with A/R Down Payment Invoice.When i am trying to add the invoice with Cenvat related Tax code ( BED+VAT)the system is throwing an error which reads as follows:
    " Unbalanced Transaction Message 131-91" 
    But when i am changing the tax code and selecting only Vat Code The A/R Downpayment Invoice is added succesfully.
    Can anybody please throw some light on it what is the problem.
    Can we use cenvat related Tax Code with A/R Downpayment Invoice or not..?
    need your help
    warm regards
    anand

    Hi Jeyakanthan
    Thanks for the reply.Actually our client has a requirement.They do big projects of construction
    as a result they receive payment in phases.The payment terms is like
    1) 10% advance on receipt of order
    2) Raise Invoice  for 30% on approval of drawings + 100% taxes & Duties (Cenvat)+ freight
    3) Raise Invoice for 40% after Initial inspection
    4)Raise Invoice for 20% after final inspection.
    Note: Payment terms differ with every order.
    For this scenario i think A/R downpayment is ideal.Now when invoice is raised  for 30% we are required to show 100% taxes and duties(Cenvat) in the A/R downpayment invoice.How to achieve this.
    I have to make an invoice (Print layout report) where i have to show
    Total Sales               100%
    Claim Value                30% + 100% Taxex and Duties + freight
    Retention Money         70%  i.e Due from Customer
    Your view on this would be of great help..Any alternate method to achieve this.
    waiting for your reply.
    warm regards
    anand

  • Deploying Printers with User Specific Settings via Group Policy

    Good Morning All,
    We are getting ready to switch our print server over and would like to find an easier way to update everyone's printer list.  The issue we are running into is that we have a few large copiers that use a user id number to validate any print jobs.  Is
    there a way to set that up in GPO so that it will give the correct code directly?  I cannot find anywhere that I can adjust the printer preferences.
    Thanks,
    Brent

    Hi
    So you just want to update the TCP port with the new IP instead of deploying new drivers from the server?
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Batch folder creation with user specific sharing and rights properties

    Hello all,
    I need to create folders for over 120 users.
    Each folder has to have specific rights per user.
    the basic structure goes
    -sharepoint
    --USER1
    *---(user1) submit*
    +(drop box - everyone, (user1) - read right + owner, admin group - read right)+
    *---(user1) share*
    +(everyone - read only, (user1) - read right + owner, admin group - read right )+
    ---(user1)
    +((user1) - read right + owner, everyone - no access, admin group - read right)+
    --USER2
    ---(user2)submit
    +(drop box - everyone, (user2) - read right + owner, admin group - read right)+
    ---(user2)share
    +(everyone - read only, (user2) - read right + owner, admin group - read right)+
    ---(user2)
    +((user2) - read right + owner, everyone - no access, admin group - read right)+
    bold - folder
    italics - rights
    level of folder
    and so on 120 times..
    this is going to be a tedious task to do by hand and i was wondering if there was anyway to batch process the task. i have user lists already all i need is a way to make it
    Any ideas??
    Thanks
    Message was edited by: adam ramage

    If the directory in which you are going to create the directories is called 'file-enclosing-directory', and the file is in your home directory on the server as "userlist" (one username per line), you can run this as a bash script, or from the command line. You will need to be a user that is able to change permissions within the directory.
    Something like:
    open Terminal
    cd to the folder-enclosing-directory
    for u in `cat ~/userlist`; do mkdir -p $u $u/submit $u/share; chmod 755 $u/share; chmod 773 $u/submit; chmod 751 $u; chown -R $u:admin $u; done
    However, this will cause some problems getting to the interior folders without read permission on the outer folder. ACLs could help, or giving read permission to the $u folder, and having a locked-down third folder inside.
    I hope this helps.

  • How to execute a transaction with a different user from the logged user?

    Hello Experts!
    I'm trying to find out a solution about this scenario: our users need to release a Purchase Order (ME28) and/or a Service Entry Sheet (ML85) in SAP from a WEB based application through TIBCO, but the requirement is to execute this operation with the same SAP User name of the user (with his authorization) and not with the TIBCO user that is logged to SAP.
    Is there someone that could suggest me a real time solution and how to develop it? I really appreciate your contribute and I'm at your disposal for any further information.
    Thank you very much!
    Alessandro

    Hi Rob!
    Thank you for your help, but I can't apply this solution, because we need to execute the transaction with a specific user name and not a generic user, besides our user have different authorization, for example the user Mr. Rossi can release only his Purchase Order but not the PO of another user Mr. Bianchi. Moreover we need to see the PO released/modified from a specif user name. So this is our constraint.
    Bye Ale.

  • User exit code does not execute

    I'm having a problem with User exit code that does not execute yet seems to be set up correctly.
    The User exit is implemented as FM "EXIT_SAPLIPW1_001" in function group XQSM.
    I've tried everything I know of with the CMOD and SMOD transactions, and I suspect some sort of transport error.
    The only clue I can find in comparing the development system (which works) with the test system (which does not work) is that running "Extended Check" in SE80 on function group XQSM fails with the following error:
    "The namespace of program SAPLXQSM has the setting "C" and cannot be tested."
    Has anyone any idea what could have happened?

    Let us try to retrace the steps.
    1. You created a Z project in CMOD and assigned the enhancement IQSM0001 and the component EXIT_SAPLIPW1_001 and activated the same. This is there in the transport.
    2. You double clicked on the include in the user exit and created it. You activated the code and included it in the same transport.
    If you did the above steps, then your user exit should be active in your test system.
    Can you please go to SE10, and list out the objects in your transport? You should see entries in there like below(not necessarily a complete list)
    R3TR CMOD <your project name>
    R3TR PROG ZXQSMU01
    See if you created any of the objects as local objects.
    Srinivas

  • User-Specific Variable in Web Interface

    I have created a manual planning layout with User-Specific variables – one for Sale Group and one for Sales District.
    The variable successfully restricts user access to data when executed in SAP GUI.
    A Web Interface was successfully generated from the Planning Folder containing the manual planning layout described above.
    When I execute planning via the web, all possible values are displayed, even though the User-Specific variable limits this user to a single value for each variable.
    Is there a way to restore the restriction defined in the User-Specific variable ?
    I saw an earlier thread indicating that the “Planning Level” property of the Selector Variable Value for each variable used in the Web Interface Builder had to be set - but that field is protected from input.
    Any insights would be appreciated !
    Thanks,
    Lyle

    Narasimha,
    Each variable was created as :
    -     Replacement Type = User-Defined Values.
    -     Restriction of Values required by User = OFF.
    -     Input Allowed by User = OFF.
    Several users are defined within each variable.
    Most users represent Sales Representatives, with a single value assigned to each – a single Sales Rep is assigned a single Group and District ( i.e one-to-one relationship ).
    The other type user represents a Sales Manager, and includes all the values assigned to the Sales Reps reporting to him.
    When Restriction functionality is turned on, the following error message is received :
    Restrict variable UDSALDST (Sales District - User-Defined) (area ZBILLIC (IC Billings Estimate)) to single value
    <b>Diagnosis</b>
    Variable UDSALDST (Sales District - User-Defined) (planning area ZBILLIC (IC Billings Estimate)) is defined so that the user must restrict the values of the variable (indicator 'Restriction of values required by user' is set). However, you have not defined a restriction.
    <b>Procedure</b>
    Restrict the variable or change the definition of the variable so that restriction is no longer required.
    •     To restrict the variable, choose Goto -> Set variables and search for variable UDSALDST (Sales District - User-Defined) in the list. Make the restriction and subsequently continue the planning session.
    •     To change the variable definition, choose the tab page Variables in the context of planning area ZBILLIC (IC Billings Estimate) and reset the indicator 'Restriction of values required by user'.
    While the first option ( Goto > Set Variables ) seems to defeat the purpose of a User-Specific variable, I tried it.  When I use F4 to determine available values, it displays those previously assigned when creating the User-Specific variable !? – this doe not seem to add any more than I already have.
    The second option effectively puts me back to where I was when I posted the question.
    Of interest though, I noticed when the Restriction functionality was turned on, the “All” value previously displayed as available for selection was no longer available – but the specific values for each of the other Sales Reps continue to be reflected, and this user can select values related to another Sales Rep..
    As mentioned in my original posting,
    I saw an earlier thread indicating that the “Planning Level” property of the Selector Variable Value for each variable used in the Web Interface Builder has to be set – but that the field is protected from input.
    Should this object property be ‘open’ to permit input ?  If so, is there a step or setting that needs to be performed.  Could authorization be an issue ?
    Thanks,
    Lyle

  • BPS User-Specific Variables by Web

    Hi,
    I'm triyng to setup a CC planning interface for my company.
    I configured the levels and layouts and they work fine.
    I run the interface with the planning folders and everything works fine but when I setup the Web Interface tha layout stops working. The message is something like "Variable XXXX can't be specified".
    I'm using user specific variables in the planning level so every user can only see and modificate certain CCs.
    Any ideas?
    Thank you very much.

    Alejandro,
    Sorry, I had been at a new client this week doing a review and it is long hours so have not checked back. 
    The other discussions groups I participate on is e-mail based so only checking here when I have a block of time.
    What type of cost center variable are you using?  on 0costcenter or on the hierarhcy?  Are you using variable with user specific value or with of type authorization or something else?
    did you configure the web interface using web enabled layout or using Web interface buillder?
    Mary

  • Segregation of  global layout and user Specific  for IW38 with Activity 23

    Hi All,
    We have issue that users are able to change the Global Layout in IW38 transaction codes, which is causing lot of confusion for other users. Please can anyone help me to do some investigation around how the access to Global Layout and User-Specific layout can be segregated.
      We would like to achieve below things:
    1)     Can we control provision access in such way users can only change layout specific to them?
    2)     They should not be able to change Global Layout
    3)     List of roles having Authorization object S_ALV_LAYO with activity 23.
    If anyone already faced this issue, can you please let me know how they resolved it
    Thanks in Advance.

    Hi David,
    > The standard S_ALV_LAYO object is, so far as I know, no use for normal day to day end users as it over-rides the restrictions?
    It's up to the business, but ours wanted the managers to set a global layout for all other users to display only... as sort of a standard report.  I agree with you in the challenge of determining who to give the long-term S_ALV_LAYO w/23 global maintenance access.  We used to have this S_ALV_LAYO in every role that contained a report access (honest design mistake), hence that is why we created a separate role contained just S_ALV_LAYO w/ 23 access  --> to managers only. 
    In our generic system role that is given to everyone, we have both S_ALV_LAYO (as blank) and F_IT_ALV (as 01, 02) so all non-manager users are able to create/save local layout & still view global layout.
    F_IT_ALV activity 70 gives the authority to overwrite other's local layout (the "Manage Layout" access), so we only gave 01  and 02.  Be careful here, as giving 03 (display) will make all other activities inactive.
    Best,
    Alice

  • User Specific Transaction Variant

    Hi,
    Can i please have guidelines for Transaction variant creation, specially user specific transaction variant creation along with example?
    Regards,
    Samir Wadajkar

    Dear
    Please see this wiki for useful :http://wiki.sdn.sap.com/wiki/display/Snippets/Transaction%20Variant%20-%20A%20Step%20by%20Step%20Guide%20for%20Creation
    OR
    Go to SHD0
    Enter the transaction code - Enter the transaction variant YXXX under transaction variants tab
    Create - the transaction variant. When you back after creating .... Save all the screens and do a syntax check - this will take you to different screen - Just execute and come back
    You should now be in SHD0 with your transaction code as well as transaction variant.
    Now, go to 'GOTO' on application tool bar - Create transaction variant. Do not check 'Inherit GUI attributes' under classification and check all under GUI SUPPORT
    Execute your newly create Ytransaction
    Go back to SHD0 again and repeat the same process but enter different name than previous one. do the exact same process.
    Create new transaction which means enter different transactio name like if the previous one is yxxx1 ... create this as yxxx2.
    You can take the standard transaction from every user or who you dont want to give by removing the authorization from user master (talk to security people)
    Hope this will be usefull
    Regards
    JH

  • Transaction SE16: Field selection (User-Specific Settings) is NOT working for ALL tables

    Hi Guru’s,
    I have an issue in Transaction SE16, Field selection (User-Specific Settings) is NOT working in Tables (ALL tables).
    Following is the screenshot attached for your kind reference,
    That is in the initial screen of transaction SE16 if I choose Filed Name or Filed Label only the technical details (Field Names) are appearing and not the descriptions like Client, Purchasing Doc, and Company Code Doc. Category Document Type etc…
    Right now I am using ECC6 and EHP7 SAP system.
    Please help me to resolve this issue by implementing any OSS note or User Role creations or any technical changes required in system.
    Hope the requirement is clear and in case need any clarification please revert back.
    NOTE: Right now in Development System we don’t have any successful user to compare the settings.
    Regards,
    Kumar.S

    Thanks Patra.
    Even I searched in SAP portal and couldn't able to find the relevant OSS note.
    Following is my BASIS team response,
    "Only you can view Table Field values from higher release"
    Can you suggest / guide on this comment as well.
    Looking forward to your speedy response.
    Regards,
    Kumar.S

  • Calling a transaction( whose o/p is an ALV) with a specific layout

    We have a requirement where we need to call a transaction (VL10C) whose output is an ALV.
    I have used a SUBMIT PROGRAM(since it is report trans). Now we need to set the layout of the ALV also.
    Any help would be appreciated.

    Hi,
    first, thanks for your reply. I tried this but this does not solve the problem at all.
    The first thing is, that it would be nice to have the mail as executable document. But now i have a mail with an attachment, which must be saved and then executed (both manually).
    -> Do you know how to combine the creation of an executable mail with the executable code coming from SWN_CREATE_SHORTCUT?
    The second thing is, that the values of the parameters are not transported (the fields are empty after clicking the file on the desktop). But the created file looks fine.
    [System]
    Name=PX1
    Description=
    Client=300
    [User]
    Name=EREDLIN
    Language=DE
    [Function]
    Title=
    Command=REBDBU BUKRS=P001;SWENR=10003;SGENR=101;
    Type=Transaction
    [Configuration]
    GuiSize=Normal window

  • User specific CalcRuleDefltDlvCrDt for VL10A transaction

    Hi All,
    In VL10 transaction, currently the default CalcRuleDefltDlvCrDt is coming as 2 (Today and Tomorrow). This default value comes from Profile and scenario.
    I have checked all the exisitn profiles and created a new profile with the value for CalcRuleDefltDlvCrDt as 4.
    But I am not able to default this value for a pertucular user.
    Kindly let me know the procedure so that for a perticular user ID the vale of CalcRuleDefltDlvCrDt should be 4 ( due till tomorrow).
    Please let me know if I have to create new scenario and if yes then let me know how to create a scenario.
    Thanks in Advance.
    Abhay

    Hi,
      No there is no user specific selection of shop paper available.You will have to develop something custom using the implicit enhancement functionality if you require the same.
    Regards
    Narasimhan

Maybe you are looking for

  • My macbook Unibody won't start

    I Got a water damaged MacBook from a friend So i replaced the keybord and now it can turn on. So i Tried to install Snow leopard but it came with an error when i Tried to format the HDD So i thought it was dead So i put another HDD in an it still cam

  • RH 5.5 output does not work properly in RH 7

    I inherited a WebHelp project created in RH 5.5. I have RH 7. When I open the files, make modifications, and recompile them, the output does not work properly once I put it on our hardware box. Those infamous red squares are present and there seems t

  • Setting Infopath Timeout

    Hi Experts, I am accessing a web service from Infopath 2010 and returning some values back to the form (Inside the webservice I am having one remote function call), Where before returning values I am getting an error from Infopath saying "Failed Conn

  • Problem faced when installing oracle 10g

    i faced this problem when intalling oracle 10g in windows xp. this dos prompt opens for 5 min. and then it get closed..after tht nuthing happens. Starting Oracle Universal Installer... Checking installer requirements... Checking operating system vers

  • Send camera photo(graph)s to other iOSers without an account?

    Hello. Is it possible to do send camera photo(graph)s to other iOSers without an account with far away iOSers? I don't mean nearby option that I saw in iOS v8.1.3 on both iPhone 6 Plus/+ and iPad Air. Or does it require an account (e-mail, Flickr, et