LSMW or ABAP Program:- I need BAPI function module or Direct input program
hi experts,
I have to develop the program which uploads the transportation pricing data for freight cost management.
the transcation code is XK15 for the application A.
There is a program called RV14BTCI which will uploads for the application V or M not for A.
So i can use lsmw or direct input program in both lsmw and abap program so plz help me if there is any BAPI function module or Direct input program for Application A.
thank you,
waiting for u r reply.
Edited by: SANTOSH MARUPALLY on Jan 22, 2008 6:27 AM
Hi Santosh
Am not really sure if RV14BTCI can not be used for other applications apart from V and M.
You can try using BAPI: BAPI_PRICES_CONDITIONS. Over the forum you can find few example coding.
Regards
Eswar
Similar Messages
-
Need BAPI function module to change routing (CA12 Tcode)
Hi Freinds,
i have bapi function module to create bapi_routing_create,
but i need bapi function module to ROUTE CHANGE.
tcode is ca12
pls help me out .....it's urgent to me
mail to me :[email protected]
regards
madhuThanks Jitendra,
I have tried to use it but I am not able to obtain a good result. I have set values for PLKO_DI_TAB and MAPL_DI_TAB, but it does not work…
What is missing? -
CUSTOMER PARTNER INTERCHANGE, BAPI, FUNCTION MODULE or LSMW ??
Hi Guys,
I have a requirement to replace a partner with a new partner for a customer.
Input for the same requirement is, below mentioned data in the format of a file.
1. Customer No.
2. Sales Organisation.
3. Division.
4. Distribution Channel.
5. Partner Function to be deleted.
6. Partner Number to be deleted.
7. Partner Function to be added.
8. Partner Number to be added.
If anyone can suggest anything, Please let me know which one will be best to do this. BAPI, Function Module or LSMW.
Let me know ASAP.
Regards,
Mayank.use bdc to tcode vap2
A. -
Is there a BAPI function module which reverses the sign of an integer
Hi Friends,
Could u plz tell me a BAPI function module which can reverse the
sign of an integer ?
For example:
if i get the integer value in work area as <number> <sign> , i need to change it to <sign><number>.
i.e if i get the integer value in work area as "248-" ("-" indicates minus sign) to " -248 ".
i.e if i get the sign after the value , my requirement is to get the sign before the value.
The actual ABAP query is:
data: QTY_1 TYPE CHAR10,
QTY_2 TYPE CHAR10,
WA_DISTK_PORTLET-QUANTITY TYPE INT4.
QTY_1 = WA_DISTK_PORTLET-QUANTITY.
SEARCH QTY_1 FOR '-'.
IF SY-SUBRC = 0 AND SY-FDPOS <> 0.
SPLIT QTY_1 AT '-' INTO QTY_1 QTY_2.
CONDENSE QTY_1.
CONCATENATE '-' QTY_1 INTO QTY_1.
CONDENSE QTY_1.
ELSE.
CONDENSE QTY_1.
ENDIF.
CLEAR: WA_DISTK_PORTLET-QUANTITY.
MOVE : QTY_1 TO WA_DISTK_PORTLET-QUANTITY.
when i move this QTY_1 to work area quantity field The sign is coming after the numeric value.
Note: There is no possibility to change the datatype of quantity field.
I have tried my level best with 'CLOI_PUT_SIGN_IN_FRONT' function module.
I will assign full points to the correct function module.Hi Ram,
try this ang look into fields.
data: fields type table of SVAL with header line.
fields-tabname = 'MARA'. fields-fieldname = 'MATNR'. append fields.
fields-tabname = 'BKPF'. fields-fieldname = 'BUDAT'. append fields.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
POPUP_TITLE = 'Value Insert'
TABLES
FIELDS = fields.
Regards, Dieter -
BAPI function module to get condition type and its values based on delivery number?
Hi All,
I would like to have the BAPI function module to get condition type value based on delivery number before invoice is created.please provide detail program for as a reference .please reply as soon as possible its urgent.
Regards,
saaikumar.If you haven't already, you may first need to search via the SAP transaction "BAPI" in the area this is applicable to. Failing that I do hope you get an answer.
-
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.
MuraliHi 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. -
Header Pricing conditions in BAPI function module
I am using BAPI function module BAPI_SALESDOCU_CREATEFROMDATA1 to create sales orders through program.
It is working fine with item level pricing conditions.
But my requirement is ... I need to update few pricing conditon types in item level and one in header level.
Could you please help me where I need to pass header pricing conditions. Please help me.
CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
EXPORTING
SALESDOCUMENT = SALESDOCUMENT
SALES_HEADER_IN = SALES_HEADER_IN
SALES_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE = 'VORL'
INT_NUMBER_ASSIGNMENT = ' '
IMPORTING
SALESDOCUMENT_EX = SALESDOCUMENT_EX
TABLES
RETURN = RETURN
SALES_ITEMS_IN = SALES_ITEMS_IN
SALES_ITEMS_INX =
SALES_PARTNERS = SALES_PARTNERS
SALES_SCHEDULES_IN = SALES_SCHEDULES_IN
SALES_SCHEDULES_INX =
SALES_CONDITIONS_IN = SALES_CONDITIONS_IN.
SALES_CFGS_REF =
SALES_CFGS_INST =
SALES_CFGS_PART_OF =
SALES_CFGS_VALUE =
SALES_CFGS_BLOB =
SALES_CCARD =
KEY_TABLE =
Thanks in advance.
RaghuIf the correct configuration allows for manual entry of the condition type you want to populate, You can map your value using
' ORDER_CONDITIONS_IN' . If item level map line number, cond step number of the condition type in your pricing procedure, your condition type you are using, condition value you are sending into the system, currency, and cond unit. If it is a header condition, then send in 000000 as the item number. You can also consider using BAPI_SALESORDER_CREATEFROMDAT2 -
Hi Experts,
Where can I find the Bapi Function Modules.
Can u provide me the coding part of how to use BAPI in our program .
Will be rewarded if helpful.
Regards.Hi Raj,
Foremost of all before you can search for a BAPI you should know the BAPI you are going to use depending on your need. Generally when you are in a project the Functional Consultant gives you the BAPI which you need to use unless you are developing your own BAPI.
By going to the Transaction BAPI, you can search for the BAPI you need. This transaction takes you to the BAPI Explorer where all the BAPIs are listed in two ways,
Alphabetical Order
Hierarchical Order
When the BAPI you need is found you can get all the details regarding all the parameters that are used in the BAPI and also as to how they are declared. DOCUMENTATION is provided for all the BAPI parameters describing them. In the DOCUMENTATION for the BAPI you fill find how a particular BAPI can be used to perform different operations. For ex: the BAPI called BAPI_PROJECT_MAINTAIN can be used perform UPDATE or RELEASE operations.
Some useful tips when using a Standard BAPI,
Go through all the data declarations of the BAPI parameters and check if any Conversion Rules are used. This is helpful as you will need to declare variables for every parameter in BAPI that you would be used by you. And all these variables should be declared of the same data type as the BAPI parameters.
Check to see if there any mandatory fields that need to be passed. Look for all the BAPI parameters that you would need and declare variables for them and map them correctly.
Though RETURN (generally a table) is may not be mandatory its useful to use it as any messages regarding success or error while processing the BAPI are populated in it. In some cases the RETURN may be a structure and in such a case there would another table where messages are populated. These are useful to be used in the program.
After processing BAPI, if successful then the Function Module BAPI_TRANSACTION_COMMIT is performed to save the changes. But if its not successful then the Function Module BAPI_TRANSACTION_ROLLBACK is performed to rollback any changes that would have occurred.
Sample Program,
Note: 1. Here the BAPI called BAPI_PROJECT_MAINTAIN is used. This BAPI is used to
Edit project including networks. It can be used perform operations like UPDATE
or RELEASE and others. Here its used to perform UPDATE operation (Here
ROFIT_CENTER is updated).
2. Here a Function Module called CONVERSION_EXIT_ALPHA_INPUT is used
to convert the profit center from the External Format(Format as in the program) to
Internal Format (Format in the BAPI).
(You can use this program to check out.)
DATA: wk_i_project_definition TYPE bapi_project_definition,
wa_i_method_project TYPE bapi_method_project,
wa_i_wbs_element_table TYPE bapi_wbs_element,
it_i_method_project TYPE STANDARD TABLE OF bapi_method_project,
it_i_wbs_element_table TYPE STANDARD TABLE OF bapi_wbs_element.
DATA: wk_i_project_definition_upd TYPE bapi_project_definition_up,
wk_return TYPE bapireturn1,
wa_i_wbs_element_table_update TYPE bapi_wbs_element_update,
wa_e_message_table TYPE bapi_meth_message,
it_i_wbs_element_table_update TYPE STANDARD TABLE OF bapi_wbs_element_update,
it_e_message_table TYPE STANDARD TABLE OF bapi_meth_message.
CONSTANTS: _index(6) TYPE c VALUE '000001',
_wbselement(11) TYPE c VALUE 'WBS-ELEMENT',
_update(6) TYPE c VALUE 'UPDATE',
_save(4) TYPE c VALUE 'SAVE'.
wk_i_project_definition-project_definition = 'M-1000000000'.
wk_i_project_definition_upd-project_definition = 'X'.
wa_i_method_project-refnumber = _index.
wa_i_method_project-objecttype = _wbselement.
wa_i_method_project-method = _update.
wa_i_method_project-objectkey = 'M-1000000000:00001-003'.
APPEND wa_i_method_project TO it_i_method_project.
CLEAR wa_i_method_project.
wa_i_method_project-method = _save.
APPEND wa_i_method_project TO it_i_method_project.
wa_i_wbs_element_table-wbs_element = 'M-1000000000:00001-003'.
wa_i_wbs_element_table-profit_ctr = '65576'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_i_wbs_element_table-profit_ctr
IMPORTING
output = wa_i_wbs_element_table-profit_ctr.
APPEND wa_i_wbs_element_table TO it_i_wbs_element_table.
wa_i_wbs_element_table_update-profit_ctr = 'X'.
APPEND wa_i_wbs_element_table_update TO it_i_wbs_element_table_update.
CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
EXPORTING
i_project_definition = wk_i_project_definition
i_project_definition_upd = wk_i_project_definition_upd
IMPORTING
return = wk_return
TABLES
i_method_project = it_i_method_project
i_wbs_element_table_update = it_i_wbs_element_table_update
i_wbs_element_table = it_i_wbs_element_table
I_WBS_MILESTONE_TABLE =
I_WBS_MILESTONE_TABLE_UPDATE =
I_WBS_HIERARCHIE_TABLE =
I_NETWORK =
I_NETWORK_UPDATE =
I_ACTIVITY =
I_ACTIVITY_UPDATE =
I_RELATION =
I_RELATION_UPDATE =
e_message_table = it_e_message_table
I_ACTIVITY_ELEMENT =
I_ACTIVITY_ELEMENT_UPDATE =
I_ACTIVITY_MILESTONE =
I_ACTIVITY_MILESTONE_UPDATE =
IF wk_return IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
LOOP AT it_e_message_table INTO wa_e_message_table.
WRITE:/ wa_e_message_table-message_id, wa_e_message_table-message_number,
wa_e_message_table-message_type, wa_e_message_table-message_text.
ENDLOOP.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
IMPORTING
RETURN =
LOOP AT it_e_message_table INTO wa_e_message_table.
WRITE:/ wa_e_message_table-message_id, wa_e_message_table-message_number,
wa_e_message_table-message_type, wa_e_message_table-message_text.
ENDLOOP.
ENDIF.
Regards,
Raga Suman. -
Need a function module to create production order with reference
Hi
I need a function module to create a production order with reference to an existing order. There is no BAPI available for SAP 4.7 release. I found that the function module CO_ZF_PRODUCTIONORDER_CREATE does not create with reference to an existing order.
Any help will be rewarded.
PavanDear Pavan,
Unfortunately there is no FM for this..
Cheers
Nitesh -
Stuck with Bapi Function module BAPI_STSRVAPS_SAVEMULTI2
Hi all,
I have been given the requirement to get the stock quantity using the bapi function module BAPI_STSRVAPS_GETLIST2 from the Livacache and depending upon some stock reservation percent split the stock into two as (NEW STOCK and STOCK RESERVED ).And then write it back to Livecache as change and create.
Please do tell me how to proceed with it.
Thanks and Regards.
syed.hi
hope the following helps u to know what is to be passsed.
1. Required entries :
BILLING_DATA_IN-SALESORG
BILLING_DATA_IN-DISTR_CHAN
BILLING_DATA_IN-DIVISION
BILLING_DATA_IN-DOC_TYPE
BILLING_DATA_IN-ORDBILLTYP
BILLING_DATA_IN-SOLD_TO
BILLING_DATA_IN-ITEM_CATEG
BILLING_DATA_IN-REQ_QTY
BILLING_DATA_IN-SALES_UNIT
BILLING_DATA_IN-CURRENCY
If a material is billed for which a material master needs to be
determined (BILLING_DATA_IN-NO_MATMAST = ' '), you must make the
following entries :
BILLING_DATA_IN-PLANT
BILLING_DATA_IN-MATERIAL
If, on the other hand, a material is billed for which no material
master is to be determined (BILLING_DATA_IN_NO_MATMAST = 'X'), you
must make the following entries :
BILLING_DATA_IN-COUNTRY
BILLING_DATA_IN-MATERIAL
BILLING_DATA_IN-TAXCL_1MAT
2. COMMIT control :
In the update run (TESTRUN = ' ') the update is carried out by
COMMIT
WORK as part of the method available. -
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 -
BADI /BAPI /Function Module in PP
PP Experts,
I need help to identify the BADI /BAPI /Function Module in PP for
BOM Explosion multilevel (TXn CS11)
Planned Order Create and Change (Txn MD11/MD12)
Production Order Create and Change (CO01/CO02)
Simulation Order (Co01S/Co02S)
Appreciate your valuable inputs.
Thanks and Regards,
PradeepHi,
Following Enhancements available for the said T-Codes
Transaction Code - CS11 Display BOM Level by Level
Enhancement
PCSD0014 Wissensbasierte AuftragsStl:Status setzen beim fixieren
PCSD0013 Customer-specific processing of an explosion for BOM browse
PCSD0012 Customer - Mat. number/mat. number during material exchange
PCSD0011 Knowledge-based order BOM, parallel update
PCSD0010 Order/WBS BOM, determine explosion date
PCSD0009 Order/WBS BOM, determine URL page
PCSD0008 WBS BOM: Customer-specific explosion for creating
PCSD0001 Applications development R/3 BOMS
PCSD0002 BOMs: Customer fields in item
PCSD0003 BOMs: Customer fields in header
PCSD0004 BOM comparison
PCSD0005 BOMs: component check for material items
PCSD0006 Mass changes user exit
PCSD0007 Check changes in STKO
Business Add-in
BOM_EXIT BOM User Exit
BOM_IPPE iPPE Checks Within BOM Maintenance
BOM_UPDATE Maintain BOMS
CEWB_BOM_CUS_FIELDS EWB: Customer Fields with BOM Header (Screen Enhancement)
CEWB_BOM_UPDATE Check Bill of Material on Saving
CEWB_ITM_CUS_FIELDS EWB: Customer Fields with BOM Item (Screen Enhancement)
Transaction Code - MD11/MD12 Create Planned Order
Enhancement
LMDR2001 User exits restr. profiles of opt. pur.ord.-based load bldg
LMDZU001 User exits in additional planning
Transaction Code - CO01/CO02/CO01S/CO02s Create production order
Enhancement
PPCO0010 Enhancement in make-to-order production - Unit of measure
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determination
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document links
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
PPCO0022 Determination of Production Memo
PPCO0023 Checks Changes to Order Components
STATTEXT Modification exit for formatting status text lines
PPCO0009 Enhancement in goods movements for prod. process order
CCOWB001 Customer exit for modifying menu entries
COIB0001 Customer Exit for As-Built Assignment Tool
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
PPCO0001 Application development: PP orders
PPCO0002 Check exit for setting delete mark / deletion indicator
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0005 Storage location/backflushing when order is created
PPCO0006 Enhancement to specify defaults for fields in order header
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
Business Add-in
SIDAT_UPDATE Change date of price simulation
CAUFVD_CHANGE BAdI: Overall Network Scheduling with Selection Option
AFABD_CHANGE Change Relationship
PPPI_SEL_ORD_EXT_REL
Regards
Ahsan -
BAPI/Function module for BATCH SPLIT
Hi,
is there a BAPI/Function module to enter BATCH SPLIT data in an outbound delivery. I used tcode VL02N to create an Outbound delivery(FOR an STO). I can use 'BAPI_DELIVERYPROCESSING_EXEC' to creat an Outbound delivery, but need to know what to use to add BATCH SPLIT data.
Thanks
RajHi Raj,
Check this thread..
Re: Inserting Batch Split Items in Delivery
Cheers
VJ -
Modify table data and import to same bapi function module
Hai friends,
I have a requirement on bapi , such that after executing the bapi function module data comes on tables and again i need enter weight in weight column field in the same table data and pass the same table in the same bapi function module .
plz sujjest.
with reagards,
prasad.Can u explain in details,
means which bapi r u using? where u will enter weight? etc. -
BAPI/Function Module in CRM to create Credit Memo
Hi,
It will be great if some one can help me in finding out whether there is any <b>BAPI/Function Module</b> in <b>CRM</b> to create <b>Credit Memo</b>?
Rgds,
Sam.Hi Venkatesh,
Thanks you for your post, your post has helped me a ton in my work, Infact I was working on BAPI to
Create Credit Memo request i.e BAPI_SALESORDER_CREATEFROMDAT2 as expected i got the same error as "Unpermitted combination of business object BUS2032 and sales doc. category K" and i tried on other BAPI it worked, Just i need to know BUS2032 doesn't support Credit Memo Request, How we can find it
to what Sales document it support?
Maybe you are looking for
-
Nokia C7 Phone Start-Up Failed
A good friend of mine has a Nokia C7. He and I both used to use SPB Mobile Shell, but I no longer do. However, my friend is still using the SPB software. Sometimes when my friend turns on his phone, the usual Nokia information appears, then the "lo
-
i need to reinstall cs5. I had to uninstall it because it was quitting every time I tried to save any documents. (regardless of size) How do I reinstall without paying for it again? I have my serial numbers and whatnot....
-
My purchase is gone after changing appleID
Hi all. Our iPad was first registered to my husband's appleID. We tried to purchase a child's game using the appleID. However, since my husband did not remember his verification questions, I've created my apple ID and purchased the game using it. Whe
-
I´m blind can i use an mac insted of pc?
i´m only used to windows, and i want to change to mac. I have software for pc "jaws" that made posible for me to use the computer. I don´t know anyone that uses mac, so i´m not sure if there is software for mac that made posible ofr me to use it. I´m
-
All of a sudden, Preview has stopped working. It won't open any document, and it no longer appears in any Control-Click <Open With> list. Preview itself opens OK though. It was working fine until recently, and I can't think of any event that could ha