Function module for updating COBRB table
Hi,
Is there any function module to update the entries in COBRB table.
I have already tried the following but it's not updating ithe entries:
1) k_settlement_rule_fill : get the objnr from PRPS and use it for CORBA and COBRB
2) k_settlement_rule_delete : using objnr only
3) k_posting_rule_insert
Regards
Prabhat
Hi,
Please check this FM K_SETTLEMENT_RULES_UPDATE.
Check FM AUC_SETTLEMENT_POST for sample codes.
Regards,
Ferry Lianto
Similar Messages
-
Bapi Or Function Module for Updating a table
Can u Plz let me know , is there any bapi or function module to update few fields of a standard table using an internable.
Hi Shiva Kumar Tirumalasetty ,
There is no FM / BAPI to update directly to any SAP tables . SAP won't suggests to develop a FM/BAPI like that , as it will cause some data inconsistency problem .
We have to search and find BAPI's/ FM's for requirement specific if not exists then need to think about the alternate options (LSMW/ BDC etc..)
Hope this answers your question.
Thanks,
Greetson -
Creation of function module for updating the ztable
Hi,
I am sending the requirement for ceation of function module for updating the ztable.
Requirement----
Table Updation rule (New record)
While creating a new record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO-------> Sales Delivery no in case of sales orderShipment no in case of transfer order
UNAME----
> User ID
ZORDTYPE----
> SALEOR in case of sales orderTRANSF in case of transfer order
ZREFDOCNO----
>Sales Order no in case of sales orderPurchase Order no in case of transfer order
ZREFDOCNO1----
>Delivery no in case of transfer order
The table handling function will calculate the following fields
Table field Probable Values
ZREQNO----
>Running serial number (incremented by 1 for each new record)
ZREQDAT -
>System date
ZREQTIME----
> System time
ZSTATUS----
>OPEN (for all new records)
Before inserting a new record the table handling function will always check if a previous record exists for the same order / shipment no. if record exists the function will not insert a new record.
Table Updation rule (Status Update)
While updating a record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO----
>Sales order no in case of sales orderShipment no in case of transfer order
ZSTATUS----
>CANCEL if cancellation successfulERROR if cancellation not possible (order already processed)
The table handling function will calculate the following fields
Table field Probable Values
ZSTATDAT----
>System date
ZSTATTIME----
> System timeDo you have to create/update new record in Ztable through Function Module ?
or you need to write FM only for validation?
Any how, you need to create a Program with Input values for the fields of Ztable, and for rest of fields the Value can be calculated based on input as per your requirement.
Let me know clearly what exactly u need ?
Regards,
Kiran -
Bapi function module to update PRPS table
Hi ,
Presently i have a requirement which needs to update some data from ZIOS table into PRPS table. Can any one tell me what is the Bapi function module for updating data into PRPS table.
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Thanks,
Satish Raju
Edited by: Alvaro Tejada Galindo on Jan 12, 2010 11:46 AMThese ZZ fields are specific to your application, use the EXTENSION parameters.
Look in BAPI_PS_INITIALIZATION documentation, there is an explanation how-to fill specific fields.
For the BAPIs used to create and change project definitions, WBS
elements, networks, activities, and activity elements, you can
automatically fill the fields of the tables PROJ, PRPS, AUFK, and AFVU
that have been defined for customer enhancements in the standard system.
For this purpose, help structures that contain the respective key
fields, as well as the CI include of the table are supplied. The BAPIs
contain the parameter ExtensionIN in which the enhancement fields can be
entered and also provide BAdIs in which the entered values can be
checked and, if required, processed further.
CI Include Help Structure Key
CI_PRPS BAPI_TE_WBS_ELEMENT WBS_ELEMENT
Procedure for Filling Standard Enhancements
Before you call the BAPI for each object that is to be created or
changed, for which you want to enter customer-specific table enhancemen
fields, add a data record to the container ExtensionIn:
o STRUCTURE: Name of the corresponding help structure
+o VALUEPART1: Key of the object + start of the data part+
o VALUEPART2-4: If required, the continuation of the data part
VALUPART1 to VALUPART4 are therefore filled consecutively, first with
the keys that identify the table rows and then with the values of the
customer-specific fields. By structuring the container in this way, it
is possible to transfer its content with one MOVE command to the
structure of the BAPI table extension.
Note that when objects are changed, all fields of the enhancements are
overwritten (as opposed to the standard fields, where only those fields
for which the respective update indicator is set are changed).
Therefore, even if you only want to change one field, all the fields
that you transfer in ExtensionIn must be filled.
You have to use these parameters in BAPI_BUS2054_GETDATA as well as in BAPI_BUS2054_CHANGE_MULTI.
Regards -
Any Bapi or function Module to update standard table
Can u Plz let me know , is there any bapi or function module to update few fields of a standard table using an internable.
I don't know if any FM exists for your requirement. But you may like to copy it into a custom table and modify it according to your enterprise needs.
-
Function module for updating vendor:ADRC table
Hi all,
Please guide me how to update the database ADRC with using function module.
I need to use this function module in IDOC inbound.
Thanks.I am not sure about dependent database tables....but definitely the following BAPI will update dependent database tables also...
BAPI_ADDRESSORG_CHANGE
Refer the below link for using this BAPI...or search in SCN..
http://abap.wikiprog.com/wiki/BAPI_ADDRESSORG_CHANGE -
Function module for updating the values in table VTTK
Hi,
I am working on a report in which I need to update the value of field tdlnr of table vttk for a particular shipment number. I need to do this using functional module and I am not been able to find one. If anyone knows answer to this plz help.
Thanks in advance,
Priyanka.As noted above, RETURN table must be supplied empty, it is for BAPI to return the messages back to the calling program. You simply need to define an internal table, pass it to BAPI as is and then analyze this table after the BAPI call. For example:
DATA: BEGIN OF it_return OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF it_return.
CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
<...>
TABLES
<...>
return = it_return.
LOOP AT it_return.
MESSAGE
ID it_return-id
TYPE it_return-type
NUMBER it_return-number
WITH
it_return-message_v1
it_return-message_v2
it_return-message_v3
it_return-message_v4.
ENDLOOP.
Hope this helps. -
BADI or function module for updating open purchase orders
Hi all,
Does anyone know of a BADI or function module which can be used for updating item prices in open purchase orders?
All helpful answers are highly appreciated!
Regards,
MV1 ) execute this program in se38 .enter the input as transaction code for which you want list of User
Exit.
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP® User Exits exists.
*& Tables
TABLES : tstc, "SAP® Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP® Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP® Modifications
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
2) Second way is to go to transaction code SE93 .enter transaction code click on display.
There you will see the package. Copy that package name.
Go to transaction code se84
Enhancements -customer exits-enhancementsu2014enter package there and execute.
You will get list of exits.
3) BAPI for PO change is
BAPI_PO_CHANGE -
How to create function module to update z tables?
Hi,
I am new to ABAP. I checked the forum but did not find relevant solutions.
I have 2 z tables - ZFLIGHT and ZCUSTOMER. I have a few entries in each table.
I want to write a report to update the entries in the table using function modules. For that I have created a function module - zflight_fm and also a function group- zflight_fg and assigned the function group to the Fm. I do not know how to proceed further, what to put as import, export parameters, tables, changing etc. Further I want exceptions to handle the successful update of the entries.
Thanks and regards,
SmruthiSteps:
1) Changing --->a) Zflight TYPE ZFLIGHT(DDIC Ref) OR Zflight TYPE ANY TABLE
b) ZCustomer TYPE ZFLIGHT(DDIC Ref) OR ZCustomer TYPE ANY TABLE
2) Execptions:
a) Upload_failed_Flight
b) Upload_Failed_Customer
3) Exporting ---> a) Information what rows are uploaded
Source Code:
Insert Zflight from Zflight(changing parameter).
If insert failed
RAISE Upload_failed_Flight.
endif.
Insert ZCustomer from ZCustomer(changing parameter).
If insert failed
RAISE Upload_failed_Customer.
endif.
Regards,
Gurpreet -
Function module for updating EIPO-STAWN
Hi all,
I need to update the standard table EIPO with the field STAWN. If there are any Function Modules existing for this, please do let me know.
Your inputs are greatly appreciated.
Thanks in advance,
Vamsee.Hi,
It looks like there is no FM available for this. Instead please check the following link.
Foreign Trade Data
Thanks
Ernesto. -
Hi, Bapi or function module to update RBCO table from an internal table.
I have a requirement to update RBCO table from an internal table. is there any Bapi or function module or any other method other than update, modify statements.
Moderator message: Welcome to SCN!
Moderator message: please do more research before asking, show what you have done yourself when asking.
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
Edited by: Thomas Zloch on Jul 12, 2011 12:28 PMI don't know if any FM exists for your requirement. But you may like to copy it into a custom table and modify it according to your enterprise needs.
-
Function Module for updating Username( last changed by field)-
Hi,
Do we have any standard RFC function modules/BAPI available for updating a field in R/3 ( for eg:"last changed by field" of an item of a notification(plant maintenance).
As the FM is an RFC FM, it always updates this field with the RFC user name.My requirement is to update this field by a value(user name) which is either keyed in in the FM or an SAP login name.
This requirement is for a scenario in the mobile application as I need to update the notification item details by the user(mobile user- the mobile user name is available in R/3 also.) who is updating the notification item in the mobile.When synchronisation is done ,the filed gets updated by the RFC username which is used to exceute the BAPI wrapper..
Do we have an option to change the user name?
Regards,
Muralikrishna THi
try these.
READ_TEXT_INLINE-Like READ_TEXT. In addition, it passes the first few text lines to a second lines table.
EDIT_TEXT_INLINE-----Merges the inline lines with the other text lines and calls the text editor.
Thanks,
usha -
Function module to update LINV table (MENGE)
Hi all,
I am new to SAP ABAP.
Currently working on enhancements and screens . I had to update the manually entered count quantity field (LINV-MENGE) in screen, i used UPDATE statement earlier for the same which is not standard method SAP programming .
Please, can someone tell me the Function Module used for the same and the code snippet.
Answers will be appreciated
ThankyouHi all,
I am new to SAP ABAP.
Currently working on enhancements and screens . I had to update the manually entered count quantity field (LINV-MENGE) in screen, i used UPDATE statement earlier for the same which is not standard method SAP programming .
Please, can someone tell me the Function Module used for the same and the code snippet.
Answers will be appreciated
Thankyou -
Function modul for updating field contact in tab but000
Hello experts,
does anybody know a fm in order to update the field
'contact' in tx bp , in tab strip status ?
I have to update this field for many cp and in tx bp I only
can select this field on tab strib status.
Now I want to make a programm and so I need a fm.
Thanks for help
GerdHi Gerd,
Look at function module 'BAPI_BUPA_CENTRAL_CHANGE' . The importing parameter CENTRALDATA has got field CONTACTALLOWANCE and that is what you are aiming to change.
Don't forget to commit the changes.
Cheers,
Surendar
Edited by: Surendar Sangwan on May 15, 2008 3:10 PM -
Function module for move internal table records into MSexcel file
Hi all,
Tell me the function module which is used to
move internal table records in to MSexcel file.
Give the sample program...Please search the forum for FM "GUI_DOWNLOAD" You will get tons of threads with sample code.
Also take a look into SAP_CONVERT_TO_XLS_FORMAT
Thanks
Maybe you are looking for
-
When I connect my iPhone to my computer it is not recognized by iTunes.
I have tried multiple ways to try and fix the problem but nothing is working!!!! Please help!!!!!! I have an iPhone 5 and have windows 8 on my computer.
-
Very Slow SMB Performance with DroboShare
Hi there, We have a big issue with a DroboShare NAS device connected to a Drobo Drive (FAT32): If we connect to our DroboShare NAS directly via LAN, the performance with SMB is terrible. Browsing folders takes minutes until the contents (15 items) ar
-
How to encode a fileHandler to output french characters ?
Hi everyone, I'm trying to encode a fileHandler to create a file that contains french special characters (è, é, . . . .). I tried the following code: fileHandler.setEncoding("ISO-8859-1"); and the following fileHandler.setEncoding("UTF-8"); But still
-
New at SJSC - login page process
Hi folks! I came from MS ASP.NET world and I'm trying to learn SJSC. I'd like to implement a login page process and restrict *.JSP internal pagas. Do you know where I can find an article or some tutorial do guide my on this learning process? Thanks!
-
ESD or SAP Website for updates?
We use PrintForm, Ace and Presort. As far as I know, the last official word was that we should use the old ESD for directory updates and to download software, but this would be migrated to the SAP website 'soon'. Has this actually happened? There is