How to pick the entries from a function module fields values
hi guys,
i have a function module 'BP_JOBLOG_READ.when i execute this for a particular jobname,i will get some entries.again if i click those entries,i will get some fields with values.in that one field 'text' contains total credit amount(purely numeric).how to fetch this value into internal tabel and update into my internal table.very urgent.plz provide some coding.rewards wil b there for helpful sggestion.
Mahesh,
Use the FM BP_JOBLOG_SHOW to display those job logs.
Hope this is helpful.
Thanks,
Naren
Similar Messages
-
How to add the entries and how to delete the entries from custom Z-table?
Hi Experts,
My requirement is I need to add the entries from program to three custom z-tables . Assume as zabc1,zabc2,zabc3.
Here how to add the entries from program to Z-table.???
And one more requirement is I want to provide a deletion checkbox in selection screen . Initial it was unchecked. If I am giving tick mark then the entries should be deleted from above custom Z-tables. this all will done in backgroung job?
Could you please guide me the logic how to crack this???
Let me know if you need more Info
Thanks
SanjuHi Sanjana,
What you can do is to use the ABAP keyword INSERT or MODIFY to add or modify records to a given database table. Here are the syntax taken from SAP documentation:
*Insert Statement
INSERT dbtab
Syntax
INSERT { {INTO target VALUES source }
| { target FROM source } }.
Effect
The INSERT statement inserts one or more rows specified in source in the database table specified in target. The two variants with INTO and VALUES or without INTO with FROM behave identically, with the exception that you cannot specify any internal tables in source after VALUES.
System Fields
The INSERT statement sets the values of the system fields sy-subrc and sy-dbcnt.
sy-subrc Meaning
0 At least one row was inserted.
4 At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.
The INSERT statement sets sy-dbcnt to the number of rows inserted.
Note
The inserted rows are finally included in the table in the next database commit. Up until this point, they can still be removed by a database rollback.
*Modify Statement
MODIFY dbtab
Syntax
MODIFY target FROM source.
Effect
The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.
System fields
The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.
sy-subrc Meaning
0 At least one line is inserted or changed.
4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table.
The MODIFY statement sets sy-dbcnt to the number of processed lines.
Note
The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback.
Hope it helps...
P.S. Please award points if it helps... -
How to delete the entries from NAST table
Hi,
Please help me out by providing any function module that delete's the entries from hte NAST table.
Regards,
Kiran.LREPORT ZSCD_TEST13.
delete from nast where VSTAT = '1'.
=====
If you see the FM : NAST_DELETE_OBJECT, its only useful when NACHA = 7 (i.e. message transmission medium = Simple Mail)
For others its not useful.
We had similar issue few days back and after long RnD, we straightaway deleted the entries using the Zprogram.
regards,
Edited by: Pranu Pranu on Aug 19, 2008 1:42 PM -
How to access the screen from one function group to other function group
Hi Experts,
How to access the the screen from one function group to other function group.
Please help me on this , Bcoz it is client requirement i need to finish this urgently.
Please
Thanks
BasuHI ,
You can do a call transaction or submit and return
Regards,
Sooness. -
How to take back the control from RFC function module to calling program
Hi,
In our system landscape, more than 200 child systems are connected to Solution manager(SMP). I have copied a RFC enabled function module into all the child systems and calling that FM from Sol Man in sychronous mode.
Here goes my code in SolMan.
LOOP AT it_dest INTO wa_dest.
CALL FUNCTION 'Z_GET_LOGIN_DETAILS' DESTINATION wa_dest-rfcdest
EXPORTING
date_fr = s_date-low
date_to = s_date-high
TABLES
tab_data = it_val
EXCEPTIONS
communication_failure = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc EQ 0.
* Updates zuserlogon
MODIFY zt_logon_det FROM TABLE it_val.
COMMIT WORK.
WRITE:/'RFC for Destination', wa_dest-rfcdest, 'succesfully updated.'.
ELSE.
WRITE:/'RFC for Destination', wa_dest-rfcdest, ' failed.'.
ENDIF.
ENDLOOP.
Few child systems are very slow & takes more than 20 minutes(Many of the times system hangs) to return the result. But I should not wait for so long. Even if the child system doesn't return any values in 5 minutes I shoud continue with other system ignoring the current one.
I tried calling the FM in asynchronous mode(STARTING NEW TASK) but no success because only 6 DIA processes possible but as I said I have more than 200 systems connected to SolMan.
Please help me resolving this problem.
Thanks,
PrathapIf there are only few child systems with bad response time, use asynchronous call using a CALL FUNCTION func STARTING NEW TASK task DESTINATION dest PERFORMING subr or CALLING meth ON END OF TASK. Count asynchronous calls still running/waiting (increment a counter when creating a task (not the one used for task id). In the form/method performed at end of a call decrement the counter. When counter is lower than a limit, 4-5 if 6 processes (*), perform an asynchronous call else perform a synchronous call or wait until the counter falls below the limit.
Regards,
Raymond
(*) Use SPBT_INITIALIZE at start of program to get actual number of free/available processes. -
How to delete the entries from the transport request
i need to delete the entries programatically from the transport request for all the entries which is exists in the package for the tables e070 and e071.
Hi,
I think you need to have authorization for that thru auth group SA.
One more thing is where ever its created like source client only you can do if u have authorization.
Regds
Sivaparvathi
Please reward points if helpful... -
How to catch exception thrown from a function module?
Hi all,
When we are calling a function module from JSPDynpage setting some import parameters, If in some case an exception is thrown in the function module. How can we catch the same exception in the JSPDynpage program?
Thanks & Regards,
RaviHi Ravi
Try this
try
Object retMsgs = output.get(bapiretrunmsgobject);
if(result != null )
IrecordSet rmsg = (IrecordSet) result
catch(Exception ex)
printException(ex, "Error getting function result");
Lemme know for any further questions.
Regards
Praveen -
How to extract the data by using function module?
hi experts,
what are the steps i have to fallow to extract the data from R/3 by using FUNCTION MODULE.
thanks & regards
venkatHi,
Extracting data from R/3 extract structure thru function modules
You can proceed with create function module using SE37, thereu2019s sample in system RSAX_BIW_GET_DATA_SIMPLE,
You need to know the logic how to populate the structure,
after that RSO2, create datasource specify extract structure and
function module,
activate and replicate to bw.
Chheers
Raj -
How to call the Report program into Function module
Hi Experts,
Actually I want to create the DataSource. But I have only the ALV report program. I need to create function module but I dont know how to call the ALV report program using in function module
So could you please any one send the Document or step by step method?
Advance Thanks,
SathisIf the report is just based out of a table than create a Generic Extractor using View.
If its an InfoSet query than create a Generic Extractor on that InfoSet.
If its an ABAP report than create a Generic Extractor using FM
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33 -
How to execute the process chain using function module
Hi,
How can we execute the process chain when there is any process failed. For ex. when we are running many processes. when loading fails in local process chain, after fixing this error, how can we execute the rest of processes. Can we execute the rest of processes using any function module. Kindly guide me.Hi,
Chk the weblog.
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3149. [original link is broken] [original link is broken] [original link is broken]
Regards,
Balaji -
How to capture error message from standard function module
Dear friends
when i execute standard function module in finance , i am getting error message , pls check the below screen shot,
how to capture the below error message so that i have display in my webdynpro component
Thanks
VijayaHello Vijaya,
Incase of BAPI's they have a return table parameter T_RETURN. Just read that return table to get the error message.
Incase of normal function modules, there will be exceptions raised for the message used inside the function module. Just read the sy-subrc after the FM and based on the sy-subrc value find the respective exception raised.
May be you can try like this, whenever the message is raised it will be stored in the system variable.
CALL FM.
check for the system variables.
sy-msgid = Message ID of the latest message raised.
sy-msgno = message number of the latest message raised.
sy-msgty = message type of the latest message raised.
sy-msgv1 = variable1 of the latest message raised.
sy-msgv2 = variable2 of the latest message raised.
sy-msgv3 = variable3 of the latest message raised.
sy-msgv4 = variable4 of the latest message raised.
Regards,
TP -
How to find the signature of a function module
Hello,
I have a requirement tofind the signature of a given function module during runtime , If i get the path also it should be fine . Kindly let me know is there any way to find this.
Thanks & Best Regards,
VinuthaHello,
Signature of a function module : to find all the importing, exporting , changing, paramters or its path for example
importing-name
exporting-name1
call function 'FM'
exporting
name1
importing
name
Thanks & Best Regards,
Vinutha -
Web Services from ABAP function modules return values- leading zeros
I am using several web services from SAP CRM (5.0) that were created from Function modules ( I am assuming that that they are in ABAP).
I can call the web services fine and they work as expected, but I am seeing a lot of leading zeros in the return values of fields in tables from the Web service.
The ABAP ers are telling me that they cannot see the leading zeros.
So my question is where these are appended to the values in the whole process. When I execute the Function Module in SAP CRM from transaction SE37 I can see the leading zeros. So I think that this is something that has to be handled by the ABAP ers and not in the client consuming the web service.
Are the functions in SAP CRM that can remove leading zeros for fields in a table (that is an export parameter?)
JawaharHello Jawahar
If you run your (RFC-enabled) function modules using the SAP-GUI (i.e. in dialog) then the GUI automatically replaces leading zero when the function module returns any data. However, calling the same function module remotely you will always see these leading zeros.
These so-called conversion exits are defined as attribute of domains in the ABAP dictionary. If the function module used for the WebService is a standard fm then you have little chances to get rid of the leading zero. Perhaps the WebService has some attribute to suppress conversion exits or activate them when retrieving the data.
Regards,
Uwe -
How to see the exception raised in function module...
DEAR ABAPERS,
how can i see that exception, when iam excuting
Regards,
veerahi Veera,
Based on SY-SUBRC value we can handle those exception in this way ..
if sy-subrc = 1.
raise file_write_error.
elseif sy-subrc = 2.
raise gui_refuse_filetransfer.
elseif sy-subrc = 3.
raise gui_refuse_filetransfer.
Regards,
Santosh -
Like many others after I installed Maverick I found that all the calendar history has been lost and most of the forward info has also been lost. Also in order to get calendar, contacts and notes to sync with the iPhone I have had to move to iCloud. Contacts and notes sync fine. new calendar entries sync ok. My iPhone has all the calendar entries that were on the Mac before I installed Maverick. So far iCloud has not overwritten them nor have they synced onto iCloud.
How can I get all the entries from my iPhone onto iCloud, without losing the only copy of my calendar from my iPhone?
Thanks Apple for deciding to take over my privacy. I do not want this data stored on a US based server. Fortunately Mail still syncs via my own email provider. I guess Apple will find a way to stop that soon too!Greetings Nefertiti72,
It seems you are experiencing an issue with contact syncing and management. It seems you've removed an email account which contained a number of contacts that are not associated with your iCloud account. I have linked to a knowledge base article which provides more information about iCloud contacts syncing:
Get help using iCloud Contacts - Apple Support
Learn what to do if you’re having issues using iCloud Contacts. For example, you might make changes to Contacts that don't update across all of your devices.
You may want to consider importing the contacts from the email account you removed. You can do it easily by following the steps in this article:
iCloud: Import a vCard
You can import an electronic business card, also called a vCard, into iCloud Contacts. If the vCard contains contact information for more than one person, each contact becomes a separate entry.
In iCloud Contacts, choose Import vCard from the Action pop-up menu , which appears at the bottom of the All Contacts list or a list of group contacts
Select a vCard to import.
The contacts from the vCard are added to the All Contacts group in Contacts. You can add the contacts to any other group by dragging them to the desired group.
Thank you for contributing to Apple Support Communities.
Best,
Bobby_D
Maybe you are looking for
-
How do i delete an old device from icloud
How do I delete a device that I no longer have from my icloud account. when i try to delete it, i get an error message saying the backup cannot be deleted because it is in use.
-
Adobe Acrobat 9 Professional Extended and Solidworks 2010
Acrobat 9 Pro Ext. states a conversion error when converting solidworks documents saved in SolidWorks 2010. Any fix? Dan Kuras [signature deleted by host]
-
has anyone else had this problem? i cant get to any other screen in itunes other than "restore this ipod shuffle" in itunes.
-
Why dimension tables are denormalized?
why dimension tables are denormalized? Duplicate post Edited by: Pravender on Jun 17, 2011 12:31 AM
-
Business object for FB08