Function module for quotation configuration update
Hi,
I am trying to update the configuration data for an item in quotation. This is a new item i am trying to insert in a quotation using BAPI 'BAPI_CUSTOMERQUOTATION_CHANGE' but not able to update/change the configuration data.
I am able to upload this data in quotation create, is there any specific value I am missing to pss to the above BAPI or is there any other FM to change/update the config data for item in a quotation?
My first question to you is - Do you have a COMMIT WORK statement in your program after the BAPI is executed.
Second - the BAPI function module has a RETURN table. What values are returned ?
Similar Messages
-
BAPI / Function Module for Sale order updation
Hi,
I need to update sale order details(Reason for rejection)..Can you please tell me any of the existing BAPI's / Function modules to do the same.hi,
try bapi_salesorder_change
<b>allocate points if useful</b>
regards,
pavan -
Function Modules for System Status update and reservation for service order
I am sending the service orders data using IDOCS.
once the IDOC is received successfully i need to do 2 things:
1. Update the system status of the service order with the status 'SPV2'.
2. Create the reservation for the service order.
Is there any function modules avilable for both of these process.
If not how i can do these two things in ABAP Code.
please help me out in it.check whether this Fm's helps you
STATUS_CHANGE_INTERN
CO_IH_SET_STATUS_EXTERNAL
CO_IH_STATUS_FM_SET
BAPI_ORDER_CHANGE_STATUS_GET
BAPI_APPREQUEST_SETSTATUSVARNT
BAPI_ALM_ORDER_MAINTAIN
BAPI_RESERVATION_CREATE
Edited by: Keshu Thekkillam on Oct 26, 2009 5:10 PM -
Function Module for Variant Configuration
Is there any Function Modules available for getting the Characteristics and values of configured material. Input will be a material number.
Points assured for any helpful answersHello,
I don't think FM is available for getting the Characteristics values of the Material . Better use this code.
* Selection for class
IF NOT S_KLART[] IS INITIAL.
PERFORM F_GET_OBJECTNUMBER.
ENDIF.
IF G_CLASS_NE IS INITIAL.
* Fill Selection table fields
PERFORM F_FILL_FIELDS.
* Selection for materials
PERFORM F_GET_MATERIAL.
SORT G_T_MAT BY MATNR.
* Read if necessary classification
IF G_T_MATNR[] IS INITIAL AND ( NOT G_T_MAT[] IS INITIAL ).
PERFORM F_GET_MAT_KLASS.
ENDIF.
* Select the basic data text and fill final table
PERFORM F_GET_BASIC_TEXT.
ENDIF.
FORM F_GET_OBJECTNUMBER.
DATA: L_R_OBJECTS TYPE TY_OBJECTS.
DATA: L_OBJECTS TYPE TY_OBJECTS.
CLEAR: G_T_OBJECTS.
REFRESH: G_T_OBJECTS.
SELECT A~CUOBJ A~OBJEK A~KLART B~ATINN B~ATZHL B~ATWRT B~ATFLV
B~ATAWE B~ATFLB B~ATAW1 C~CLINT D~CLASS
INTO CORRESPONDING FIELDS OF TABLE G_T_OBJECTS
FROM INOB AS A INNER JOIN AUSP AS B
ON A~CUOBJ = B~OBJEK AND
A~KLART = B~KLART
INNER JOIN KSSK AS C
ON B~OBJEK = C~OBJEK AND
B~KLART = C~KLART
INNER JOIN KLAH AS D
ON C~CLINT = D~CLINT
WHERE A~OBJEK IN S_MATNR AND
A~OBTAB EQ 'MARA' AND
A~KLART IN S_KLART AND
B~ADZHL EQ '0000' AND
C~LKENZ EQ ' ' AND
D~CLASS IN S_CLASS.
CLEAR : G_T_KSML.
REFRESH: G_T_KSML.
SELECT CLINT IMERK KLART
FROM KSML
INTO CORRESPONDING FIELDS OF TABLE G_T_KSML
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE CLINT EQ G_T_OBJECTS-CLINT.
IF NOT G_T_KSML[] IS INITIAL.
SORT G_T_KSML BY CLINT.
SORT G_T_OBJECTS BY CUOBJ OBJEK CLASS ATINN.
LOOP AT G_T_KSML.
READ TABLE G_T_OBJECTS WITH KEY ATINN = G_T_KSML-IMERK
CLINT = G_T_KSML-CLINT
BINARY SEARCH.
IF SY-SUBRC NE 0.
CLEAR: L_OBJECTS.
READ TABLE G_T_OBJECTS WITH KEY KLART = G_T_KSML-KLART
CLINT = G_T_KSML-CLINT
BINARY SEARCH.
IF SY-SUBRC = 0.
MOVE-CORRESPONDING G_T_OBJECTS TO L_OBJECTS.
CLEAR G_T_OBJECTS.
G_T_OBJECTS-ATINN = G_T_KSML-IMERK.
G_T_OBJECTS-KLART = G_T_KSML-KLART.
G_T_OBJECTS-CLINT = G_T_KSML-CLINT.
G_T_OBJECTS-CUOBJ = L_OBJECTS-CUOBJ.
G_T_OBJECTS-OBJEK = L_OBJECTS-OBJEK.
G_T_OBJECTS-CLASS = L_OBJECTS-CLASS.
APPEND G_T_OBJECTS.
CLEAR G_T_OBJECTS.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
DELETE ADJACENT DUPLICATES FROM G_T_OBJECTS
COMPARING OBJEK KLART CLASS ATINN ATAWE.
IF NOT G_T_OBJECTS[] IS INITIAL.
SORT G_T_OBJECTS BY CUOBJ OBJEK CLASS ATINN.
CLEAR: G_T_MATNR,G_R_MATNR,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,
G_T_CAWNT.
REFRESH: G_T_MATNR,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,G_T_CAWNT..
SELECT CLINT KSCHL
FROM SWOR
INTO CORRESPONDING FIELDS OF TABLE G_T_CLASSDESC
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE CLINT EQ G_T_OBJECTS-CLINT AND
KLPOS EQ '01' AND
SPRAS EQ SY-LANGU.
IF NOT G_T_CLASSDESC[] IS INITIAL.
SORT G_T_CLASSDESC BY CLINT.
ENDIF.
SELECT ATINN ATBEZ
FROM CABNT
INTO CORRESPONDING FIELDS OF TABLE G_T_CHARDESC
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN AND
SPRAS EQ SY-LANGU.
IF NOT G_T_CHARDESC[] IS INITIAL.
SORT G_T_CHARDESC BY ATINN.
ENDIF.
SELECT ATINN MSEHI
FROM CABN
INTO CORRESPONDING FIELDS OF TABLE G_T_CABN
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN.
SELECT ATINN ATWTB
FROM CAWNT
INTO CORRESPONDING FIELDS OF TABLE G_T_CAWNT
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN AND
ADZHL EQ '0000' AND
SPRAS EQ SY-LANGU.
LOOP AT G_T_OBJECTS.
AT NEW OBJEK.
G_R_MATNR-MATNR = G_T_OBJECTS-OBJEK.
APPEND G_R_MATNR TO G_T_MATNR.
ENDAT.
ENDLOOP.
ENDIF.
IF G_T_MATNR[] IS INITIAL.
G_CLASS_NE = 'X'.
ENDIF.
ENDFORM. " f_get_objectnumber
FORM F_GET_MAT_KLASS.
DATA: BEGIN OF L_T_OBJECT OCCURS 0,
OBJEK TYPE OBJNUM,
MATNR TYPE MATNR,
END OF L_T_OBJECT.
DATA: L_OBJECTS TYPE TY_OBJECTS.
CLEAR: L_T_OBJECT.
REFRESH: L_T_OBJECT.
* Fill the object number
LOOP AT G_T_MAT INTO G_R_MAT.
AT NEW MATNR.
L_T_OBJECT-OBJEK = G_R_MAT-MATNR.
L_T_OBJECT-MATNR = G_R_MAT-MATNR.
APPEND L_T_OBJECT.
ENDAT.
ENDLOOP.
CLEAR:G_T_OBJECTS,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,G_T_KSML,
G_T_CAWNT.
REFRESH: G_T_OBJECTS,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,G_T_KSML,
G_T_CAWNT.
* Get the material classification details
SELECT A~CUOBJ A~OBJEK A~KLART B~ATINN B~ATZHL B~ATWRT B~ATFLV
B~ATAWE B~ATFLB B~ATAW1 C~CLINT D~CLASS
INTO CORRESPONDING FIELDS OF TABLE G_T_OBJECTS
FROM INOB AS A INNER JOIN AUSP AS B
ON A~CUOBJ = B~OBJEK AND
A~KLART = B~KLART
INNER JOIN KSSK AS C
ON B~OBJEK = C~OBJEK AND
B~KLART = C~KLART
INNER JOIN KLAH AS D
ON C~CLINT = D~CLINT
FOR ALL ENTRIES IN L_T_OBJECT
WHERE A~OBJEK EQ L_T_OBJECT-OBJEK AND
A~OBTAB EQ 'MARA' AND
A~KLART IN S_KLART AND
B~ADZHL EQ '0000' AND
C~LKENZ EQ ' ' AND
D~CLASS IN S_CLASS.
IF NOT G_T_OBJECTS[] IS INITIAL.
SELECT CLINT IMERK KLART
FROM KSML
INTO CORRESPONDING FIELDS OF TABLE G_T_KSML
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE CLINT EQ G_T_OBJECTS-CLINT.
ENDIF.
IF NOT G_T_KSML[] IS INITIAL.
SORT G_T_KSML BY CLINT.
SORT G_T_OBJECTS BY ATINN KLART.
LOOP AT G_T_KSML.
READ TABLE G_T_OBJECTS WITH KEY ATINN = G_T_KSML-IMERK.
IF SY-SUBRC NE 0.
CLEAR: L_OBJECTS.
READ TABLE G_T_OBJECTS WITH KEY KLART = G_T_KSML-KLART.
IF SY-SUBRC = 0.
MOVE-CORRESPONDING G_T_OBJECTS TO L_OBJECTS.
CLEAR G_T_OBJECTS.
G_T_OBJECTS-ATINN = G_T_KSML-IMERK.
G_T_OBJECTS-KLART = G_T_KSML-KLART.
G_T_OBJECTS-CLINT = G_T_KSML-CLINT.
G_T_OBJECTS-CUOBJ = L_OBJECTS-CUOBJ.
G_T_OBJECTS-OBJEK = L_OBJECTS-OBJEK.
G_T_OBJECTS-CLASS = L_OBJECTS-CLASS.
APPEND G_T_OBJECTS.
CLEAR G_T_OBJECTS.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
IF NOT G_T_OBJECTS[] IS INITIAL.
SELECT CLINT KSCHL
FROM SWOR
INTO CORRESPONDING FIELDS OF TABLE G_T_CLASSDESC
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE CLINT EQ G_T_OBJECTS-CLINT AND
KLPOS EQ '01' AND
SPRAS EQ SY-LANGU.
IF NOT G_T_CLASSDESC[] IS INITIAL.
SORT G_T_CLASSDESC BY CLINT.
ENDIF.
SELECT ATINN ATBEZ
FROM CABNT
INTO CORRESPONDING FIELDS OF TABLE G_T_CHARDESC
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN AND
SPRAS EQ SY-LANGU.
IF NOT G_T_CHARDESC[] IS INITIAL.
SORT G_T_CHARDESC BY ATINN.
ENDIF.
SELECT ATINN MSEHI
FROM CABN
INTO CORRESPONDING FIELDS OF TABLE G_T_CABN
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN.
SELECT ATINN ATWTB
FROM CAWNT
INTO CORRESPONDING FIELDS OF TABLE G_T_CAWNT
FOR ALL ENTRIES IN G_T_OBJECTS
WHERE ATINN EQ G_T_OBJECTS-ATINN AND
ADZHL EQ '0000' AND
SPRAS EQ SY-LANGU.
ENDIF.
ENDFORM. " f_get_mat_klass
If useful reward.
Vasanth -
BAPI/FUNCTION module for the configure varient data(MRP3 -MM02)
Hi all,
I have a requirenent to send the configure varient data(MRP3 -MM02) to another system.Please guide me how it can be created in receving system.ie please provide a function module or BAPI for the same.
Thanks.
Edited by: sanu debu on May 11, 2009 11:01 AMI am also looking for the same requirment . could you please let me know if you find any BAPI.
-
Function Module for Delivery date update
Hi all,
Can anybody help me to solve my problem. My requirement is to update order delivery date for a partner. But I am not getting any FM for that and not getting the table name also where I can update delivery date value. If you have any known FM or any suggestion please tell me.
Thanks in advance
ChandanHi,
The function module is
<b>/1CRMG0/CUST_CHAN_WRT_I01</b>
Best Regards,
Johnny. -
Function module for BOM item update
Hi,
Please enlightenn us, which FM is do the update for BOM item datas. ( current FM is updated line item one item then come out and log in again updating another line item , thus cause more error are facing.)
we want a FM to update one time all the line time and come out from the screen.
Thx
SathiyaHI
You Can use function module CSAP_MAT_BOM_MAINTAIN to process simple material BOMs.
To change BOMs, you can also use the following function modules:
CSAP_MAT_BOM_OPEN
CSAP_BOM_ITEM_MAINTAIN
CSAP_MAT_BOM_CLOSE
You can use FM CSAP_ORD_BOM_MAINTAIN to Maintain Order BOM.
With Regards
Naveen -
Function module for Production order update (Table AFKO)
Hello All,
I know similar subject has been posted but please read the following.
SAP 4.6c doesn't provide BAPI for production order update.
We did develop an ABAP program that update production order and schedule it in a job.
We are looking of avoiding direct update in table AFKO which our program do right now.
We looked (with SE37) at either BAPI or FM to pass parameters to a functioin that would perform that update and ensure data integrity.
CO_ZV_ORDER_POST seems interesting but is also using a lot of parameters and we have diffiulties to test it and understand it our dev team being fairly new.
Can somebody tell us how to use this function or tell us another FM that could be used. (ie passing internal table content (New fields values) and a key value (AUFNR)) to update table AFKO and related objects/tables
Regards
Marchi,
TABLE IS AFKO
rgds
anver
if hlped mark points -
Functional Module for Delivery date update
Hi all,
Can anybody help me to solve my problem. My requirement is to update order delivery date for a partner. But I am not getting any FM for that and not getting the table name also where I can update delivery date value. If you have any known FM or any suggestion please tell me.
Thanks in advance
ChandanHi all,
Can anybody help me to solve my problem. My requirement is to update order delivery date for a partner. But I am not getting any FM for that and not getting the table name also where I can update delivery date value. If you have any known FM or any suggestion please tell me.
Thanks in advance
Chandan -
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 for FUNDS Update
Hi All,
Anybody can help us on BAPI function module for FUNDS Update in FI funds management module please.
Thanks & Regards
SriniHi,
We are writing a program to change / update the existing funds in table FMFINCODE funds master. Here we are using a function module called FM_FUND_CHANGE but we are not able to capture the return messages. So please suggest me any BAPI function module availble for the same. Tcode : FM5U
Regards
Srini -
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 -
How to create the INBOUND Function Module for INBOUND IDOCs
Hi Friends,
Can any Suggest me How to proceed to Create an INBOUND Function Module for Processing the INBOUND IDOCS
which are recieved from XI Server ?
I am working in SAP-ISU
Here i will recieve the INBOUND IDOCs for the Meter Reading Orders.
We have a Standard INBOUND FUNCTION MODULE
IDOC_INPUT_ISU_MR_UPLOAD
which Uploads the Meter Reading Results.
I copied the Same function Module into ZIDOC_INPUT_
and working on it.
Can any one suggest me, whether i am going in correct way or not.
In IDOC_INPUT_ISU_MR_UPLOAD Inbound fun module,
BAPI_MTRREADDOC_UPLOAD is used to Update or Insert the Meter Reading Results,
My requirment is to Insert and Update the Meter Reading Orders which are Inbounded from XI.
Can I Use the Same BAPI
BAPI_MTRREADDOC_UPLOAD
to Update the below fields,
EABL-SERNR
EABL-ZWNUMMER
EABLG-ABLESGR
EABL-V_ZWSTAND
EABL-N_ZWSTAND
EABL-ABLHINW
EABL-ZSKIPC
EABL-ADAT
EABL-ATIMTATS
EABL-ADATTATS
EABL-ATIM
EABL-ZMESSAGE
EABL-ABLESER(Meter reader number)
Kindly Suggest me,
Thanks in Advance,
GaneshHello Ganesh
I think you are going completely astray with you z-function module for IDoc processing.
If you look at TABLES parameter METERREADINGRESULTS (type BAPIEABLU ) of BAPI_MTRREADDOC_UPLOAD you will find many of the requested fields already:
EABL-SERNR => BAPIEABLU-SERIALNO
EABL-ZWNUMMER =>REGISTER
EABLG-ABLESGR
EABL-V_ZWSTAND
EABL-N_ZWSTAND
EABL-ABLHINW
EABL-ZSKIPC
EABL-ADAT
EABL-ATIMTATS => ACTUALMRTIME
EABL-ADATTATS => ACTUALMRDATE
EABL-ATIM
EABL-ZMESSAGE
EABL-ABLESER(Meter reader number)
Field EABL-ZMESSAGE appears to be custom field (at least I cannot find it on ECC 6.0). If this field was added using include CI_EABL then you probably can get these values into the BAPI using the EXTENSIONIN parameter.
Check routine CHECK_UPLOADRECORDS in the BAPI which allows two extension structures:
- BAPI_TE_EABL
- BAPI_TE_EOSB
Not surprisingly BAPI_TE_EABL contains the include CI_EABL.
Regards
Uwe -
How to config Check Digits function module for Student Number Validation
Hi SLCM Experts,
In the SAP-SLCM, How to use check digits function module for validate student number. Just only config it or need to customizing program.
*Any idea to student number validation in SLCM?*
Best Regards,
Suvatchai K.Hi ,
Can you expalin it further ?
You configure the St. no in piq_matr . And set it as external or internal no. range which suits your business .
What is the validation you are looking for ?
Regards
Gajalakshmi -
Function Modules for uploading the file
Hi experts ,
I have a requirement to download a file (csv) from my local sytem (say desktop) into an internal table first and then update the contents of the same internal table into the database table.
Can anybody provide me with a sample program for doing the same or at least the name of function modules for the same.
Prompt replies will be rewarded.
TIA
AbhishekHi Abhishek,
How to use INSERT Statement..
Check this Sample Program..
TABLES:MARA.
DATA:ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
ITAB-MATNR = '123ABCDA'. .
ITAB-MBRSH = 'C'.
ITAB-MTART = 'FERT' .
ITAB-MEINS = 'KG' .
APPEND ITAB.
ITAB-MATNR = '123ABCDB'. .
ITAB-MBRSH = 'C'.
ITAB-MTART = 'FERT' .
ITAB-MEINS = 'KG' .
APPEND ITAB.
LOOP AT ITAB.
INSERT MARA FROM ITAB.
MODIFY MARA .
ENDLOOP.
Maybe you are looking for
-
An error occurred during Apple event processing. -43
Every time I reboot my MacBook Pro I now get the following message. "An error occurred during Apple event processing. -43" I'm using OSX 10.6.7. Can anyonw help me resolve this problem? Dan
-
How do you identify all reports using a specific custom function?
Is there a way to identify all Crystal reports that use a specific custom function? When we make changes to the function we need to re-attach the function to the existing reports, but we need to know what and where they are. We are using CRS XI. Tha
-
GET RID OF THE RIDICULOUS MOUSEOVER DROPDOWNS IN THE TOP NAV PLZZZZ!!!!!
They were the worst "feature" of the horrible "upgrade" when they were added a while back. People have complained and complained. There've been at least one or two "upgrades" since then. WHY for the love of all that's holy and un- are they still ther
-
Ex: Part 1 finishes, then asks for part 2, so on so forth! Trying to open something a colleague sent me, but is rather large. I have 5 .rar files. I cannot extract them seperatly or it errors/fails. Yet I cannot find a program that asks or searches f
-
10.9.1 causing issues
mavericks 10.9.1 is creating many issus for me and does not work with my version of protools. How do I revert to the privios version?