BAPI needed for CU41
Hi,
Please let me kow if there is any standard BAPI for creating variant configuration profile in CU41.
Thanks.
If this is related to Sales Order -
BAPI_SALESORDER_CREATEFROMDAT2 is to be used with the structures populated:
1. ORDER_CFGS_REF STRUCTURE
2. ORDER_CFGS_INST STRUCTURE
3. ORDER_CFGS_PART_OF STRUCTURE
4. ORDER_CFGS_VALUE STRUCTURE
Similar Messages
-
BAPI needed for Material Planning T-code MD20
Hi,
BAPI needed for Material Planning T-code MD20.
Thank You.Hi,
I looked as I needed one too - no BAPI for this - I guess you need to go with batch input for MD20 (worked fine in my LSMW so I guess in ABAP it should be also good)
BR,
Tomek -
FM/BAPI needed for transaction KP06
Hi folks,
I need a BAPI/FM for posting using tcode KP06. I am using layout 1-102 Activity Input. I am passing data to cost center, sender cost center and sender activity type group . I need a BAPI to perform its posting which can be seen on the overview screen where we click the 'Line Items' button.
Please Help.
Thanks in advance .
Priyanka AshtekarDidnt get ur questions..
be precise..
Edited by: Manish hadiyel on May 27, 2008 7:47 AM -
BAPI needed for VL32 (Post goods receipt) and VT02 shipment transaction
Hi,
We are currently updating quantities and Performing a Post Goods Receipt against all associated inbound deliveries using BDC (VL32).
Also, updating the completion date of associated shipments by BDC (VT02).
As part of upgrade intiative ECC 6.0, we are trying to avoid BDC and looking for suitable BAPI's for the above tasks.
Please help us in this regard,
Thanks,
Madhan.Hi,
Please look following BAPI in Tcode BAPI.
For Transport
go tp Tcode BAPI --- > Logistic Exection ---> Transportaion .
For Billing.
go tp Tcode BAPI --- > Logistic Exection -> Shopping- >Inbound Delivery
You find many more BAPI in this Transaction.
BAPI for PGi is BAPI_GOODSMVT_CREATE.
To change the header details of a shipment use
SD_SHIPMENT_HEADER_CHANGE
To change the stage data use
SD_SHIPMENT_STAGE_APPEND
SD_SHIPMENT_STAGE_CHANGE
SD_SHIPMENT_STAGE_CHECK
SD_SHIPMENT_STAGE_DELETE
SD_SHIPMENT_STAGE_INSERT
To add deliveries to shipment use
SD_DELIVERY_ASSIGN_TO_SHIPMENT
Thanks & Regards.
ShreeMohan
Edited by: ShreeMohan Pugalia on Jul 17, 2009 8:18 AM -
BAPI needed for Goods Receipt Purchase Order(Transaction : MIGO)
Hi all,
We have a requirement where in we need to post the documents throuh BAPI for Goods receipt Purchase order(Transaction: MIGO).
Any inputs on this..is highly appreciable...
thanks in advance...
regards..
prathima.Hi,
use 'BAPI_GOODSMVT_CREATE'
Check this sample.
code
REPORT ZRICH_0001 .
Structures for BAPI
DATA: GM_HEADER TYPE BAPI2017_GM_HEAD_01.
DATA: GM_CODE TYPE BAPI2017_GM_CODE.
DATA: GM_HEADRET TYPE BAPI2017_GM_HEAD_RET.
DATA: GM_ITEM TYPE TABLE OF
BAPI2017_GM_ITEM_CREATE WITH HEADER LINE.
DATA: GM_RETURN TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
DATA: GM_RETMTD TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
CLEAR: GM_RETURN, GM_RETMTD. REFRESH GM_RETURN.
Setup BAPI header data.
GM_HEADER-PSTNG_DATE = SY-DATUM.
GM_HEADER-DOC_DATE = SY-DATUM.
GM_CODE-GM_CODE = '04'. " MB1A
Write 971 movement to table
CLEAR GM_ITEM.
MOVE '412' TO GM_ITEM-MOVE_TYPE .
MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
MOVE '3800533484' TO GM_ITEM-MATERIAL.
MOVE '1' TO GM_ITEM-ENTRY_QNT.
*MOVE 'PC' TO GM_ITEM-ENTRY_UOM.
MOVE '1060' TO GM_ITEM-PLANT.
MOVE '0007' TO GM_ITEM-STGE_LOC.
*MOVE '0901' TO GM_ITEM-MOVE_REAS.
MOVE 'P203601001' TO GM_ITEM-WBS_ELEM.
MOVE 'P203601001' TO GM_ITEM-VAL_WBS_ELEM.
APPEND GM_ITEM.
Call goods movement BAPI
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = GM_HEADER
GOODSMVT_CODE = GM_CODE
IMPORTING
GOODSMVT_HEADRET = GM_HEADRET
MATERIALDOCUMENT = GM_RETMTD
TABLES
GOODSMVT_ITEM = GM_ITEM
RETURN = GM_RETURN.
IF NOT GM_RETMTD IS INITIAL.
COMMIT WORK AND WAIT.
CALL FUNCTION 'DEQUEUE_ALL'.
ELSE.
COMMIT WORK AND WAIT.
CALL FUNCTION 'DEQUEUE_ALL'.
ENDIF.
WRITE:/ GM_RETMTD.
LOOP AT GM_RETURN.
WRITE:/ GM_RETURN.
ENDLOOP.
[/code]
Also check the Bapis
BAPI_PO_CREATE --> To create Purchase Order
BAPI_PO_CHANGE --> To change Purchase Order
BAPI_PO_GETDETAIL --> Todisplay Purchase Order
Regards,
Raj. -
Hi,
I need a BAPI for posting planned costs in transaction KP06.
The BAPI-s
BAPI_COSTELEM_CREATEMULTIPLE
BAPI_COSTELEMENTGRP_CREATE
BAPI_COSTELEMENTGRP_ADDNODE
are not working as per requirement.
Please suggest a BAPI for this transaction.
Thanks&Regards
AnanyaHi,
Have you tried
K_COSTELEMENT_CREATE
K_COSTELEMENT_CREATE_DB_UPDATE
K_COSTELEMENT_DELETE_DB_UPDATE
K_COSTELEMENT_REFRESH_BUFFERS
K_COSTELEMENT_SHOW
K_COSTELEM_BAPI_CHANGE
K_COSTELEM_BAPI_CREATEMULTIPLE
K_COSTELEM_BAPI_GETDETAIL
K_COSTELEM_BAPI_GETLIST
Try that should solve your probelm.
Assign points if it helps.
-Gaurang -
BAPI needed for change material(Transaction : MM02)
Hi all,
We have a requirement where in we need to post the documents throuh BAPI for change material (Transaction: MM02).
Any inputs on this..is highly appreciable...
thanks in advance...
regards..
prathima.CHECK THIS CODE
*& Report ZBAPI_MATERIAL_SAVEDATA
REPORT ZBAPI_MATERIAL_SAVEDATA NO STANDARD PAGE HEADING MESSAGE-ID (ZHNC).
TYPES:BEGIN OF TY_MAT,
MATERIAL(4),
IND_SECTOR(1),
MATL_TYPE(4),
MATL_GROUP(9),
BASE_UOM(3),
BASE_UOM_ISO(3),
PLANT(4),
DEL_FLAG(1),
PUR_GROUP(3),
BASE_QTY(13),
STGE_LOC(4),
MRP_IND(1),
SALES_ORG(4),
DISTR_CHAN(2),
DEL_FLAG1(1),
MIN_ORDER(13),
LANGU(2),
MATL_DESC(40),
END OF TY_MAT.
DATA: IT_DATA TYPE TABLE OF TY_MAT,
WA_DATA LIKE LINE OF IT_DATA.
*decalraing flag
data: v_flag value ''.
*DECLARING WORK AREAs TO BE PASSED TO THE FUNCTION MODULE.
DATA: BAPI_HEAD LIKE BAPIMATHEAD,
BAPI_CLIENTDATA LIKE BAPI_MARA,
BAPI_CLIENTDATAX LIKE BAPI_MARAX,
BAPI_PLANTDATA LIKE BAPI_MARC,
BAPI_PLANTDATAX LIKE BAPI_MARCX,
BAPI_STORAGELOCATIONDATA LIKE BAPI_MARD,
BAPI_STORAGELOCATIONDATAX LIKE BAPI_MARDX,
BAPI_SALESDATA LIKE BAPI_MVKE,
BAPI_SALESDATAX LIKE BAPI_MVKEX,
BAPI_MAKT LIKE BAPI_MAKT,
BAPI_RETURN LIKE BAPIRET2.
*INTERNAL TABLE TO HOLD THE MATERIAL DESCRIPTION
DATA: BEGIN OF IT_MAKT OCCURS 0.
INCLUDE STRUCTURE BAPI_MAKT.
DATA END OF IT_MAKT.
DATA:BEGIN OF IT_RET OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA END OF IT_RET.
*INTERNAL TABLE TO HOLD HEADER DATA
DATA: IT_EXCEL TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
*SELECTION-SCREEN ELEMENTS
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER: FNAME TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT 'C:\Documents and Settings\Administrator\Desktop\MATMAS.XLS' .
PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK B1.
*DECLARATION OF EXCELAL TABLE
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FNAME.
PERFORM F_GET_FILE USING FNAME.
START-OF-SELECTION.
PERFORM F_XLS_ITAB USING FNAME
CHANGING IT_EXCEL.
PERFORM F_MOVE_DATA.
perform F_GET_DATA.
*& Form F_GET_FILE
text
-->P_FNAME text
<--P_SY_SUBRC text
FORM F_GET_FILE USING P_FNAME LIKE FNAME.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SYST-REPID
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
STATIC = ' '
MASK = ' '
CHANGING
FILE_NAME = P_FNAME
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE E006(ZHNC).
ENDIF.
ENDFORM. " F_GET_FILE
*& Form F_XLS_ITAB
text
-->P_FNAME text
<--P_IT_EXCEL text
FORM F_XLS_ITAB USING P_FNAME
CHANGING P_IT_EXCEL.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = FNAME
I_BEGIN_COL = P_BEGCOL
I_BEGIN_ROW = P_BEGROW
I_END_COL = P_ENDCOL
I_END_ROW = P_ENDROW
TABLES
INTERN = IT_EXCEL
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " F_XLS_ITAB
*& Form F_MOVE_DATA
text
--> p1 text
<-- p2 text
FORM F_MOVE_DATA .
DATA : LV_INDEX TYPE I.
FIELD-SYMBOLS <FS>.
*--- Sorting the internal table
SORT IT_EXCEL BY ROW COL.
CLEAR IT_EXCEL.
LOOP AT IT_EXCEL.
MOVE IT_EXCEL-COL TO LV_INDEX.
*--- Assigning the each record to an internal table row
ASSIGN COMPONENT LV_INDEX OF STRUCTURE WA_DATA TO <FS>.
*--- Asigning the field value to a field symbol
MOVE IT_EXCEL-VALUE TO <FS>.
AT END OF ROW.
APPEND WA_DATA TO IT_DATA.
CLEAR WA_DATA.
ENDAT.
ENDLOOP.
ENDFORM. " F_MOVE_DATA
*& Form F_GET_DATA
text
--> p1 text
<-- p2 text
FORM F_GET_DATA .
LOOP AT IT_DATA INTO WA_DATA.
MOVE-CORRESPONDING WA_DATA TO BAPI_HEAD.
BAPI_HEAD-BASIC_VIEW ='X'.
BAPI_HEAD-SALES_VIEW ='X'.
BAPI_HEAD-PURCHASE_VIEW ='X'.
BAPI_HEAD-STORAGE_VIEW ='X'.
MOVE-CORRESPONDING WA_DATA TO BAPI_CLIENTDATA.
BAPI_CLIENTDATAX-MATL_GROUP = 'X'.
BAPI_CLIENTDATAX-BASE_UOM = 'X'.
BAPI_CLIENTDATAX-BASE_UOM_ISO = 'X'.
MOVE-CORRESPONDING WA_DATA TO BAPI_PLANTDATA.
BAPI_PLANTDATAX-PLANT = BAPI_PLANTDATA-PLANT.
BAPI_PLANTDATAX-DEL_FLAG = 'X'.
BAPI_PLANTDATAX-PUR_GROUP = 'X'.
BAPI_PLANTDATAX-BASE_QTY = 'X'.
MOVE-CORRESPONDING WA_DATA TO BAPI_STORAGELOCATIONDATA.
BAPI_STORAGELOCATIONDATA-PLANT = BAPI_PLANTDATA-PLANT.
BAPI_STORAGELOCATIONDATAX-PLANT = BAPI_STORAGELOCATIONDATA-PLANT.
BAPI_STORAGELOCATIONDATAX-STGE_LOC = BAPI_STORAGELOCATIONDATA-STGE_LOC.
BAPI_STORAGELOCATIONDATAX-MRP_IND = 'X'.
MOVE-CORRESPONDING WA_DATA TO BAPI_SALESDATA.
BAPI_SALESDATAX-SALES_ORG = BAPI_SALESDATA-SALES_ORG.
BAPI_SALESDATAX-DISTR_CHAN = BAPI_SALESDATA-DISTR_CHAN.
BAPI_SALESDATAX-DEL_FLAG = BAPI_SALESDATA-DEL_FLAG.
BAPI_SALESDATAX-MIN_ORDER = 'X'.
REFRESH IT_MAKT.
IT_MAKT-LANGU = WA_DATA-LANGU.
IT_MAKT-MATL_DESC = WA_DATA-MATL_DESC.
APPEND IT_MAKT.
CLEAR IT_RET.
REFRESH IT_RET.
PERFORM F_CALL_BAPI.
READ TABLE IT_RET WITH KEY TYPE = 'S'.
IF SY-SUBRC EQ 0.
PERFORM F_BAPI_COMMIT.
WRITE:/ 'MATERIAL CREATED OR UPDATED SUCESSFULLY WITH MATERIAL NO',WA_DATA-MATERIAL.
ELSE.
MESSAGE E000(ZHNC) WITH 'ERROR IN CREATING THE MATERIAL'.
*WRITE: / 'ERROR IN CREATIN MATERIAL',IT_RET-MESSAGE.
*PERFORM F_DOWNLOAD.
ENDIF.
*ENDIF.
ENDLOOP.
ENDFORM. " F_GET_DATA
*& Form F_CALL_BAPI
text
--> p1 text
<-- p2 text
FORM F_CALL_BAPI .
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_CLIENTDATA
CLIENTDATAX = BAPI_CLIENTDATAX
PLANTDATA = BAPI_PLANTDATA
PLANTDATAX = BAPI_PLANTDATAX
STORAGELOCATIONDATA = BAPI_STORAGELOCATIONDATA
STORAGELOCATIONDATAX = BAPI_STORAGELOCATIONDATAX
SALESDATA = BAPI_SALESDATA
SALESDATAX = BAPI_SALESDATAX
IMPORTING
RETURN = IT_RET
TABLES
MATERIALDESCRIPTION = IT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
APPEND IT_RET.
ENDFORM. " F_CALL_BAPI
*& Form F_BAPI_COMMIT
text
--> p1 text
<-- p2 text
FORM F_BAPI_COMMIT .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
ENDFORM. " F_BAPI_COMMIT -
BAPI needed for goods receipt for delivery created from sales order
Hi experts,
I need help.
I want to post goods receipt for the delivery created from sales order. I have tried out BAPI BAPI_GOODSMVT_CREATE but I am not able to post it.
Is there any way to post this? I need BAPI and not FM MB_*....
Thanks & REgards,
Bhavin A. ShahHi,
Please refer to link,
https://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_GOODSMVT_CREATE-ABAP
Regards
Shree -
BAPI needed for recording of the Tcode XK01
Hi,
We need to Create a BAPI containing the recording of the transaction XK01 with all mandatory and required parameters being passed to the code via import parameters and tables. Let me know how we can do this....
I have taken all the mandatory fields for XK01 Tcode in import parameters and the tables related to this in the table parameter. Could you please let me know how we can develop this BAPI.
Regards,
Ramesh.Hi Ramesh,
You can try to leverage the code from BAPI_VENDOR_CREATE
Cheers
VJ -
Hi All
I am uploading 1lac Serial No's for the IQ01 txn against the material. For this I am using BDC of IQ01 but its taking long time.
Please suggest any useful BAPI for IQ01 txn....
<< removed >>
Rgds
Deepanker
Please read Please read "The Forum Rules of Engagement" before posting! HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [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] before posting again.
Edited by: Rob Burbank on Jun 7, 2010 11:41 AMrefer:
Re: Any Interface for transaction IQ01
Reddy -
BAPI needed for transactionCU31
Hi
i want to create knowledge base objects for materials using transaction CU31.
Is there any BAPI available to do the sameHi ramesh,
Try this function module 'CUVK_MODIFY_KB_OBJECT'. I think there is no BAPI for this requirement.
Pls reward if it is useful.
Regrads,
Boobalan Suburaj -
BAPI needed for transaction CU42
hi,
I want to change materials which are having single level BOM to mutilevel. could any body provide a BAPI to do that. i am having around 10000 materials.
Regards ,
RameshDidnt get ur questions..
be precise..
Edited by: Manish hadiyel on May 27, 2008 7:47 AM -
Needed BAPI s for CC01,CC02,CC03
Hi Gurus,
Can any one give me list of BAPI s for CC01(create),CC02(change),CC03(display) in Engineering change management for change number. Help needed urgently. Points will be rewarded.
Regards,
k.cHi,
there are unfortunately no BAPIs available related to Engineering Change (Master, Request/Order).
But, for ECC 6.0, you might at least be able to leverage the new enterprise services available for ECR/ECO:
http://erp.esworkplace.sap.com/socoview(bD1lbiZjPTgwMCZkPW1pbg==)/smdisplay.asp?id=7E1E6599603711DA36BB000F20DAC9EF&fragID=&packageid=DBBB6D8AA3B382F191E0000F20F64781&context=&iv=
More of course needed ....
Regards, Ulf. -
Need BAPI Name for updation of Subcontracting scheduling line agreement
Hi All,
Can anybody please tell me BAPI Name for updation of Subcontracting scheduling line agreement from EKET table?
Note: BAPI_PO_CHANGE is not useful for me.
Thanks and Regards,
Atul.Hi Muralidhara,
Can you please give some more details for this BAPI..
I tried using it , but getting an error "No instance of object type PurchSchedAgreement has been created. External reference:"
and "Enter G/L Account" (Infact I did specify G/L account in account assignment table)
with regards,
Kirti -
Need for separate BAPI Structure for import parameters
Hi All,
I have a doubt regarding the logic behind declaring a separate BAPI structure for import paramters and use it.
Let me explain you clearly,
Whenever we pass an import parameter(like vendor number/sales order number) to an normal function module we declare it using either like/type referring to an existing dictionary structure field. but when the number of import parameters increase we may think of creating a single structure with all and use it for simplicity.
But when it is the case with a BAPI, it is suggested that we create a structure even when we have single import parameter.
for example.
supposing that we create a normal function module to get the details of a given Vendor, then we declare the import parameter as below
VENDORNO LIKE LFA1-LIFNR
But <b>if we observe the BAPI_VENDOR_DISPLAY, We find that declaration for the same as
VENDORNO like BAPIVENDOR_ID-VENDOR_NO,
where BAPIVENDOR_ID is a separate BAPI sturcture created and assocaited only with Business object "Vendor".</b>
I tried it by declaring as for a normal FM, even then it work fine.
Now my question is,
If SAP Suggests that we have a separate structure for all import parameters starting with name BAPI and use only those fields to reference with,
what is the logic/reason behind asking so.
I had created a BAPI with paramters referring to standard database fields like
VENDORNO like LFA1-LIFNR and it is still working
<b>I had also written interface programs using VB/ .NET to access the data from my own BAPI and standard BAPI's and both were working alike.</b>
so anyone <b>please give me the reason/logic behind declaring a separate BAPI stuture for all the import parameters to be used in a method</b>.
Thanks in advance,
LakshmiI would say that it really comes down to simplicity. Think of it this way, you are not an ABAPer, you must right a VB or a java program to call this BAPI from outside the system, you know nothing about R/3 or its data structures/tables. Now that said, think of what it would be like if all of the fields in the BAPI signature were like we find in the standard tables, LIFNR, etc. What is LIFNR, right? Since we are ABAPers we know that it is Vendor, but for others, they may not know. This is why you will find the signature of a BAPI very descriptive, notice that all of the fields describe the field in english. This is good for non-ABAPers. To organize all of these fields that may be used in the BAPI interface, it is good to put all of them in one defined structure, that way they are all in one place, and can be referenced as such. Again, BAPIs are designed to be used by ABAPers and non-ABAPers, so simplicity is important.
Regards,
Rich Heilman
Maybe you are looking for
-
We are trying to match some old open items for GR/IR from the year 2003. We have tried using the T-code f.13 to clear them off but the program just doesnt pick up the documents. There are no error messages. We have also tried using f-03 & f-30, but i
-
"New Message" Window Fails To Open
When I click on "New Message", no window opens up for me to compose an email. Does anyone know of anything that would cause this? How can I resolve this situation? Do I need to reinstall the program? Thanks for any assistance you can provide.
-
Need part number part name for Mac Mini 1.42.
On the back of the housing that holds the hard drive and the superdrive there is a brownish flexible plastic strip that is the length of the back of the mini. Well when I was doing an upgrade of the superdrive I bent this plastic piece out of shape a
-
hi can you please help me. i want to create an array, i get my data which is stored on the array on mysql database. here is my code: <% String[] subjects = {rsstudents.getObject("subj1"), rsstudents.getObject("subj2"), rsstudents.getObject("subj3"),
-
Problem in Fetching value from Employee Master Date in Crystal Report
Hi All, I am using the SAP Standard report for Sales Quotation and now my client needs a new requirement. That is, for certain sales employee they need a manger and the manager name, email, mobile no from employee master data should be fetched. I tri