Re: FM for updating the ADR6 table
Hi,
In ME21N, I add an email to the vendor PO.
Can someone tell me where can I find the FM that updates this into table ADR6?
Thanks
Bye
Hello,
Please use the below function Module for updating ADR6.
1. ADDR_SAVE_INTERN
Reward points if helps.
Thanks,
Krishnakumar
Similar Messages
-
Need a PLSQL API for update the oe_order_headers_all table
Hi all,
I need a PLSQL API for update the oe_order_headers_all table.
Anyone know please help me.
Regards,
M.Soundrapandian.Use the Process Order API to update this table.
Note: 746787.1 - Process Order API In Order Management
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=746787.1
Oracle Order Management Open Interfaces, API, & Electronic Messaging Guide
http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115omapi.zip
Oracle Integration Repository
http://irep.oracle.com -
Req as follows :
1. i need to create one method in a assistance calss for updating custom table .
2. now i have to pass the multiple entries to that table then inside the method based need to update the Ztable. based on this entries
3. My internal table is having 2 fields ( Customernumber (key field) , Shiftloc ).(Multiple entries ex : 500)
based on customernumber need to update the new shiftloc in my custom table.
Can any one give some inputs please. i have doubt can we pass mupltiple entries (internal) as a importing parameter to the method?
Cheers,
VenuHi rama,
thank you for your promt reply.
i have one more query. Here i need to update the only Shipt to adress for particular customer number.
i have written the code as below. Please clarify this code will work for my requirement.
method UPDATE_SHIPTO.
data : Lt_contract type ty_update_shipto_t.
data : ls_contract like line of Lt_contract .
REFRESH : Lt_contract.
lt_contract[] = LT_DATA[].
loop at lt_contract into ls_contract.
* update Zcustom SET ship_to_adress = ls_contract-new_bp
WHERE cust_no = ls_contract-custnum
CLEAR : ls_contract.
ENDLOOP.
COMMIT WORK.
endmethod. -
Bapi for Updating the confirmation table(EKES)
Hi,
Could anyone let me know the BAPI to update the Vendor confirmation table EKES. And also the parameters to be passed to it.
Thanks.Suman:
After your call to FM ME_UPDATE_DOCUMENT is successful, please perform a explicit COMMIT.
Umair:
Use the FM ME_CONFIRMATION_UPDATE to update EKES table.
CALL FUNCTION 'ME_CONFIRMATION_UPDATE'
EXPORTING
i_ebeln = ekko-ebeln
TABLES
xekes = xekes
yekes = yekes.
"yekes contains the EKES table in DB
"xekes contains the changed values for EKES table
Hope this helps. Reward points if helpful.
Thanks
Balaji
Edited by: Balaji Ganapathiraman on Mar 20, 2008 1:10 PM -
Rfc enabled function module for the updating the database table
Hi,
I need one rfc enabled function module for the updating the database table from the legacy system.currently i am using the rfc_read_table to read the database table.similarly i need for the update.Hi
I believe you need to create one by yourself
Max -
In OWB I need to update the target table with same field for match/update
In OWb I am trying to update the target table with the match and the update on the same field can this be done. I am getting a error match merge error saying you cannot update and match on the same field. But in SQl my select is
Update table
set irf = 0
where irf = 1
and process_id = 'TEST'
Hwo do i do this in OWB.table name is temp
fields in the table
field1 number
field2 varchar2(10)
field3 date
values in the table are example
0,'TEST',05/29/2009
9,'TEST',05/29/2009
0,'TEST1',03/01/2009
1,'TEST1',03/01/2009
In the above example I need to update the first row field1 to 1.
Update temp
set field1 = 1
where field1 = 0
and field2 = 'TEST'
when I run this I just need one row to be updated and it should look like this below
1,'TEST',05/29/2009
9,'TEST',05/29/2009
0,'TEST1',03/01/2009
1,'TEST1',03/01/2009
But when I run my mapping I am getting the rows like below the second row with 9 also is getting updated to 1.
1,'TEST',05/29/2009
1,'TEST',05/29/2009
0,'TEST1',03/01/2009
1,'TEST1',03/01/2009 -
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 -
How do I update the result table ?
I am having problem to design and update the competition results in WPC_RESULTS table.
I have 3 tables
1. WPC_COMPETITION - It has details of the competition to be conducted.
2. WPC_MEMBERS - Member details.
3. WPC_RESULTS - Competition results which will have Member_ID, Competition_ID and Status.
In Region 1. I have a drop down list from which I can select the Competition.
Problem is with region 2.
==================
In Region 2. I plan to have All the Member's Name from WPC_MEMBERS, a Status column (W=Win or L=Lost or X=NotPlayed) from WPC_RESULT which can be updated. But the table WPC_RESULTS dosenot have a primary key but has 2 foreign key one from WPC_COMPETITION and one from WPC_MEMBERS.
I am just not able to plan & create this region 2.
Can someone login to my wokspace and give me a helping hand.
Please mail me at [email protected] and I would give you the password for my workspace.
Regards,
Nikhil KarnikMy problem is since the WPC_RESULT table has two master tables. I cannot use a Master Detail form.
What I am trying is,
On a form which displays all the member in WPC_MEMBERS, Drop down list of competition name from WPC_COMPETITION table and a there should be checkbox for status column of WPC_RESULT. So my challenge is to update the WPC_RESULT table with the respective member id and competition id and status in WPC_RESULT table.
As you said I can use a PL/SQL, but I could not understand how do create my PLSQL block to identify each member on the form and update the competition status associated with that member.
in short the table definition is like
CREATE TABLE "WPC_COMPETITION"
( "COMPETITION_NAME" VARCHAR2(100),
"COMPETITION_CODE" NUMBER,
"DATE_CONDUCTED" DATE,
CONSTRAINT "WPC_PK1" PRIMARY KEY ("COMPETITION_CODE") ENABLE
CREATE TABLE "WPC_COMPETITION"
( "COMPETITION_NAME" VARCHAR2(100),
"COMPETITION_CODE" NUMBER,
"DATE_CONDUCTED" DATE,
CONSTRAINT "WPC_PK1" PRIMARY KEY ("COMPETITION_CODE") ENABLE
CREATE TABLE "WPC_RESULTS"
( "COMPETITION_CODE" NUMBER,
"STATUS" VARCHAR2(1),
"MEMBER_ID" NUMBER
ALTER TABLE "WPC_RESULTS" ADD CONSTRAINT "WPKD_FK1" FOREIGN KEY ("COMPETITION_CODE")
REFERENCES "WPC_COMPETITION" ("COMPETITION_CODE") ENABLE
ALTER TABLE "WPC_RESULTS" ADD CONSTRAINT "WPKD_FK2" FOREIGN KEY ("MEMBER_ID")
REFERENCES "WPC_MEMBERS" ("MEMBER_ID") ENABLE
/ -
Update the Z table taking Max time.
Dear Friends,
I am updating a Z table for a sigle field value, I am doing it in loop and giving all the primary key fields in where condition, Its updating the records properly.
But The time is taking more if there are more records ( say 3000 + reacords ) , Now I am planning to update it in a single statement but the Sy-subrc is giving me 4 and the records were not updated in Z table.
pls let me know how to update the Z table in a single statement??
pls find the below code:
corent code:
UPDATE zXX CLIENT SPECIFIED
SET zyy = it_finaldata-zyy
WHERE mandt = sy-mandt AND
matnr = it_finaldata-matnr AND
matkl = it_finaldata-matkl .
this is within a loop and working fine but taking max time more than 30 mins.
now I have moved all the data into anothere internal table ( the internal table is same like Z table )
I am using the below statement but its not working:
update zXX FROM table it_savedata.
Pls help me.
Thanks,
SridharHi
If u use update that line should exist in DB table otherwise the sy-subrc will be 4. You can use MODIFY statement . The advantage is that if a line exist it will modify that particular line otherwise it will create a new line in DB table.
MODIFY dtab FROM TABLE itab.
Regards
Sathar -
Updating the VETVG table while creating the purchase order
hi all,
I have one requirement to calculated the delivery creation date while creating the Purchase Order. It is calculated based on the delivery date of PO. I have calculated that one but how to update it after calculation. Can any body give a user exit or BADI with implementation which will update the VETVG table while creating the PO.
Thanks
rajkumarhi sanjay,
thanks for reply, I am using same BADI(ME_PROCESS_PO_CUST) and implementation(FIELDSELECTION_ITEM_REFKEYS). In this implementation i am setting the shipping data with SET_SHIPPINGDATA method . but after that the values are not updating the EKPV and VETVG tables but it is only showing in the screen. Can you give a idea where to pass these values so it will update the tables.
thanks
rajkumar -
Create transaction for update a custom table
Hi,
I have a custom table Z****. What are all the steps to create a transaction for updating my custom table? I don't want to use SM30 anymore.
Thank you.Create a Table maintainence through the maintainence generator.
Open table in SE11, goto utilities => table maintainence generator.
Once the generator is created,
In the same screen of generator - Goto Environment => Transaction Code
Select Transaction Code with Parameter.
In the default values - Enter the Transaction as SM30 . Select skip first screen.
In default values at the bottom
Add
screen field = VIEWNAME and value = Ztable name.
screen field =UPDATE and value = 'X'.
Edited by: Pranu Pranu on May 19, 2010 2:36 PM -
I want to update the Custom table using the data available in ITAB.
Hi,
I want to updaste the Custom Table which is created by me (Ztable) using the data available in itab.(which i got from defferent standard tables)
I want to update the custom table using the itab data How is it possible?
Is any possible by using Modify ?
DPK.example here
modifying datbase table useing internal table
advises before updating this datbase table plz lock that table to avoid incosistency
write the logic for modifying
Modify the database table as per new dunning procedure
MODIFY fkkvkp FROM TABLE lt_fkkvkp .
and finally unlock the table
example
*To lock table for further operations
constants: lc_tabname TYPE rstable-tabname VALUE 'FKKVKP' . "FKKVKP
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
tabname = lc_tabname
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc EQ 0.
To fetch all the contract accounts for customers of the segment
Households/SME.
PERFORM fetch_contract_accounts using lc_tabname .
ENDIF. " IF sy-subrc EQ 0.
*wrote the logic
Modify the database table as per new dunning procedure from internal table
MODIFY fkkvkp FROM TABLE lt_fkkvkp .
*unlock the tbale
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
TABNAME = uc_tabname . -
Hi All,
i need to do direct update to the database table and the table has apprx 60,000 records . i am getting all records from database table to internal table and has to chnage the one of the field value and pass it to the database table . So i am looping the internal table and what is the best approach to update the database table is it to use UPDATE Pa0001 SET KOSTL = it_0001-KOSTL from table it_0001 each time in the loop to update each record and commit work which hits database for each record or use the statement UPDATE pa0001 from table it_0001 and if count = 1000 then COMMIT work in this way it will hit the database for every 1000 records . Appreciate your suggestions,
Thanks,
Latha.My Code to update PA0006 is :
DATA: t_pa0006 TYPE STANDARD TABLE OF pa0006 INITIAL SIZE 0,
wa_pa0006 LIKE LINE OF t_pa0006,
w_lin TYPE i.
FIELD-SYMBOLS: <fs_pa0006> LIKE LINE OF t_pa0006.
SELECT * FROM pa0006 INTO TABLE t_pa0006 WHERE uname = 'PKHAROR'.
LOOP AT t_pa0006 ASSIGNING <fs_pa0006>.
<fs_pa0006>-stras = 'My Street'.
ENDLOOP.
DESCRIBE TABLE t_pa0006 LINES w_lin.
UPDATE pa0006 FROM TABLE t_pa0006.
IF sy-subrc EQ 0.
COMMIT WORK.
WRITE:/ w_lin, ' Records have been updated..'.
ENDIF.
Reward points for useful answers
Regards
Pradeep
Regards
Pradeep -
Update the database table inside an user exit.
Hi Experts,
I have a issue where i have to update a custom table in an User exit.
I am using Lock object for ENQUE/DEQUE.
I have tried to use statements like UPDATE/MODIFY inside the user exit.
But the problem is that it's not updating the database table at the same time.
I know if i use COMMIT WORK it can update at the same time but it's not advisable to use COMMIT inside a work.and also it gives a short dump.
The real issue is that this custom table is read for batch creation at the same time for different users.
Now if it the program does not update the database table at the same time then other users also read the same data and create the same Batch number..
While requirement is to create a different/unique batch numbers.
Program is updating the table but it's taking time..so in between other users are creating the same batch number.
Please guide me what would be the best solution for this.
Regards,
Amit Kumar SinghThanks for your quick reply.
My actually requirement is like that.
I have to create a Process Order using tcode COR1.
After passing some input value it goes inside an User Exit.
There one Custom table is maintained which stores some fields like month,year,numeric key field,etc.
The new batch number is created using the combination of these table fields.
Once a new batch number is created it increment the numeric key field number by one.
Issue is we have to update this new numeric field value into the database field so that other users can read a diffrent numeric field value.hence it will create a new/different batch number.
Here i am not able to update the database table inside this User Exit.
Table is geeting updated but after some time and out of this User Exit.
Please suggest what's required in that case?
Regards,
Amit Kumar Singh
Edited by: Amit Singh on Feb 3, 2009 11:33 AM -
Standard Program Name for updating the System-Variables everyday in BACKGRO
Hi All,
Can anybody tell me the Standard Program Name for updating the System-Variables everyday in BACKGROUND job?Hello matt,
I have a program with variant.
This VARIANT input values will store in TVARVC table every day night background job.
i want the program name
Maybe you are looking for
-
How can i transfer videos without losing the sound to my iPhone 3G?
Hi I have bought my iPhone 3G yesterday. I have found out how to transfer music from iTunes however i can't transfer videos. I'm selecting the videos i want to transfer on the videos tab after i chose my iphone from the side menu and pressing apply.
-
When I try to import a file I get "AN ERROR OCCURRED WHILE SAVING MASTER IMAGE FILE". My masters are on an external hd and I can use the bridge to export or ph to open if I need but not Apeture. Wow I think am almost done with useing this program. Ha
-
Switched from W7Beta to W7RC: Can no longer see Windows partion in OSX
Hey all, It's pretty much all spelled out in the title. Microsoft is pretty clear that upgrading is never an option with beta software. In light of that, I knew I would have to re-install the OS from scratch to upgrade from the beta to the retail can
-
Using JEditorPane.selected() with embedded tags.
Ok, I've been searching the forums and tutorials for about an hour tonight, and I've seen this question asked in many forms but never answered. I am writing an applet which uses embedded HTML and some custom tags in a sub-class of JEditorPane that I
-
Dear Friends, I want to implelment the intercompany Sales flow. What I want to know is the concept of getting the same pricing as in Intercompany PO to flow in the Intercopmany Billing. Is this possible to achieve, as we usually have different pricin