Purchase requistion text
Hi
In my project, we need to use free line text in PR as a communication medium between material procurement planner (requester who creating PR) and buyer.Where and how we can maintain free text in PR?
-Prabu
Hi Prabhu,
If you want to create Item level texts in PR, you can do so. in me53n, there is a 'Texts' tab under Items. For this, make sure you have made necessary settings for texts under IMG customizing -> Purchasing -> Purchase Requisition -> Texts for Purchase Requisitions.
Regards,
Neetu
Similar Messages
-
Tables for Purchase Requistion Header and Item Texts
Hi,
In which Tables does Purchase Requistion Header and Item Texts will be stored.
Thanks in advanceNot sure , you can try with T166K , T166P
-
Default text source for text tab in purchase requistion.
Hi,
issue is about text which pops up when someone try to create purchase requisition using me51n. some text shows up under Text-item texts-item text at document level.This text should not be populated when someone creates purchase requisition.can some one help in finding the source for that text and how to stop it popping up in purchase requisitions gong forward.
second part of this issue is. one buyer has reported the text shows up only when in change mode.once you save the requisition its gone. i have seen this on screen when creating requisition text is in text editor but once you save it its gone.another buyer who is responsible to create purchase order has reported they can see the text when converts it in to purchase order and by going in requisition text can be found.
last part of this problem is i can't see this all in quality system every time i create purchase requisition text editor is blank.i am creating service requisition so material master text is out of scope.
one thing i noticed when some one creates the requisition in text- item texts -there two texts items " text and material po text " that has a green Ok sign in corresponding Any text field
Thanks,In standard, you can find the all links where the text is coming from.
Go to OLME-Purchase Requisition-Texts for Purchase Requisitions-Define Copying Rules
Here, select Item text and click on Text linkages. You will find the linkage from where the text is coming.
Second Part : Its quite not possible in standard, Check is there any development which is removing the text when you press save button.
Third Part: Yes. In standard, material PO text will come when you will use material in PR. Other than the field will show in your text line, but it will show blank.
The green tick mark shows when a text is successfully copied from any source. -
Error in vendor selection while creating Purchase requistions
Hi,
I was using bapi_requestion_create to create purchase requistion with different quotas for different vendors.
Ex: vendor A with 60%
vendor B with 40%
If the required quantity is 100 items then it has to split 60 items to vendor A and create seperate Puechase Requistion.
and for 40items with another Purchase requsition.
Currently iam able to split the noof purshcase requisiton but it was picking only with one vendor.
MY Code :
*******Split PRs with respect to Quota ************************
data : lv_lines type i,
lv_qty type p DECIMALS 4.
lv_qty = it_oo-qty.
DESCRIBE TABLE t_equp LINES lv_lines.
IF lv_lines GT 1.
clear : w_equp.
loop at t_equp into w_equp
where qunum = w_equk-qunum.
refresh : t_req_item.
clear : w_eord,
t_req_item[],
t_req_item.
READ TABLE t_eord INTO w_eord
WITH KEY matnr = it_oo_sum_purch-matnr_sap
werks = it_oo_sum_purch-plant
lifnr = w_equp-lifnr.
if sy-subrc is initial.
it_oo_purch-AGREE = w_eord-EBELN. "To Fill ALV
it_oo_purch-ITEM = w_eord-EBELP. "To Fill ALV
it_oo_purch-FORNEC = w_equp-LIFNR. "To Fill ALV
t_req_item-doc_type = c_zbmr.
t_req_item-pur_group = it_oo-ekgrp.
t_req_item-material = it_oo_sum_purch-matnr_sap.
t_req_item-plant = it_oo_sum_purch-plant.
t_req_item-AGREEMENT = w_eord-EBELN.
t_req_item-AGMT_ITEM = w_eord-EBELP.
t_req_item-FIXED_VEND = w_equp-LIFNR.
t_req_item-QUOTA_ARR = w_equk-qunum.
t_req_item-QUOTARRITM = w_equp-qupos.
t_req_item-gr_ind = c_x.
t_req_item-ir_ind = c_x.
t_req_item-MRP_CONTR = 'NOV'.
CONCATENATE it_oo_sum_purch-due_dte+4(4)
it_oo_sum_purch-due_dte+2(2)
it_oo_sum_purch-due_dte(2)
INTO t_req_item-deliv_date.
t_req_item-QUANTITY = ( w_equp-QUOTE / 100 ) * lv_QTY.
endif.
********Rounding off values*******************
data : lv_int(20) type c,
lv_dec(20) type c,
lv_tot(20) type c.
clear : lv_int ,
lv_dec,
lv_tot.
lv_tot = t_req_item-QUANTITY.
split lv_tot at '.' into lv_int lv_dec.
if lv_dec(1) ge '5'.
lv_int = lv_int + 1.
endif.
t_req_item-QUANTITY = lv_int.
APPEND t_req_item.
clear : v_number.
Create purchase requisition by group
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
IMPORTING
number = v_number
TABLES
requisition_items = t_req_item
return = t_return.
ERRO
IF t_return-type CO 'AE'.
CLEAR: v_msg, v_x.
CALL FUNCTION 'WRITE_MESSAGE'
EXPORTING
msgid = sy-msgid
msgno = sy-msgno
msgty = sy-msgty
msgv1 = sy-msgv1
msgv2 = sy-msgv2
msgv3 = sy-msgv3
msgv4 = sy-msgv4
IMPORTING
messg = v_msg.
PERFORM zf_grava_log_erro_oo
USING it_oo_purch it_oo_sum_purch v_msg v_x.
SUCESSO - Atualiza Tabela zsytmm_pr_po
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = c_X.
CLEAR: v_msg, v_x.
CONCATENATE text-026 v_number INTO v_msg
SEPARATED BY space.
it_oo_sum_purch-QTY = t_req_item-QUANTITY.
PERFORM zf_grava_log_sucesso_oo
USING it_oo_purch it_oo_sum_purch v_msg v_x.
CLEAR: zsytmm_pr_po.
vl_item = c_00001.
zsytmm_pr_po-banfn = v_number.
zsytmm_pr_po-bnfpo = vl_item.
zsytmm_pr_po-ebeln = c_false.
zsytmm_pr_po-ebelp = c_false.
zsytmm_pr_po-zshmode = it_oo_purch-shipm.
MODIFY zsytmm_pr_po.
ENDIF.
endloop.Hi,
You have to fill DES_VENDOR & FIXED_VEND of structure REQUISITION_ITEMS while calling BAPI. But while going through your code,
* t_req_item-FIXED_VEND = w_equp-LIFNR
is commented, uncomment the same and add line for DES_VENDOR also.
Regards
Vinod -
Purchase Requistion Header Note Required Mandatory
Hi,
Let us know how to make Purchase Requistion header note mandatory as we have to mention the justification of Purchase Requisition in header note which is generic for all items.Please let me know if any options.
regards
BalaHi,
In standard SAP you can copy header texts only from the below mentioned objects,
RFQ / Quotation
Purchase order
Contract
Vendor master
For Item texts you can copy from the below mentioned objects,
RFQ / Quotation
Purchase requisition
Purchasing info record
Contract
Scheduling agreement
Material master
Regards,
Prabu -
Purchase requistion number not been generated for material shopping carts
Dear Experts,
I am able to create a purchase requistion for text shopping carts once it is approved. For material if i create a shopping cart then status is showing approved(activated workflow without approval) but purchase requistion number not been generated.
It was happening suddenly...earlier i was able to generate PR for material shopping carts.
Please advise on this
Thanks
RavoHi Venkatesh,
Can you please give me the detail requirement. If you want generate a PR for catalogue items then you have to maintain the setting in SPRO_>srm->SRM SERVER->cross application basic settings-> define objects in backend systems...
Thanks
Ravi -
hi friends,
Please can anyone post the code for purchase requistion me51.
Points will be rewarded for the code given.
rreport ZSUM_BDC_ME51 no standard page heading line-size 255.
*include bdcrecx1.
data: bdc_DATA like bdcdata occurs 0 with header line,
mess_tab like bdcmsgcoll occurs 0 with header line.
DATA: BEGIN OF ITAB OCCURS 0 ,
WERKS LIKE T001W-WERKS,
BNFPO LIKE EBAN-BNFPO,
MATNR LIKE MARA-MATNR,
MENGE LIKE EBAN-MENGE,
END OF ITAB.
*parameters: dataset(132) lower case.
DO NOT CHANGE - the generated data section - DO NOT CHANGE
If it is nessesary to change the data section use the rules:
1.) Each definition of a field exists of two lines
2.) The first line shows exactly the comment
'* data element: ' followed with the data element
which describes the field.
If you don't have a data element use the
comment without a data element name
3.) The second line shows the fieldname of the
structure, the fieldname must consist of
a fieldname and optional the character '_' and
three numbers and the field length in brackets
4.) Each field must be type C.
Generated data section with specific formatting - DO NOT CHANGE
*data: begin of record,
data element: BBSRT
BSART_001(004),
data element: LPEIN
LPEIN_002(001),
data element: EWERK
WERKS_003(004),
data element: EKGRP
EKGRP_004(003),
data element: AUFEB
BNFPO_005(005),
data element: MATNR
MATNR_01_006(018),
data element: BAMNG
MENGE_01_007(017),
data element: TXZ01
TXZ01_008(040),
data element: BAMNG
MENGE_009(017),
data element: EEIND
EEIND_010(010),
data element: LPEIN
LPEIN_011(001),
data element: EKGRP
EKGRP_012(003),
data element: BADAT
BADAT_013(010),
data element: FRGDT
FRGDT_014(010),
data element: BAPRE
PREIS_015(014),
data element: WAERS
WAERS_016(005),
data element: EPEIN
PEINH_017(005),
data element: REPOS
REPOS_018(001),
data element: AUFEB
BNFPO_019(005),
data element: MATNR
MATNR_02_020(018),
data element: BAMNG
MENGE_02_021(017),
data element: TXZ01
TXZ01_022(040),
data element: BAMNG
MENGE_023(017),
data element: EEIND
EEIND_024(010),
data element: LPEIN
LPEIN_025(001),
data element: EKGRP
EKGRP_026(003),
data element: BADAT
BADAT_027(010),
data element: FRGDT
FRGDT_028(010),
data element: BAPRE
PREIS_029(014),
data element: WAERS
WAERS_030(005),
data element: EPEIN
PEINH_031(005),
data element: REPOS
REPOS_032(001),
data element: AUFEB
BNFPO_033(005),
end of record.
End generated data section ***
*start-of-selection.
CALL FUNCTION 'UPLOAD'
EXPORTING
CODEPAGE = ' '
FILENAME = 'C:\p01.txt'
FILETYPE = 'BIN'
ITEM = ' '
FILEMASK_MASK = ' '
FILEMASK_TEXT = ' '
FILETYPE_NO_CHANGE = ' '
FILEMASK_ALL = ' '
FILETYPE_NO_SHOW = ' '
LINE_EXIT = ' '
USER_FORM = ' '
USER_PROG = ' '
SILENT = 'S'
IMPORTING
FILESIZE =
CANCEL =
ACT_FILENAME =
ACT_FILETYPE =
TABLES
data_tab = itab
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 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.
loop at itab.
perform bdc_dynpro using 'SAPMM06B' '0100'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-BSART'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'EBAN-BSART'
'NB'.
perform bdc_field using 'RM06B-LPEIN'
'T'.
perform bdc_field using 'EBAN-WERKS'
ITAB-WERKS.
perform bdc_dynpro using 'SAPMM06B' '0106'.
perform bdc_field using 'BDC_CURSOR'
'RM06B-EKGRP'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RM06B-BNFPO'
ITAB-BNFPO.
perform bdc_dynpro using 'SAPMM06B' '0106'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-MENGE(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'EBAN-MATNR(01)'
ITAB-MATNR.
perform bdc_field using 'EBAN-MENGE(01)'
ITAB-MENGE.
perform bdc_dynpro using 'SAPMM06B' '0102'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-MENGE'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'RM06B-EEIND'
record-EEIND_010.
*perform bdc_field using 'RM06B-LPEIN'
record-LPEIN_011.
*perform bdc_field using 'EBAN-EKGRP'
record-EKGRP_012.
*perform bdc_field using 'EBAN-BADAT'
record-BADAT_013.
*perform bdc_field using 'EBAN-FRGDT'
record-FRGDT_014.
*perform bdc_field using 'EBAN-PREIS'
record-PREIS_015.
*perform bdc_field using 'EBAN-WAERS'
record-WAERS_016.
*perform bdc_field using 'EBAN-PEINH'
record-PEINH_017.
*perform bdc_field using 'EBAN-REPOS'
record-REPOS_018.
perform bdc_dynpro using 'SAPMM06B' '0106'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-MENGE(02)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'RM06B-BNFPO'
record-BNFPO_019.
*perform bdc_field using 'EBAN-MATNR(02)'
record-MATNR_02_020.
*perform bdc_field using 'EBAN-MENGE(02)'
record-MENGE_02_021.
perform bdc_dynpro using 'SAPMM06B' '0102'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-MENGE'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'EBAN-MENGE'
ITAB-MENGE_023.
*perform bdc_field using 'RM06B-EEIND'
record-EEIND_024.
*perform bdc_field using 'RM06B-LPEIN'
record-LPEIN_025.
*perform bdc_field using 'EBAN-EKGRP'
record-EKGRP_026.
*perform bdc_field using 'EBAN-BADAT'
record-BADAT_027.
*perform bdc_field using 'EBAN-FRGDT'
record-FRGDT_028.
*perform bdc_field using 'EBAN-PREIS'
record-PREIS_029.
*perform bdc_field using 'EBAN-WAERS'
record-WAERS_030.
*perform bdc_field using 'EBAN-PEINH'
record-PEINH_031.
*perform bdc_field using 'EBAN-REPOS'
record-REPOS_032.
perform bdc_field using 'EBAN-TXZ01'
'BEARING 2"X2"'.
perform bdc_field using 'EBAN-MENGE'
'65'.
perform bdc_field using 'RM06B-EEIND'
'2005/01/03'.
perform bdc_field using 'RM06B-LPEIN'
'D'.
perform bdc_field using 'EBAN-EKGRP'
'M11'.
perform bdc_field using 'EBAN-BADAT'
'2005/01/03'.
perform bdc_field using 'EBAN-FRGDT'
'2005/01/03'.
perform bdc_field using 'EBAN-PREIS'
' 1,120.00'.
perform bdc_field using 'EBAN-WAERS'
'EUR'.
perform bdc_field using 'EBAN-PEINH'
'1'.
perform bdc_field using 'EBAN-REPOS'
'X'.
perform bdc_dynpro using 'SAPMM06B' '0102'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-MENGE'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'EBAN-TXZ01'
'DRILLING PIPE 10"'.
perform bdc_field using 'EBAN-MENGE'
'75'.
perform bdc_field using 'RM06B-EEIND'
'2005/01/03'.
perform bdc_field using 'RM06B-LPEIN'
'D'.
perform bdc_field using 'EBAN-EKGRP'
'M11'.
perform bdc_field using 'EBAN-BADAT'
'2005/01/03'.
perform bdc_field using 'EBAN-FRGDT'
'2005/01/03'.
perform bdc_field using 'EBAN-PREIS'
' 0.53'.
perform bdc_field using 'EBAN-WAERS'
'EUR'.
perform bdc_field using 'EBAN-PEINH'
'1'.
perform bdc_field using 'EBAN-REPOS'
'X'.
perform bdc_dynpro using 'SAPMM06B' '0106'.
perform bdc_field using 'BDC_CURSOR'
'RM06B-BNFPO'
perform bdc_field using 'BDC_OKCODE'
'=BU'.
*perform bdc_field using 'RM06B-BNFPO'
CALL TRANSACTION 'ME51' USING BDC_DATA MODE 'A'.
endLOOP.
*perform close_group.
*perform close_dataset using dataset.
*& Form bdc_field
text
-->P_0166 text
-->P_0167 text
form bdc_field using FNAM FVAL.
CLEAR BDC_DATA.
BDC_DATA-FNAM = FNAM.
BDC_DATA-FVAL = FVAL.
APPEND BDC_DATA.
ENDFORM.
*endform. " bdc_field
*& Form bdc_dynpro
text
-->P_0076 text
-->P_0077 text
form bdc_dynpro using PROGRAM DYNPRO.
CLEAR BDC_DATA.
BDC_DATA-PROGRAM = PROGRAM.
BDC_DATA-DYNPRO = DYNPRO.
BDC_DATA-DYNBEGIN = 'X'.
APPEND BDC_DATA.
ENDFORM.
*endform.
I hope it should help you -
data: bdc_DATA like bdcdata occurs 0 with header line,
mess_tab like bdcmsgcoll occurs 0 with header line.
DATA: BEGIN OF ITAB OCCURS 0 ,
tcnt TYPE i, "Table Counter
WERKS LIKE T001W-WERKS,
BNFPO LIKE EBAN-BNFPO,
MATNR LIKE MARA-MATNR,
MENGE LIKE EBAN-MENGE,
END OF ITAB.
*parameters: dataset(132) lower case.
DO NOT CHANGE - the generated data section - DO NOT CHANGE
If it is nessesary to change the data section use the rules:
1.) Each definition of a field exists of two lines
2.) The first line shows exactly the comment
'* data element: ' followed with the data element
which describes the field.
If you don't have a data element use the
comment without a data element name
3.) The second line shows the fieldname of the
structure, the fieldname must consist of
a fieldname and optional the character '_' and
three numbers and the field length in brackets
4.) Each field must be type C.
Generated data section with specific formatting - DO NOT CHANGE
*data: begin of record,
data element: BBSRT
BSART_001(004),
data element: LPEIN
LPEIN_002(001),
data element: EWERK
WERKS_003(004),
data element: EKGRP
EKGRP_004(003),
data element: AUFEB
BNFPO_005(005),
data element: MATNR
MATNR_01_006(018),
data element: BAMNG
MENGE_01_007(017),
data element: TXZ01
TXZ01_008(040),
data element: BAMNG
MENGE_009(017),
data element: EEIND
EEIND_010(010),
data element: LPEIN
LPEIN_011(001),
data element: EKGRP
EKGRP_012(003),
data element: BADAT
BADAT_013(010),
data element: FRGDT
FRGDT_014(010),
data element: BAPRE
PREIS_015(014),
data element: WAERS
WAERS_016(005),
data element: EPEIN
PEINH_017(005),
data element: REPOS
REPOS_018(001),
data element: AUFEB
BNFPO_019(005),
data element: MATNR
MATNR_02_020(018),
data element: BAMNG
MENGE_02_021(017),
data element: TXZ01
TXZ01_022(040),
data element: BAMNG
MENGE_023(017),
data element: EEIND
EEIND_024(010),
data element: LPEIN
LPEIN_025(001),
data element: EKGRP
EKGRP_026(003),
data element: BADAT
BADAT_027(010),
data element: FRGDT
FRGDT_028(010),
data element: BAPRE
PREIS_029(014),
data element: WAERS
WAERS_030(005),
data element: EPEIN
PEINH_031(005),
data element: REPOS
REPOS_032(001),
data element: AUFEB
BNFPO_033(005),
end of record.
End generated data section ***
*start-of-selection.
PERFORM upload_data.
loop at itab.
perform bdc_dynpro using 'SAPMM06B' '0100'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-BSART'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'EBAN-BSART'
'NB'.
perform bdc_field using 'RM06B-LPEIN'
'T'.
perform bdc_field using 'EBAN-WERKS'
ITAB-WERKS.
perform bdc_dynpro using 'SAPMM06B' '0106'.
perform bdc_field using 'BDC_CURSOR'
'RM06B-EKGRP'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RM06B-BNFPO'
ITAB-BNFPO.
perform bdc_dynpro using 'SAPMM06B' '0106'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-MENGE(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'EBAN-MATNR(01)'
ITAB-MATNR.
perform bdc_field using 'EBAN-MENGE(01)'
ITAB-MENGE.
perform bdc_dynpro using 'SAPMM06B' '0102'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-MENGE'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'RM06B-EEIND'
record-EEIND_010.
*perform bdc_field using 'RM06B-LPEIN'
record-LPEIN_011.
*perform bdc_field using 'EBAN-EKGRP'
record-EKGRP_012.
*perform bdc_field using 'EBAN-BADAT'
record-BADAT_013.
*perform bdc_field using 'EBAN-FRGDT'
record-FRGDT_014.
*perform bdc_field using 'EBAN-PREIS'
record-PREIS_015.
*perform bdc_field using 'EBAN-WAERS'
record-WAERS_016.
*perform bdc_field using 'EBAN-PEINH'
record-PEINH_017.
*perform bdc_field using 'EBAN-REPOS'
record-REPOS_018.
perform bdc_dynpro using 'SAPMM06B' '0106'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-MENGE(02)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'RM06B-BNFPO'
record-BNFPO_019.
*perform bdc_field using 'EBAN-MATNR(02)'
record-MATNR_02_020.
*perform bdc_field using 'EBAN-MENGE(02)'
record-MENGE_02_021.
perform bdc_dynpro using 'SAPMM06B' '0102'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-MENGE'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'EBAN-MENGE'
ITAB-MENGE_023.
*perform bdc_field using 'RM06B-EEIND'
record-EEIND_024.
*perform bdc_field using 'RM06B-LPEIN'
record-LPEIN_025.
*perform bdc_field using 'EBAN-EKGRP'
record-EKGRP_026.
*perform bdc_field using 'EBAN-BADAT'
record-BADAT_027.
*perform bdc_field using 'EBAN-FRGDT'
record-FRGDT_028.
*perform bdc_field using 'EBAN-PREIS'
record-PREIS_029.
*perform bdc_field using 'EBAN-WAERS'
record-WAERS_030.
*perform bdc_field using 'EBAN-PEINH'
record-PEINH_031.
*perform bdc_field using 'EBAN-REPOS'
record-REPOS_032.
perform bdc_field using 'EBAN-TXZ01'
'BEARING 2"X2"'.
perform bdc_field using 'EBAN-MENGE'
'65'.
perform bdc_field using 'RM06B-EEIND'
'2005/01/03'.
perform bdc_field using 'RM06B-LPEIN'
'D'.
perform bdc_field using 'EBAN-EKGRP'
'M11'.
perform bdc_field using 'EBAN-BADAT'
'2005/01/03'.
perform bdc_field using 'EBAN-FRGDT'
'2005/01/03'.
perform bdc_field using 'EBAN-PREIS'
' 1,120.00'.
perform bdc_field using 'EBAN-WAERS'
'EUR'.
perform bdc_field using 'EBAN-PEINH'
'1'.
perform bdc_field using 'EBAN-REPOS'
'X'.
perform bdc_dynpro using 'SAPMM06B' '0102'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-MENGE'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'EBAN-TXZ01'
'DRILLING PIPE 10"'.
perform bdc_field using 'EBAN-MENGE'
'75'.
perform bdc_field using 'RM06B-EEIND'
'2005/01/03'.
perform bdc_field using 'RM06B-LPEIN'
'D'.
perform bdc_field using 'EBAN-EKGRP'
'M11'.
perform bdc_field using 'EBAN-BADAT'
'2005/01/03'.
perform bdc_field using 'EBAN-FRGDT'
'2005/01/03'.
perform bdc_field using 'EBAN-PREIS'
' 0.53'.
perform bdc_field using 'EBAN-WAERS'
'EUR'.
perform bdc_field using 'EBAN-PEINH'
'1'.
perform bdc_field using 'EBAN-REPOS'
'X'.
perform bdc_dynpro using 'SAPMM06B' '0106'.
perform bdc_field using 'BDC_CURSOR'
'RM06B-BNFPO'
perform bdc_field using 'BDC_OKCODE'
'=BU'.
*perform bdc_field using 'RM06B-BNFPO'
CALL TRANSACTION 'ME51' USING BDC_DATA MODE 'A'.
endLOOP.
FORM upload_data.
*local variable declaration
DATA : lv_index TYPE i,
l_count TYPE i.
*local constants declaration
CONSTANTS:
lc_start_col TYPE i VALUE '1' ,
lc_start_row TYPE i VALUE '2' ,
lc_end_col TYPE i VALUE '256' ,
lc_end_row TYPE i VALUE '65536'.
*local field symbol declaration
FIELD-SYMBOLS : <lf_s>.
*loacal internal table declaration
DATA : li_intern TYPE kcde_cells OCCURS 0 WITH HEADER LINE.
*refresh internal table for each loop
CLEAR: li_intern,
l_count .
REFRESH li_intern.
to upload the data in excel on the presentation server this function
module converts the data from excel file into an internal table
containing row no col no and value
CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
EXPORTING
filename = 'Give file location here'
i_begin_col = lc_start_col
i_begin_row = lc_start_row
i_end_col = lc_end_col
i_end_row = lc_end_row
TABLES
intern = li_intern
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2.
checking for data in internal table
CHECK NOT li_intern[] IS INITIAL.
sorting internal table
SORT li_intern BY row col.
collecting data into an internal table
LOOP AT li_intern.
MOVE: li_intern-col TO lv_index.
lv_index = lv_index + 1.
ASSIGN COMPONENT lv_index OF STRUCTURE itab TO <lf_s>.
MOVE : li_intern-value TO <lf_s>.
AT END OF row.
l_count = l_count + 1.
itab = l_count.
APPEND itab.
ENDAT. " at end of row
ENDLOOP. " loop at li_intern
if it useful please award points -
Hi All,
I want to take report of "Purchase order text" which is stored in material master.
Any Idea pls let me know....
Thanks
HariDear Hari,
You can use BAPI_PO_GETDETAIL1 or BAPI_PO_GETDETAIL to retrieve the data in your program.Enter the PO number and tick the item text and header text indicator.
Regards,
w1n -
Upload Purchase order text tab using BDC
Is it possible to upload Purchase order text tab in material master (tcode mm01) using a BDC.
If so pls tell me how to upload the same, what is the field name of the box.
Regards,
Senthilu need to use READ_TEXT or SAVE_TEXT or WRITE_TEXT or COMMIT_TEXT to upload text into SAP.
-
Upload of purchase order text in the material master
Now we have information of Purchase order text for all the material.
Is it possible to upload the Purchase order text using LSMW.
Some friends were telling that LSMW is not possible for Purchase Order text.
Can anyone suggest how I can upload this purchase order text for all 1000
material using LSMW program.
/if not LSMW is there any other method to upload it
thanks in advance
deepak.s.gouraDear Deepak,
there is standard direct upload i believe
go to lsmw
Execute 1st option
then inLSMW:Object Attribute screen
in standard batch/ direct input
firsr radio button
select object 005
and method 003
Program name RSTXLITF.
Then go by normal process i.e source field , field mapping...
In this way u can also upload Text in the Material master.
Rewards if helpful
Regards
Sanjay L -
Material description VS Purchase order Text when creating a PO
Hi Gurus,
When creating a PO for a specific material, I have to print a purchase order text different from the material description.
To do this, a specific text has be added to the material master data in the tab "Purchase order Text" with the italian language maintained.
But, when i start to create a new PO for this material, the short text that is shown is retrieved form the Material description and not from the Purchase order text that has been added before.
How can I do to have the purchase order text shown in the PO instead of the common material description?
Thanks in advance for your support.
Regards,
Valentino
Edited by: Valentino Rosso on Sep 9, 2009 10:58 AMHi Rajaram,
thansk a lot for your answer, it has been very helpful.
Could you please clarify me the below points?
1) Could you please confirm me that this is the functionality of the standard SAP System? That means that in case we want to put the purchase order text in to "short text" we would need to create an ad hoc development, right?
2) In case we print the PO with the purchase order text added for the material, is there any point where we can find this information for the material, or we will see just the material description from the Material Master Data?
Thanks a lot for your support.
Regards,
Roberto -
Cant able to see new value and old value for change in purchase order text
Hi all ,
I am not able to see changes done in material's purchase order text in material master. When i use tcode MM04 to see changes done material master it does not report new and old value for change if it is done in purchase order text of that material .
Thanks in advance ,
ShikhaHi Shikha,
I'm not sure it works or not. But you can try SCU3 t.code and table DBTABLOG. May it can help you out.
I also faced this type of issue in Plant data and it get resolved.
Try and let me know...
Regards
Sunil Sisodia -
Error while Creating PO from Purchase Requistion in Third Party Sales
Dear Team,
While Creating the Purchase Order from Purchase Requistion in Third Party Sales. When I am saving the PO I am getting the Error in GL Account Cannot be Used. I have disabled the field G/L Account in settings of Account Assignment Category of Third Party. Still I am facing that Error while Creating Purchase Order. Can you guide me where we do this Assignment of G/L Account so that I can change the G/L Account.
Thanks,
Farhan.Dear Farhan,
1. Go to T. Code: FS00 and enter GL number and Company Code and go to Tab: Create/bank/interest, write down the field status group.
2. Go to T. Code: OBC4 and Select your Field Status Variant and Double Click: Field Status Group (From Left-hand Dialog Structure)
Double-Click on to Field Status Group (as noted down from in Step 1).
From Select group, Select Additional account assignments and make Earmarked Funds, as optional.
Best Regards,
Amit -
I purchased a text tone from Itunes. It shows up in my library, but not as a text tone. Is there a way for me to set it as a text tone for all texts? Or I am stuck with factory settings?
So it is conseidered a customized text tones even if it was purchased through iTunes? Confusing. Since I bought it through itunes as a text tone I assumed it would work. OOOPS
Thanks so much -
Purchase Order text field update in Material Mater
Hi experts,
Is't possible that we can give authorization to update ONLY Purchase Order text field
under the Purchase Order text view in MM?
But while giving authorization, I could only see "Maintenance statuses of Material" I could only see status code "E" in general for Purchasing view.
Please advise if this is possible to control to give authorization to update only this Purchase order text view in MM.
Regards,
PHi
Please try this way
Authorization object: M_MATE_STA
Define the fields this way
Fields Possible values Meaning
ACTVT 01 User may create data.
02 User may change data.
03 User may display data.
06 User may flag data for deletion.
08 User may display change documents.
STATM Here, you specify the
maintenance status for which
the user is authorized.
regards
sunny
Maybe you are looking for
-
How can I control dpi when importing with Image Capture?
This is not really an iPhoto question, but there is no forum for Image Capture - and I am hoping some iPhoto user has discovered a solution. I usually import my digital camera images into a folder using Image Capture, apply Photoshop corrections, THE
-
How do I get the PDF icon to show on all of my PDF files?
how do I get the PDF icon to show on all of my PDF?
-
How can I access my App Store now I have changed my apple ID
How can I access my App Store now I have changed to a new apple ID?
-
Zip file is created with 0 bytes
In my below code, I am trying to zip a folder containing files and folders. But the zip file is getting created with 0 bytes. Could anyone please tell me what is wrong in my coding. private void jButton5ZipActionPerformed(java.awt.event.ActionEvent e
-
How to get variable from subpanel
Hi, May I know how to get the variable from the subpanel VI? Please see my VI, when I start the test in any of the subpanel, I can't get any variable in the "Get All Control Values Variant" indicator. Is there any wrong? Thanks. Solved! Go to Solutio