Cs01,cs05,cs21
can anyone explain me what is the need of CS01 cs05 and cs21.some importent fields in these transactions and Interview questions on these transaction.
in real time at what time can we use these transactions.
Similar Messages
-
Tcode CS02 changed triggers idoc but not CS21 using BD21
Hi
when bom is changed using CS02 then when using BD21 triggers IDOC for the message type
but
when bom is changed using CS21 then it does not trigger idoc using BD21
I checked the code for BD21 message type function
I found that change pointer (bdcp2-object id ) is different for both transaction CS02 and CS21.
CS02 is updating object id with mast-stlal but this entry is missing for CS21
I am not able to find how the table (BDCP , BDCP2) for change pointers is updated for bom change.
Can you please let me know the patof code which i should check for updating the change pointers entries in BDCP , BDCP2 for bomI checked the sap system is creating enteries in cdhdr change pointer usin fm STUE_V_WRITE_DOCUMENT . I checked that when used TCODE CS05 the entry is updated for stlal as
In CS02 the entry for OBJID hold the value for stlal (Alternative BOM)
ie 500M0001064220110914 01 20110914
In CS21 the entry for OBJID does not hold the value for stlal (Alternative BOM)
ie 500M0001064220110913 20110913 (entry missing for stlal)
It clears the value of stlal . Is ther any sap note or configration setting for CS21 to get the value for alternative bom . -
Hi Experts,
I am facing following error while creating BOM in CS01.
Input must be in the format .__.___.__~,___VDear ,
it is an decimal formate problem in your user prfoile .Kindly goto SU3-Default Paramters -Change the Decimal Formate as per your requirement
Hope this will solve the issue .
Regards
JH -
Last line item gets changed to first line item for cs01
HI experts,
I have writen a BDC for Tcode cs01.
I am facing a problem in that.If sucppose there are 4 line items,
the first three line itmes are getting uploaded correctly but the kast line item gets changed to first line item.
below is part of my code.
DELETE ADJACENT DUPLICATES FROM T_MAT COMPARING MATNR.
SORT T_MAT BY MATNR. "HEADER DATA
SORT T_BOM BY MATNR1. "ITEM DATA
*CLEAR : COUNTER, ITEM_NO.
LOOP AT T_MAT INTO W_MAT.
REFRESH GT_BDCDATA.
CLEAR GW_BDCDATA.
perform bdc_dynpro using 'SAPLCSDI' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RC29N-STLAN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29N-MATNR' W_MAT-MATNR.
'lejn44001'.
perform bdc_field using 'RC29N-WERKS' W_MAT-PLANT.
'4600'.
perform bdc_field using 'RC29N-STLAN' W_MAT-BOM_USAGE.
'1'.
*perform bdc_field using 'RC29N-DATUV'
'22.06.2010'.
perform bdc_dynpro using 'SAPLCSDI' '0110'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29K-BMENG'
'1'.
perform bdc_field using 'RC29K-STLST'
'1'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-EXSTL'.
perform bdc_dynpro using 'SAPLCSDI' '0111'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-LABOR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
LOOP AT T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.
cnt = cnt + 1.
CONCATENATE '0' CNT INTO VAR.
ADD 1 TO COUNTER.
ITEM_NO = 10 * COUNTER.
OVERLAY ITEM_NO WITH '0000'.
W_BOM-ITM_NO = ITEM_NO.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSTP(03)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
PERFORM bdc_field USING new_mark W_BOM-BOM_COMP.
clear new_mark.
CONCATENATE 'RC29P-MENGE(' var ')' INTO new_mark.
PERFORM bdc_field USING new_mark W_BOM-QTY.
clear new_mark.
CONCATENATE 'RC29P-POSTP(' VAR ')' INTO NEW_MARK.
perform bdc_field USING new_mark W_BOM-ITM_CAT.
clear new_mark.
clear VAR.
ENDLOOP.
loop at T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.
perform bdc_dynpro using 'SAPLCSDI' '0130'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR'.
perform bdc_field using 'RC29P-POSNR' V_CNT.
'0010'.
perform bdc_field using 'RC29P-IDNRK' W_BOM-BOM_COMP.
'PURCHASECOST'.
perform bdc_field using 'RC29P-MENGE' W_BOM-QTY.
'20'.
perform bdc_field using 'RC29P-MEINS'
'M'.
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-SANKA'
'X'.
V_CNT = V_CNT + 10.
ENDLOOP.
CLEAR V_CNT.
perform screen_data. " IS ALL ABOUT CALLING TRANSACTION......
ENDLOOP.
following is The input file format m providing.
Material Plant BOM usage Item No Item Cat BOM component QUANTITY
WRJN46106 4600 1 10 z PURCHASECOST 10
WRJN46106 4600 1 20 z SOURCINGCOST 15
WRJN46106 4600 1 30 z INVRESERVE 12
WRJN46106 4600 1 40 Z INVRESERVE1 20
in this the first 3 line items are coming correctly but the 4th one gets changed to
first line item.
e.g INVRESERVE1 changes to purchasecost.
plz help.
Thanks n regards,
Ashmita singh.Hi Suneel,
I hardly can't believe that. There must be an mistake by your own in the smartform itself. Would you please share some screens or better, the smartform-XML itself. You can pass out everything else and just share the table and a dataset to try this.
I'm pretty sure that there is something wrong with the settings or even the loop itself. I never faced a problem like that or even heared about such things.
I would love to have a look inside.
Before you share it, create a new one with just the table inside and try it with the same data. Perhaps it is just of to much folders or something like that, so the generating comes in trouble.
Regards
Florian -
Inserting Record in a Z-Table during CS01 / CS02
Dear Sir,
We have a requirement that in Tcode CS01 / CS02 , for all new Records which are being created , we want that information like STLNR ,Itemcode and Quantity also must be posted in Z-Table . We are maintaining the Z-Table for history purpose .
Kindly guide us as what steps need to be followed to address this problem .
With Thanks and Rgds
Sonia AgarwalHi Check whether the badi 'BOM_EXIT' or 'BOM_UPDATE' is useful. From here you can update your 'Z' table.
-
Enable Generic Object Service (GOS) for CS01-CS03
Hi Gurus,
¿how I can enable GOS service in CS01-CS03 to use attachments, Workflow, notes, etc.?
Thanks.Hi,
Go through following links which will help you get details about GOS :
Generic Object Services (GOS)
http://wiki.sdn.sap.com/wiki/display/SI/FrequentlyaskedquestionsaboutGenericObjectServices+(GOS)
Hope this helps.
Regards,
Tejas -
How to Populate long text(item text) from BOM CS01 to CJ20N transaction
I have requiremnt in which i need to Populate long text/item text of BOM from CS01 to CJ20N transaction(PS network)
Hi Naveen,
for anylong text related work use the functions READ_TEXT and SAVE_TEXT.
read the long text of the BOM item using the proper header and then populate the same text lines to the PS network using the new header specific to the PS network.
Prabhas. -
Custom Field using screen exits CS01/CS02/CS03
Dear Experts,
I am using Screen exits to add some text description in CS01/CS02/CS03, my requirement is to add a field 'Product Appearance' with multiple lines for the material description. For this I have created customer field 'ZTEXT1' and appended it to STKO table. Now in screen painter(SE51) i need to add 3-4 lines of type stko-ztext1 because the product desc is of size 300-400 character.
I am not able to create 3-4 lines of type stko-ztext1. Can u plz suggest how can i add 3-4 lines of type stko-ztext1 in SE51.
I am able to create a blank field in SE51 using Edit->Grouping->Step Loop->Define, but while activating it is giving error as "Input/Outpt field STKO-ZTEXT1 and key word are not in the same screen".
Plz suggest.
RegardsHi Kurtt,
Below are the available user exits :-
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
PCSD0008 WBS BOM: Customer-specific explosion for creating
PCSD0009 Order/WBS BOM, determine URL page
PCSD0010 Order/WBS BOM, determine explosion date
PCSD0011 Knowledge-based order BOM, parallel update
PCSD0012 Customer - Mat. number/mat. number during material exchange
PCSD0013 Customer-specific processing of an explosion for BOM browser
PCSD0014 Knowledge-based order BOM: Status
Check which one suits your requirement.
Regards
Abhii -
ECM-Problem with Change number in CS01 and CS02 Transactions
Hi Experts,
I am creating or changing BOM's using above transactions. I am entering the change number while creation and changing the BOM to track the changes.Here my problem is these transactions are not validating the ECM number.
If you enter any value in the change number filed system is allowing me to create a BOM.
I am assuming that becasue of patches applied to system,I am getting this.
kindly help me out on this issue.
Thanks in Advance,
Regards,
Rakesh J
Edited by: J.Rakesh on Apr 22, 2009 10:26 PMDear Mangalraj,
Thanks for your reply.
We are not using CC01 transaction to create Change number. Z transaction is there to create change number.
My change number contain alpha numreic charectors Eg : 341793ABCXYZ
Yes, in CS01 system is accepeting any value that we enter :Eg: asddfgh. The value is not there in AENR table.
I observed one thing If I am going to chnage a material using MM02, there its not accepeting any value,its accepeting the values which are there in AENR table otherwise its giving error :Change Number XXXXXXXX does not exist.
My question is same thing should function in CS01 and CS02, why its not happening for these transactions.
Regards,
Rakesh J -
Any BAPI s or functional modules avilabe for Create BOM -- CS01
client using ECC6.0 ,, Actually we are converting legacy data (Excel) in to SAP R/3 . we are writing BDC program for this.
Any functional modules or BAPI are avilabe for convert data in to SAP R/3 for CS01 transaction. If any one know exact information give example and
parameters also..Check this BDC of CS01
*& Report YCS01_TEST
REPORT ycs01_test.
TYPE-POOLS truxs.
DATA:f_file TYPE string.
*TYPES: BEGIN OF ty_flat, " structure for flat file
*string(200),
*END OF ty_flat.
TYPES: BEGIN OF ty_head, " structure for header file
ind(2) TYPE n,
matnr(18) ,
werks(4) ,
stlan(1) ,
stlal(2) ,
datuv(10) ,
ztext(40),
bmeng(13) ,
bmein(3),
stlst(2) ,
END OF ty_head.
TYPES :BEGIN OF ty_item, "structure for item file
ind(2) TYPE n,
postp(1) ,
posnr(4) ,
idnrk(18) ,
menge(13),
meins(3) ,
potx1(40),
lgort(4) ,
sanka(1),
END OF ty_item.
TYPES :BEGIN OF ty_flat, " structure for final file
matnr(18) ,
werks(4) ,
stlan(1) ,
stlal(2) ,
datuv(10) ,
ztext(40),
bmeng(13) ,
bmein(3),
stlst(2) ,
postp(1) ,
posnr(4) ,
idnrk(18) ,
menge(13),
meins(3) ,
potx1(40),
lgort(4) ,
sanka(1),
END OF ty_flat.
INTERNAL TABLE DECLARATIONS *
DATA : t_flat TYPE TABLE OF ty_flat,
*t_flat1 TYPE TABLE OF ty_flat1,
t_head TYPE TABLE OF ty_head,
t_item TYPE TABLE OF ty_item,
t_bdcdata TYPE TABLE OF bdcdata,
t_bdcmsg TYPE TABLE OF bdcmsgcoll.
WORK AREA DECLARATIONS *
DATA : st_flat LIKE LINE OF t_flat,
*st_flat1 LIKE LINE OF t_flat1,
st_head LIKE LINE OF t_head,
st_item LIKE LINE OF t_item,
st_bdcdata LIKE LINE OF t_bdcdata,
st_bdcmsg LIKE LINE OF t_bdcmsg.
VARIABLES *
DATA : v_ind(2) TYPE n, " value 1,
v_fld(20),
v_no(2) TYPE n.
SELECTION SCREEN *
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001. "selection screen
PARAMETERS: p_fnam TYPE rlgrap-filename OBLIGATORY.
SELECTION-SCREEN : END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fnam.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = ' '
IMPORTING
file_name = p_fnam.
IF p_fnam IS NOT INITIAL.
VALIDATE FILE TYPE
PERFORM sub_validate_txt_type.
ENDIF.
START-OF-SELECTION.
f_file = p_fnam.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = f_file
filetype = 'ASC'
has_field_separator = '#'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
data_tab = t_flat
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
SORT t_flat BY posnr .
LOOP AT t_flat INTO st_flat.
MOVE :
st_flat-matnr TO st_head-matnr,
st_flat-werks TO st_head-werks,
st_flat-stlan TO st_head-stlan,
st_flat-stlal TO st_head-stlal,
st_flat-datuv TO st_head-datuv,
st_flat-ztext TO st_head-ztext,
st_flat-bmeng TO st_head-bmeng,
st_flat-bmein TO st_head-bmein,
st_flat-stlst TO st_head-stlst.
at new posnr.
move:
st_flat-posnr to st_item-posnr,
st_flat-postp to st_item-postp,
st_flat-idnrk to st_item-idnrk,
st_flat-menge to st_item-menge,
st_flat-potx1 to st_item-potx1,
st_flat-lgort to st_item-lgort,
st_flat-sanka to st_item-sanka.
ADD 1 TO v_ind.
ENDAT.
MOVE v_ind TO st_head-ind.
MOVE v_ind TO st_item-ind.
APPEND st_head TO t_head.
APPEND st_item TO t_item.
CLEAR st_head.
CLEAR st_item.
*CLEAR v_ind.
ENDLOOP.
CLEAR v_ind.
*perform open_group.
SORT t_item BY ind.
SORT t_head BY ind.
DELETE ADJACENT DUPLICATES FROM t_head.
DELETE ADJACENT DUPLICATES FROM t_item.
LOOP AT t_head INTO st_head.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29N-STLAN'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RC29N-MATNR'
st_head-matnr.
PERFORM bdc_field USING 'RC29N-WERKS'
st_head-werks.
PERFORM bdc_field USING 'RC29N-STLAN'
st_head-stlan.
PERFORM bdc_field USING 'RC29N-STLAL'
st_head-stlal.
PERFORM bdc_field USING 'RC29N-DATUV'
st_head-datuv.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29K-ZTEXT'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RC29K-ZTEXT'
st_head-ztext.
PERFORM bdc_field USING 'RC29K-BMENG'
st_head-bmeng.
PERFORM bdc_field USING 'RC29K-STLST'
st_head-stlst.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0111'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29K-LABOR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
LOOP AT t_item INTO st_item WHERE ind = st_head-ind.
ADD 1 TO v_no.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0140'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29P-POSTP(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
CONCATENATE 'RC29P-IDNRK(' v_no ')' INTO v_fld.
CONDENSE v_fld.
PERFORM bdc_field USING v_fld
st_item-idnrk.
CONCATENATE 'RC29P-MENGE(' v_no ')' INTO v_fld.
CONDENSE v_fld.
PERFORM bdc_field USING v_fld
st_item-menge.
CONCATENATE 'RC29P-MEINS(' v_no ')' INTO v_fld.
CONDENSE v_fld.
PERFORM bdc_field USING v_fld
st_item-meins.
CONCATENATE 'RC29P-POSTP(' v_no ')' INTO v_fld.
CONDENSE v_fld.
PERFORM bdc_field USING v_fld
st_item-postp.
PERFORM bdc_field USING 'BDC_SUBSCR'
'SAPLCSDI'.
v_no = 1.
ENDLOOP.
CLEAR v_no.
PERFORM bdc_field USING 'BDC_OKCODE'
'=FCBU'.
CALL TRANSACTION 'CS01' USING t_bdcdata MODE 'A'
UPDATE 'A' MESSAGES INTO t_bdcmsg.
REFRESH t_bdcdata.
CLEAR t_bdcdata.
ENDLOOP.
PERFORM fr_format_message.
Start new screen *
FORM bdc_dynpro USING program dynpro.
CLEAR st_bdcdata.
st_bdcdata-program = program.
st_bdcdata-dynpro = dynpro.
st_bdcdata-dynbegin = 'X'.
APPEND st_bdcdata TO t_bdcdata.
ENDFORM. "BDC_DYNPRO
Insert field *
FORM bdc_field USING fnam fval.
IF fval space. "NODATA.
CLEAR st_bdcdata.
st_bdcdata-fnam = fnam.
st_bdcdata-fval = fval.
APPEND st_bdcdata TO t_bdcdata.
ENDIF.
ENDFORM. "BDC_FIELD
FORM sub_validate_txt_type .
DATA : str1 TYPE localfile,
str2 TYPE char3.
SPLIT p_fnam AT '.'
INTO str1 str2.
TRANSLATE str2 TO LOWER CASE.
IF str2 NE 'txt'.
please enter '.txt' file format
MESSAGE i001(zmsg).
LEAVE LIST-PROCESSING.
ENDIF.
ENDFORM. "sub_validate_txt_type.
Regards. -
Shall i restrict CS01, CS02 by Material type wise
Dear all Gurus,
Please help me out to restrict the CS01 & CS02 by material type wise.
Thanks in Advance
pabaleDear Mr. Devendra,
Please let me know the configuration in details becoz i want to restrict the user for not to change the HALB TYPE BOM in CS02 but in case of FERT type he can change.
e.g.
BOM Creation user has to rights to create / change the BOM of material type FERT.
BOM Creation user has to rights to create / but no change authority the BOM of material type HALB.Change rights we have to assign to authority.
Hope from you positive feed back and thanks for immediate respond to both.
Regards,
Pabale -
BOM Alternative Check on CS01 screen
Dear All,
Right now i need to implement a user exit for the BOM alternative in CS01 screen. For a particular BOM Usage we should not allow the user to create alternative other than '1'. So before getting the automatic alternative i need to implement the user exit/Badi for the checking on the alternative.
thanks,
rajesh.Hi,
There is a standard customzing for alternative BOM in CS01...
SAP Customizing Implementation Guide --> Production --> Basic Data --> Bill of Material --> Control Data for Bills of Material --> Define Modification Parameters. If you tick the " Multiple BOM inactive" then nobody should be able to create other alternatives then 1. -
Hi All,
Can i know the table names for CS01 - Bill of Material in Production Planning?
and how could we extract this data into BW?
Guide me regardig the same
Thanks in advance..
Regards,
V.VijayHi...........
STPO >> BOM Item Details
STPU >> BOM Sub Items (designators)
STKO >> BOM Header Details
MAST >> BOM Group to Material
STZU >> BOM History Records
STAS >> BOM Item Selection
STPF >> BOM Explosion Structure
Hope this helps............
Regards,
Debjani.... -
Problem with t-code CS01 in BDC
hi expert,
i am working on t-code CS01.
i need to upload master data.
but in this while making BDC i am facing problem
in first screen we have to enter
1. material number
2. plant
3. bom usage
in second screen i want upload data upto 0150 item number.
i am facing problem because it is taking only first record and just coping
in rest of the item number.
so please suggest me any method for the same.
thanks in advance.
Regard,
vijuHi
This is just an ABAP problem.
It looks programmer had not recorded propoerly.
Before writing the programe they will record the transaction.
Pl. help him in recording the TCODE SC01.
Then ask the programmer to write after properly recording.
Hope it helps.
Regards
YMREDDY -
Hi,
Can someone give me the UserExit for CS01/CS02 which gets triggered at when the BOM is created or changed?
Please help.Its urgent.
Thanks,
Supriya Matta.SMOD
Enhancements: PCSD0005, PCSD0002, PCSD0003, PCSD0004, PCSD0008, PCSD0009
Maybe you are looking for
-
Blocked stk to unrstrd stk- movement type?
Hi All, What is the movement type for moving (transfer posting) from GR blocked stock to unrestricted stock? Regards, V S
-
Is there a spam filter for email?
Getting dozens of spam emails on iPad and iPhone each day. Is there a filter available?
-
Accrual for Interest rate SWAP
i want to know how acrual for Interest rate SWAP works from account assignment point of view i would really apprecaite if any1 can give me information or docuents for setting interest rate swap accrul
-
IPhone 6 Plus Shipment Times Per Verizon
I am now convinced that Verizon Wireless has no idea what is happening. Now the latest info I'm getting from two reps now is that if you ordered a 6 plus between 3am and 314am, you will get the phone on the 19th. If your ordered between 315am and 7am
-
Add field to E-Recruitment Candidate Profile / Personal Data Screen
Hi Experts, I have a very specific requirement. I need to display a date field from date spec infotype in e-recruitment. The date type will vary depending on the internal candidate's personnel subarea. This field needs to be visible to both the ca