There is Tcode CU51which is for Order BOM ,Is there any BAPI for OrderBOM.
Hi All,
There is Tcode CU51which is for Order BOM , So is there any BAPI for that Ordre BOM
pls can you help me
thanks
mars
Hi,
Refer These links:
https://forums.sdn.sap.com/click.jspa?searchID=13707386&messageID=5726376
https://forums.sdn.sap.com/click.jspa?searchID=13707605&messageID=4868211
Regards,
Shiva Kumar
Similar Messages
-
Hi All,
Is there any BAPI for Order BOM
PLS can you help me
thanks
marsHi,
Check ds BAPI..
BAPI_MATERIAL_BOM_GROUP_CREATE Creation of a material BOM group
BAPI_MAT_BOM_EXISTENCE_CHECK Check whether BOM for material exists
CSUL CRM Upload of BOM Data
BAPI_BOM_UPLOAD_SAVE Main Module for BOM Update (Upload from CRM)
Code_
DATA: BEGIN OF i_bom OCCURS 0,
matnr(18),
werks(4),
stlan(1),
stlal(2),
stktx(40),
bmeng(16),
menge(16),
posnr(4),
postp(1),
meins(3),
datuv(10),
fmeng(1),
idnrk(18),
potx1(40),
ausch(7),
END OF i_bom.
Extracting Document and Doc type for POSTP = D.
DATA : BEGIN OF i_stpo OCCURS 1,
doknr(25),
dokar(3),
posnr(4),
stlnr LIKE mast-stlnr,
END OF i_stpo.
Local work area
DATA: g_my_rec_in LIKE i_bom.
Declare internal table for Call Transaction and BDC Session
DATA: i_bdc_table LIKE bdcdata OCCURS 0 WITH HEADER LINE.
Global Variables *
DATA: g_counter(2) TYPE n,
g_field_name(18) TYPE c,
zc_yes TYPE syftype VALUE 'X'.
Selection Screen *
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
PARAMETERS: p_fname1 TYPE localfile .
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-002.
PARAMETERS: p_rloc1 AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN BEGIN OF BLOCK c WITH FRAME TITLE text-005.
PARAMETERS p_group(12) OBLIGATORY DEFAULT 'ZBOM'.
SELECTION-SCREEN END OF BLOCK c.
SELECTION-SCREEN END OF BLOCK b.
SELECTION-SCREEN END OF BLOCK a.
**WRITE the report header
TOP-OF-PAGE.
INCLUDE zheading.
Start of selection *
START-OF-SELECTION.
Load Input file
PERFORM f_load_input_file.
Create BDC records.
PERFORM create_bdc_records .
*& Form Create_BDC_records
text:* perform the BDC for the records in the internal table
--> p1 text
<-- p2 text
FORM create_bdc_records .
DATA: v_stlnr LIKE mast-stlnr.
DATA: v_postp(1) VALUE 'D'.
IF NOT i_bom[] IS INITIAL.
Open BDC session
PERFORM open_bdc_session.
SORT i_bom BY matnr werks posnr.
SELECT SINGLE stlnr INTO v_stlnr
FROM mast
WHERE matnr = i_bom-matnr
AND werks = i_bom-werks.
SELECT doknr dokar posnr stlnr
INTO TABLE i_stpo
FROM stpo
FOR ALL ENTRIES IN i_bom
WHERE postp = v_postp
AND posnr = i_bom-posnr
AND stlnr = v_stlnr.
SORT i_stpo BY posnr stlnr.
LOOP AT i_bom.
g_my_rec_in = i_bom.
READ TABLE i_stpo WITH KEY posnr = i_bom-posnr
stlnr = v_stlnr
BINARY SEARCH.
AT NEW matnr.
CLEAR i_bdc_table[].
PERFORM insert_screen_header.
ENDAT.
Setting up counter for 20 line items
IF g_counter = 20.
g_counter = 1.
ENDIF.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
*next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0140'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29P-FMENG(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
CONCATENATE 'RC29P-POSNR(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-posnr.
CONCATENATE 'RC29P-IDNRK(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-idnrk.
CONCATENATE 'RC29P-MENGE(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-menge.
CONCATENATE 'RC29P-MEINS(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-meins.
CONCATENATE 'RC29P-POSTP(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-postp.
CONCATENATE 'RC29P-FMENG(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_bom-fmeng.
*next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0130'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
Check the Item category to direct the screen flow accordingly.
CASE i_bom-postp.
WHEN 'B'.
PERFORM item_text_insert.
WHEN 'Z'.
PERFORM item_text_insert.
WHEN 'T'.
PERFORM item_text_insert.
WHEN 'N'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29P-AUSCH'.
PERFORM bdc_field USING 'RC29P-AUSCH' i_bom-ausch.
next screen
PERFORM item_text_insert.
*next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0133'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'RC29P-EKORG' ' '.
WHEN 'D'.
PERFORM bdc_field USING 'RC29P-DOKNR' i_stpo-doknr.
PERFORM bdc_field USING 'RC29P-DOKAR' i_stpo-dokar.
next screen
PERFORM item_text_insert.
When POSTP = X, L.
WHEN OTHERS.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29P-AUSCH'.
PERFORM bdc_field USING 'RC29P-AUSCH' i_bom-ausch.
next screen
PERFORM item_text_insert.
ENDCASE.
g_counter = g_counter + 1.
next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0140'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29P-POSNR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=FCBU'.
AT END OF matnr.
PERFORM insert_bdc_new.
ENDAT.
ENDLOOP.
CLEAR i_bom[].
PERFORM close_bdc_session.
Release the BDC sessions created
PERFORM release_bdc.
ENDIF.
ENDFORM. " open_group
*& Form bdc_dynpro_start
Initialize the screen
-->P_G_PROGRAM_1
-->P_G_SCREEN
FORM bdc_dynpro USING p_g_program_1
p_g_screen.
CLEAR i_bdc_table.
i_bdc_table-program = p_g_program_1.
i_bdc_table-dynpro = p_g_screen.
i_bdc_table-dynbegin = 'X'.
APPEND i_bdc_table.
ENDFORM. " bdc_dynpro_start
*& Form bdc_field
Insert field *
FORM bdc_field USING f_name f_value.
CLEAR i_bdc_table.
i_bdc_table-fnam = f_name.
i_bdc_table-fval = f_value.
APPEND i_bdc_table.
ENDFORM. "bdc_insert_field
*& Form open_bdc_session
Open the BDC session
FORM open_bdc_session .
Open BDC session and creat and update condition records
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
client = sy-mandt
DEST = FILLER8
group = p_group
HOLDDATE = FILLER8
keep = 'X'
user = sy-uname
RECORD = FILLER1
PROG = SY-CPROG
IMPORTING
QID =
EXCEPTIONS
client_invalid = 1
destination_invalid = 2
group_invalid = 3
group_is_locked = 4
holddate_invalid = 5
internal_error = 6
queue_error = 7
running = 8
system_lock_error = 9
user_invalid = 10
OTHERS = 11
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. " create_bdc_session
*& Form insert_screen_header
Insert the Header data into the screens
FORM insert_screen_header .
g_counter = 1.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29N-STLAL'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'RC29N-MATNR' g_my_rec_in-matnr.
PERFORM bdc_field USING 'RC29N-WERKS' g_my_rec_in-werks.
PERFORM bdc_field USING 'RC29N-STLAN' g_my_rec_in-stlan.
PERFORM bdc_field USING 'RC29N-STLAL' g_my_rec_in-stlal.
PERFORM bdc_field USING 'RC29N-DATUV' g_my_rec_in-datuv.
next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29K-BMENG'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'RC29K-STKTX' g_my_rec_in-stktx.
PERFORM bdc_field USING 'RC29K-BMENG' g_my_rec_in-bmeng.
*next screen
PERFORM bdc_dynpro USING 'SAPLCSDI' '0111'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29K-LABOR'.
ENDFORM. " insert_screen_header
*& Form insert_bdc
Insert the BDC session
FORM insert_bdc_new .
CALL FUNCTION 'BDC_INSERT'
EXPORTING
tcode = 'CS01'
POST_LOCAL = NOVBLOCAL
PRINTING = NOPRINT
SIMUBATCH = ' '
CTUPARAMS = ' '
TABLES
dynprotab = i_bdc_table
EXCEPTIONS
internal_error = 1
not_open = 2
queue_error = 3
tcode_invalid = 4
printing_invalid = 5
posting_invalid = 6
OTHERS = 7
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR i_bdc_table[].
ENDFORM. " insert_bdc
*& Form close_bdc_session
Close the BDC session
FORM close_bdc_session .
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
not_open = 1
queue_error = 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. " close_bdc_session
*& Form f_load_input_file
Load the file into the Internal table
FORM f_load_input_file.
IF p_rloc1 = zc_yes.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_fname1
filetype = 'DAT'
TABLES
data_tab = i_bom
EXCEPTIONS
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
STOP.
ENDIF.
ENDIF.
ENDFORM. " f_load_input_file
*& Form release_bdc
Release BDC session
FORM release_bdc.
SUBMIT rsbdcsub WITH mappe EQ p_group
WITH von EQ sy-datum
WITH bis EQ sy-datum
WITH fehler EQ '.'
EXPORTING LIST TO MEMORY
AND RETURN.
ENDFORM. " release_bdc
*& Form item_text_insert
Repetitive code in the screen flow
FORM item_text_insert.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0131'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC29P-POTX1'.
PERFORM bdc_field USING 'RC29P-POTX1' i_bom-potx1.
ENDFORM. " item_text_insert
Reward If Helpfull
regards,
Mehul -
Purchase Requisition for Order BOM components ?
Dear Members :
Can I generate purchase requisition for Order BOM components from VA01 ? Mine is TAQ - the header itm cat and TAE for sub-items (finished prod) . While navigating within Sales Order and branching to a particular component's shced. line - the pruch req col is blank. The schedule line cat for the sub-item is CT.
Could someone please explain the configuration steps I need to maintain for the above ? What I am expecting is when I save the Sales Order it should create Purch Req for the components which do not have enough stock.
Thanks
AtanuHi :
Thanks for your advice. Couple of things :
1. In my system in auto acc assignment, I already have consumption acc under posting key GBB. Now I am getting error in VA01 - which states that "The system was not able to determn a consumption acc for purchase order item with acc assignment" and also suggesting to address "GBB posting key". I made the following changes for CT :
movt : 101
order type : NB
item cat : 0
acc assignment cat : F/C
2. Obviously SAP is expecting a consumption GL acc, which though is there under GBB-AUF from my existing setup. For generating purch req this is strange becoz I haven't yet gone upto PO generation step nor released the supposed to be Purch Req. for BOM component - and this is before I save the Sales Order .
3. In spro->acc grouping for mov type; I don't see the following combination in SAP ie,
101(MvT) - B (MvT) - GBB (TEKey) - AUF. I need B instead of F which is already there and is for production order but the BOM comp has to be for PO but the combination is not there.
Do you think this could be the reason that SAP couldn't find the GL acc ?
4. Also my purpose was not just to raise a purch req every time the sales order is created for the BOM components - only if there is shortage in stock - but then again for CT once I assign the above, it doesn't allow to check the boxes like Availbility , Requrmnt etc. (??)
Am I clear and could you please suggest me what I am missing or doing wrong ? What movement type do you siggest to enter in CT fields.
Thanks so much for your time.
Atanu -
Is there any BAPI for BOM creation? which does by RCSBI010 / Batch Input.
Hi Experts,
I need to Upload the extracted Excel-file(.txt) for BOM creation, so, pls, let me know that, Is there any BAPI for this purpose. In detail the requirement is that,
The suggested idea shuld work as like as pgm. RCSBI010
thanq
Edited by: Srinivas on Feb 14, 2008 6:18 PMHi Srinivas,
Try these Function Modules
CS_BI_BOM_CREATE_BATCH_INPUT - Create BOM Via Batch Input
CS_BI_BOM_CREATE_BATCH_INPUT1 - Create BOM Via Batch Input (Corrected Session Handling)
There are two BAPI's too, which can be used
ALE_MATERIAL_BOM_GROUP_CREATE
BAPI_MATERIAL_BOM_GROUP_CREATE - Creation of a material BOM group
Hoe this helps.
Edited by: Priyabrata Samanta on Feb 15, 2008 3:56 AM -
Dear All,
Can anyone tell me setting for order bom so that the order BOM is exploded in sales order and MRP can be carried out on this BOM
Regards
PrashantHi,
Pls. find the details of Maintaining an Order BOM without Variant Configuration as below :
Create an Order BOM :
Prerequisites:
You have entered the sales order for which you want to create the order BOM.
Procedure:
1.Choose Logistics ® Production ® Master data ® Bills of material ® Bill of material ® Order BOM ® Create.
The Create Order BOM: initial screen appears.
2.Enter the sales order number, the order item, the material number and the BOM usage.
If you want to use a material BOM, or an existing order BOM to copy from, go to step 4. If you want to create an order BOM without a reference, click and go to step 7.
You cannot use a configurable BOM as a reference.
3.Click Order BOM (copy order BOM) or Material BOM (copy material BOM).
The Copy material BOM or Copy order BOM dialog box appears.
4.Enter the data required and click .
The item overview appears, for the bill of material you are using as a reference.
5.Select the items you want to copy to the order BOM and click .
The item overview for your new order BOM appears. The items you transferred are displayed in the item overview.
6.Enter new items and alter items if necessary. Entering items in order BOMs is similar to entering items in material BOMs. However, you cannot enter class items in order BOMs. You can find further information in the Bills of Material documentation in Creating New Items.
Save your order BOM.
Example: Creating Order BOM Without Variant Configuration :
The material BOM for material A contains components B and C, which are themselves assemblies. The material BOM for material C contains components D and E and the material BOM for material C contains components F and G.
A sales order is created for customer Smith, with the number 821. Material A is inserted under sales order item 10 in this sales order. At the request of customer Smith, for this sales order, the bill of material for assembly C is changed manually. Component H is added to components F and G. This change should not take effect in the material BOM, because assembly C is only expected to be produced once in this form, for customer Smith.
An order BOM is generated from the material BOM for material C. Since nothing was changed in the bills of material for materials A and B, in this sales order the material BOM will continue to be used for these assemblies.
Hope this helps.
Revert if any doubt and reward if useful.
Regards,
Tejas -
Is there any BAPI for QE51 Tcode?
Is there any BAPI for QE51 Tcode?
Hi,
I think there is no Bapi for this QE51.
Just check the fun Modules:
IEQCM_WORKLIST_CHECK
IEQCM_WORKLIST_REALIZE
IEQCM_WORKLIST_CONFIRM_STEP2
IEQCM_WORKLIST_DELETE
IEQCM_WORKLIST_GET_DETAIL
IEQCM_WORKLIST_GET_LIST
IEQCM_WORKLIST_SAVE
IEQCM_WORKLIST_UPDATE_MODULE
Regards,
Anji -
Fields for Super BOM, Work Center & Super Routing for Variant Config
hi! gurus,
Please can you give me mandatory fields & values for Super BOM, Work Center & Super Routing for Variant Config
thank youHi,
In the Super BOM you need to maintain the object dependencies.
Workcenter fields are as usual for other production processes.
Also you can use search option in the forum to view the threads posted in the past. There are many posts related to variant configuration.
Regards,
Senthilkumar -
Any BAPI for tcode :FB50/FB50L
HI ,
is there any BAPI for tcode FB50 & FB50L.
POints will be rewarded
Thanks in advacnehi
List of all BAPIs
http://www.planetsap.com/LIST_ALL_BAPIs.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
regards
ravish
<b>plz dont forget to reward points if helpful</b> -
Is there any Bapi for Physical Sample creation
Hi Folks,
Is there any Bapi for physical sample creation. My scenario is like this I have the data in the table (material, plant, batch, type,vendor, vendorbatch ). For each material i have to create a physical sample......
Any ideas or suggestions would be appreciated..
thanks
chaithanya.HI Chaitanya,
You can use : BAPI_BATCH_CREATE
it has import paramaters like Material, Plant , batch , Batch Attributes ( Vendor No, Vendor Batch etc)... I guess this is what you are looking for.
Regards,
-Venkat. -
Problem of BOM components uploading through BAPI,for the Network(CN01)
Hello,Friends,
Iam PP consultant and facing a problem of BOM components uploading through BAPI,for creating of the Network (CN21)
we have 300 components in the network activity and while uploading the BOM through BAPI , only 295 components has been uploaded.Others components has not uploaded.
Please suggest me what will be the Problem? and
What is the solution for the same?
Regards,
MYSin customizing availability checked has been applied ,for this reason one additional screen is appearing in BAPI for all these components
How this screen could be by passed -
Are there any bapi for create Business Partner
Dear Sir,
Do you know are there any bapi for create Business Partner in CRM
Please advise.
Thank you and best ergards,
VimolDear Vimol,
BAPI_BUPA_CREATE_FROM_DATA ......SAP BP, BAPI: Create Business Partner
BAPI_BUPA_FS_CREATE_FROM_DATA .......SAP BP, BAPI: Create Business Partner
BAPI_BUPA_FS_CREATE_FROM_DATA2 .......SAP BP, BAPI: Create Business Partner
Hope this will help.
Regards,
Naveen. -
Is there any BAPI FOR TASKLIST CREATION OF ANY EQUIPMENT ?
Dear Sir,
Is there any BAPI FOR TASKLIST CREATION OF ANY EQUIPMENT .
Thanks.
Regards,
Pooja Joshi.Hello Pooja
Perhaps the following link may be useful:
<a href="http://www.sapfans.com/forums/viewtopic.php?p=906052">FAQ: Plant Maintenance and Customer Service BAPIs</a>
Regards
Uwe -
Is there any BAPI for T-CODE:XK05?
The same as the title. Thanks!
Hi,
1.Execute tcode xk05 find a package.
2.execute se80 provide package name
extend BUSINES ENGINERING
BUSINESS OBJECT TYPES
METHODS SELECT RELEASED ONE
DOUBLE CLICK ON RELEASED METHOD
ONE WINDOW WILL OPEN
CLICK ON ABAP TAB
HERE U WILL GET BAPI FOR U R TCODE.
This is the way to find a BAPI for a prticular tcode.
Thanks&Regards,
Phani. -
Is there any BAPI for Upload Documents of WBS elements?
Hi Guys,
Can anbody tell me is there any BAPI for Uploading Documents of WBS elements ?
Thanks,
Gopi.hi
check these BAPI
Change WBS Elements Using BAPI
BAPI_BUS2054_CHANGE_MULTI
Create WBS Elements Using BAPI
BAPI_BUS2054_CREATE_MULTI
Delete WBS Elements Using BAPI
BAPI_BUS2054_DELETE_MULTI
Detail Data for WBS Elements
BAPI_BUS2054_GETDATA
Reading the GUIDs using the WBS Key
BAPI_BUS2054_GET_GUID_FROM_KEY
Reading the WBS Key using the GUIDs
BAPI_BUS2054_GET_KEY_FROM_GUID
Check Existence of a WBS Element
BAPI_PROJECT_EXISTENCECHECK
Element
thnks
sitaram -
hi all,
is there any bapi for salaryhi,
BAPI_ACC_EMPLOYEE_PAY_CHECK Accounting: Check Vendor Acct Assignment for HR Posting
BAPI_ACC_EMPLOYEE_PAY_POST Accounting: Post Vendor Acct Assignment for HR Posting
Maybe you are looking for
-
I'm trying to get a picture of the broader Java world. Reading the docs, I came across this: "A JavaBean is a reusable software component that is written in the Java programming language." Can somebody tell me what that means? How is that different f
-
HP Deskjet D 4160 using Windows 7 64bit. No error message but a yellow triamgle shows next to the printer in the devices and printers page. No changes were made. It worked yesterday, I locked the computer to go home, I unlocked it today and this p
-
Problem installing J2SE - Error 1324
For some reason the same error keeps apearing every time i try to run the installation, followed by "The path My Pictures contains an invalid character". I even tried moving the program to a different drive that's empty. After that didn't work i just
-
HR cube for employee and total gross compensation
Hi, I want to make a query which contains total number of employee and total gross compensation. can anyone suggest me any cube for this? ı am new on BW and ı cant give a decision about cubes. thanks,
-
hi, i wanted to know how to read the file line by line.after it reaches ther last line it has to start from the first line.. can u please help me out in this