Any BAPI/Function Module for adding new record with dates in PA0027
Hi all,
I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
thanks for ur time.
Murali
Hi Raj/Suresh thanks for ur answers.
but i am having a problem,i gave this values.
INFTY -
0027
NUMBER -
00000010
SUBTYPE -
010
OBJECTID
LOCKINDICATOR
VALIDITYEND -
03/12/2006
VALIDITYBEGIN -
03/01/2006
RECORDNUMBER -
000
RECORD -
P0027
OPERATION -
CHK
TCLAS -
A
DIALOG_MODE -
0
NOCOMMIT -
Y
VIEW_IDENTIFIER
SECONDARY_RECORD
i am getting short dump saying that
The source field is too short.
The current program, "SAPLHRMM", tried to assign a field to a field symbo
However, the field is shorter than the type of the field symbol, which
is not allowed.
The statement in question is in the form ASSIGN f TO <fs> CASTING or
ASSIGN f TO <fs> with a field symbol that was created using the
STRUCTURE addition.
I tried operation - Chage,Create (same thing for all inputs)
is this correct funtion moduel for my requirment?
what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
Thanks for ur time.
Murali.
Similar Messages
-
BAPI function modules for F-30(Post with clearing)
Hello,
Is there any BAPI FM that can be used for F-30?
I am trying to program a BDC for this transaction.
But it turns out very difficult since there are a few radio buttons and also it's hard to determine the line number of an open invoice.
Thanks,
KarenHi,
try to use rfbibl00 with structures bselk and bselp and TA FB05
look here: Re: BAPI for F-30
Andreas -
BAPI Function Module for SCM APO Trans code /SAPAPO/AC42
Hi,
Is there any BAPI Function Modules for SCM APO Tcode /SAPAPO/AC42.
This BAPI FM should return the column values "Remaining Prod Alloc" and "Incoming Order Quantity" when we give
below details as inputs for the Tcode /SAPAPO/AC42
Product Allocation Group
Product
Allocation Procedure
prod Alloc step
Product Alloc Object (Characteristics of Product Alloc Group)
Plant (Characteristics of Product Alloc Group)
Customer Group 5 (Characteristics of Product Alloc Group)
Reward points if helpful.
Thanks,
MichHi,
You should be able to get the information using the standard BAPI (Assuming you are using SCM5.0) BAPI_APOPAL_INSERT in the transaction BAPI.
ProductAllocationAPO.DataInsert
Interface to Import Product Allocation Data Functionality
This method is used to adopt data from OLTP systems for product allocation in the global availability check.
You can do the following using the method:
Adopt new data
You can adopt new characteristics combinations or new time series. Newly created characteristics combinations have the status Active and are therefore included in the product allocation check.
Change existing data
You can overwrite existing data if you have set the interface parameter ALLOW_UPDATE. You can set the status of existing characteristics combinations to Active if you set the interface parameter UPDATE_STATUS. If the characteristics combination does not exist, the system creates it.
The product allocation quantity is overwritten for existing time series. If you also want to change the incoming orders quantity, you must set the interface parameter UPDATE_INCOMING_ORDER_QTY. If the time series does not exist, the system creates it.
Prerequisite
To be able to use this method, you must have made all the Customizing settings for product allocation. For more information, see the Implementation Guide (IMG) for SAP APO under Global Available-to-Promise -> Product Allocation.
Regards
Vinod -
Is their any function module for deleting condition record i am trying
Hi Experts,
Is their any function module for deleting condition record i am trying this way.......
DATA: TABLE (4) TYPE C.
DATA: KNUM LIKE KONH-KNUMH
DATA: K_VEWE LIKE T681-KVEWE VALUE 'A'.
DATA: T681_STR LIKE T681.
DATA: LV_NUM TYPE I.
GET PARAMETERS
PARAMETERS: TABNO LIKE T681-KOTABNR.
PARAMETERS: TESTMODE DEFAULT 'X' AS CHECKBOX.
REFRESH INT_KNUMH.
Select single * from T681 into T681_STR
where kvewe = K_VEWE AND
KOTABNR = TABNO.
IF SY-SUBRC NE 0.
WRITE: / 'No entry in T681 for number ', TABNO.
WRITE: / 'Check whether corresponding condition table exists.'.
EXIT.
ENDIF.
TABLE = T681_STR-KOTAB.
SELECT KNUMH FROM (TABLE) INTO KNUM.
SELECT SINGLE * FROM KONH WHERE KNUMH = KNUM.
IF SY-SUBRC NE 0.
INT_KNUMH-KNUMH = KNUM.
COLLECT INT_KNUMH.
ENDIF.
ENDSELECT.
DESCRIBE TABLE INT_KNUMH LINES LV_NUM.
IF LV_NUM EQ 0.
WRITE: / 'No inconsistent entries found.'.
WRITE: / 'Each record in the condition table has a corresponding.'.
WRITE: / 'entry in the KONH table.'.
EXIT.
ENDIF.
LOOP AT INT_KNUMH.
IF TESTMODE IS INITIAL.
DELETE FROM (TABLE) WHERE
KNUMH = INT_KNUMH-KNUMH.
IF SY-SUBRC = 0.
WRITE: / 'KNUMH =', INT_KNUMH-KNUMH(10), ' deleted from table ' ,TABLE.
ELSE.
WRITE: / 'DELETE: SY-SUBRC is', SY-SUBRC , ' FOR KNUMH = ' .
WRITE: INT_KNUMH-KNUMH(10).
ENDIF.
ELSE.
WRITE: / 'TESTRUN: KNUMH =', INT_KNUMH-KNUMH(10).
ENDIF.
ENDLOOP.
is their any Standerd Function module for comparing tables if the condition record not exist in it has to exit if it is their then compare those two tables if not exist in one table also that has to be delete the condition record
Please let me know .....Hi,
You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
Regards
Kiran Sure -
BAPI/Function module for FAIV06
Hi All,
I want post the debit/credit material document using transaction FAIV06.I searched for BAPI/function module but nothing found.
if you know any bapi/function module or is there any alternate method for posting the document.
please help.
Thanks.I think there is only a BAPI to get the details of a Info record BAPI_INFORECORD_GETLIST. For creagting / updating you will have to write a BDC.
regards,
Ravi
Note : Please mark the helpful answers -
BAPI Function Module for SCM APO Tcode /SAPAPO/AC42
Hi,
I want to know the BAPI Function Modules for SCM APO Tcode /SAPAPO/AC42.
This BAPI FM should return the column values "Remaining Prod Alloc" and "Incoming Order Quantity" when we give
below details as inputs for the Tcode /SAPAPO/AC42
Product Allocation Group
Product
Allocation Procedure
prod Alloc step
Product Alloc Object (Characteristics of Product Alloc Group)
Plant (Characteristics of Product Alloc Group)
Customer Group 5 (Characteristics of Product Alloc Group)
Reward points if helpful.
Thanks,
MichHi,
You should be able to get the information using the standard BAPI (Assuming you are using SCM5.0) BAPI_APOPAL_INSERT in the transaction BAPI.
ProductAllocationAPO.DataInsert
Interface to Import Product Allocation Data Functionality
This method is used to adopt data from OLTP systems for product allocation in the global availability check.
You can do the following using the method:
Adopt new data
You can adopt new characteristics combinations or new time series. Newly created characteristics combinations have the status Active and are therefore included in the product allocation check.
Change existing data
You can overwrite existing data if you have set the interface parameter ALLOW_UPDATE. You can set the status of existing characteristics combinations to Active if you set the interface parameter UPDATE_STATUS. If the characteristics combination does not exist, the system creates it.
The product allocation quantity is overwritten for existing time series. If you also want to change the incoming orders quantity, you must set the interface parameter UPDATE_INCOMING_ORDER_QTY. If the time series does not exist, the system creates it.
Prerequisite
To be able to use this method, you must have made all the Customizing settings for product allocation. For more information, see the Implementation Guide (IMG) for SAP APO under Global Available-to-Promise -> Product Allocation.
Regards
Vinod -
Bapi function module for ME32k Transaction
Hi all,
Can any one tell me what is the BAPI function module for ME32K transaction . I am trying to create service agreements in this transaction.
Even you can tell me if any other alternative procedure is there to create the service agreements in ME32K.
Bye
SrinivasHi srinivas p ,
Do you find some solution for this?! I have the same problem...
Can you help-me?
Patrícia. -
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 -
BAPI Function module for transaction ME32K for change
Please let me know the name of the BAPI Function module for transaction ME32K for change the contract.
Hi Krishan,
I have checked but their is no BAPI called
BAPI_CONTRACT_CHANGE.
If I am wrong plz correct me with the procedure to view the above BAPI in SAP System.
Regards,
Nitin -
BAPI/Function Module for transaction PR05
Hi All,
I am searching for BAPI/Function Module for tx PR05(Travel Expense Manager).
Thanks.Check thread Transferring data into travel manager for Carlos David Moreno Lozano answer in message Re: Transferring data into travel manager
Regards,
Raymond -
BAPI/Function Module for tx PR05(Travel Expense Manager)
Hi All,
I am searching for BAPI/Function Module for tx PR05(Travel Expense Manager).
Thanks.Hi All
Thanks for your input.
I choose BDC option for PR05 maintain. As the BAPIs are calling PR01.
-RP -
BAPI/Function Module for approve Appropriation Request?
Hi Friends,
Please guide me for
BAPI/Function Module for approve Appropriation Request?
Regards
RickyHello
Check these BAPI
BAPI_APPREQUEST_ADDVARIANT Add a Variant to an Appropriation Request
BAPI_APPREQUEST_CHANGE Change an Appropriation Request
BAPI_APPREQUEST_CHANGEVARIANT Change Appropriation Request Variant
BAPI_APPREQUEST_CREATE Create Appropriation Request
BAPI_APPREQUEST_DELETE Deletion of an Appropriation Request
BAPI_APPREQUEST_GETDETAIL Display of an Appropriation Request
BAPI_APPREQUEST_GETSTATUS Display Status of an Appropriation Request
BAPI_APPREQUEST_REMOVEVARIANT Delete an Appropriation Request Variant
BAPI_APPREQUEST_SETSTATUS Setting System and User Status of Appropriation Request
BAPI_APPREQUEST_SETSTATUSVARNT Setting of User and System Status on Variants -
BAPI FUNCTIONAL MODULES FOR T codes FB50,FB60,KB31n,KP46
Hi friends
Can u suggest me BAPI function modules for T codes FB50,FB60,KB31n,KP46
Thanks in advanceUse BAPI_INCOMINGINVOICE_PARK
Import parameters HEADERDATA is mandatory in BAPI_INCOMINGINVOICE_PARK .
Also tables ITEMDATA and RETURN are mandatory.
Check the following sample code
LOOP AT i_ekbe INTO wa_ekbe.
CLEAR: wa_invoice_header,
i_invoice_item,
i_return,
v_inv_doc_no,
v_fisc_year,
wa_return.
REFRESH: i_invoice_item,
i_return.
Appending Invoice header Work Area
wa_invoice_header-invoice_ind = c_x.
wa_invoice_header-doc_date = sy-datum.
wa_invoice_header-pstng_date = wa_ekbe-budat.
wa_invoice_header-comp_code = c_100.
wa_invoice_header-gross_amount =
wa_invoice_header-currency = c_usd.
wa_invoice_header-calc_tax_ind = c_x.
Appending Invoice item data
i_invoice_item-invoice_doc_item = '0001'.
i_invoice_item-po_number = wa_ekbe-ebeln.
i_invoice_item-po_item = wa_ekbe-ebelp.
i_invoice_item-tax_code = ' '.
i_invoice_item-item_amount = '20.00'.
i_invoice_item-quantity = '10.000'.
i_invoice_item-ref_doc = '5600000634'.
i_invoice_item-ref_doc_year = '2006'.
i_invoice_item-ref_doc_it = '10'.
i_invoice_item-po_unit = 'EA'.
i_invoice_item-COND_TYPE = 'VPRS'.
APPEND i_invoice_item.
Calling module BAPI_INCOMINGINVOICE_PARK
CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
EXPORTING
headerdata = wa_invoice_header
ADDRESSDATA =
IMPORTING
invoicedocnumber = v_inv_doc_no
fiscalyear = v_fisc_year
TABLES
itemdata = i_invoice_item
NFMETALLITMS =
ACCOUNTINGDATA =
GLACCOUNTDATA = i_gla
MATERIALDATA = i_mat
TAXDATA =
WITHTAXDATA =
VENDORITEMSPLITDATA =
return = i_return.
READ TABLE i_return INTO wa_return
WITH KEY type = c_e.
IF sy-subrc EQ 0.
ENDIF.
ENDLOOP.
Reward if useful. -
Function Module for creating condition record (XKOMV table record)
Hi,
I have a requirement as like below,
In the repair order i need to sum the GRWR condition type's conditional values for all the line items (Except deliverable line item) and then i need to create an condition type GRWR under the deliverable line item with the above calculated conditional values,
the table XKOMV will be having details about all the line item's condition types, in this table i need to add one more new record with the condition type of GRWR and the above calculated conditional values under the deliverable line item.
for the above logic i am using the user exit
USEREXIT_SAVE_DOCUMENT_PREPARE
All the above things need to be done when the user click the save button in the transaction (VA01/VA02).
Problem here is table XKOMV contains somany fields so manually we can't create xkomv record, is there any Function module to create condition type record?
Regards,
Manikumar
Edited by: Manikumar Shanmugam on Mar 8, 2008 3:53 PMHi,
You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
Regards
Kiran Sure -
Bapi function module for the transaction VBO2 in 4.6 version
can u please tell me the how to proceed for the uploading rebate agreement data into transaction VBO2(change rebate agreement) USING the which bapi function module in 4.6c version.
I am also looking for the same requirment . could you please let me know if you find any BAPI.
Maybe you are looking for
-
Error while releasing to accouting.
Hi, in VF02 when we try to release to accounting, getting the error " Reconciliation account XXXX or short key 00 is not permitted " Message no. F5788 Diagnosis The system checked the entry to see whether a reconciliation account exists with the numb
-
Adobe Creative Cloud Desktop For Mac Not Working.
Hello i installed the adobe creative cloud desktop application on by macbook pro running osx 10.8 and it was going fine. I could install and update my apps but since i have updated to mavericks 10.9 is has stopped working. It opens but show nothing.
-
Whenever I turn my MacBook pro on, all the other stuff is loaded (MS word/excel/powerpoint), Spotify, iCal, etc are automatically loaded, so in order for me to go to my desired website, I have to close (x) out all applications loaded. Please advise.
-
Hi, after downloading the latest version of Itunes, the artwork no longer prints on the cd insert? It shows on the preview, but doesn't print on the insert? It worked fine before and the printer is working fine, it prints color photos and artwork, no
-
Up graded from elements 9 to 11 tried to run incremental backup and keep getting error
I keep getting error c:\ program data\adobe\elements organize\catalogs\my catalog\catalog pse 11 db. any help on this issue would be great.