Have to pass header text on IDOC - PREQCR02 ( Purchase Requisition Create )
Hi Experts,
During this week, I've been searching some way to pass Long text to the header through IDOC PRECR02, but i can't find any solution.
I'd like to know if somebody have some idea to help me, I've tried to use BADI, Exits but no results.
Regards.
Hi,
Check the "IS_SC_DOCUMENT" structure in the BADI BBP_CREATE_BE_RQ_NEW. In this structure you will have LONGTEXT.
In this you can do..
Thanks
Venaktesh P
Similar Messages
-
Passing header text into Idoc(Idoc type orders05)
Hi,
we have header text, header note etc in text tab(under details) in PO.
now i have to pass the data's from the header text into the IDoc(idoc type Orders05),
In which segment the data's will be populated, How to shall i go.Hi,
if you are using idoc PORDCR102 or PORDCR101, header texts are populated in E1BPMEPOTEXTHEADER and both position & header in E1BPMEPOTEXT.
Then you are using ORDERS01-05 Idoc types, header texts were filled in E1EDKT1 & E1EDKT2 while texts are filled in E1EDPT1 & E1EDPT2.
The PO header texts are stored in the segments E1EDKT1 whose child segment is E1EDKT2 in IDoc type ORDERS05.
The actual text will be found in E1EDKT2 and the text id will be found in E1EDKT1.
You have to do some config so that The segment gets update
in the IDoc.
go to SPRO MM->Purchasing ->messages->Text for messages->Define texts for PO. Here you can find out on the left side of the window.In Header texts & supplements text.
Add the text IDF01( with all details like your document type, object for PO will be EKKO) in header text .
Then Add all other to the supplement texts(details).
It is now the IDoc should update the segments.
Regards
Raj.
Moderator message:
Warning. Reason: plagiarism, this is a copy-paste answer from:
PO texts in purchase order idoc*
Edited by: Csaba Szommer on Nov 8, 2011 2:00 PM -
How to pass header text in bapi for sale order
hai to all
i am using BAPI_SALESORDER_CREATEFROMDAT2 to create sale order
i can find order_text in tables parameters for creating item texts
but in my senario i have to maintain header text
please advice me how to proceed
rgds
vijayHi Vijay,
As I mentioned <b>it is very much possible to create sales order header text with this BAPI only</b>.
Just check out following working code:
REPORT yab_testso .
DATA: orderheaderin LIKE bapisdhd1,
orderitem TYPE TABLE OF bapisditm,
wa_orderitem TYPE bapisditm,
orderitemx TYPE TABLE OF bapisditmx,
wa_orderitemx TYPE bapisditmx,
orderpart TYPE TABLE OF bapiparnr,
wa_orderpartner TYPE bapiparnr,
ordertext TYPE TABLE OF bapisdtext,
wa_text TYPE bapisdtext,
orderret TYPE TABLE OF bapiret2,
wa_ret TYPE bapiret2,
lv_lines type i.
orderheaderin-doc_type = 'ZZOR'.
orderheaderin-sales_org = 'SS01'.
orderheaderin-distr_chan = 'SH'.
orderheaderin-division = 'ST'.
wa_orderpartner-partn_role = 'SP'.
wa_orderpartner-partn_numb = '1000000342'.
APPEND wa_orderpartner TO orderpart.
wa_orderpartner-partn_role = 'WE'.
wa_orderpartner-partn_numb = '1000000342'.
APPEND wa_orderpartner TO orderpart.
wa_orderitem-itm_number = '10'.
wa_orderitem-material = '000000111000000185'.
wa_orderitem-target_qty = '10'.
APPEND wa_orderitem TO orderitem.
wa_text-text_id = '0012'.
wa_text-langu = 'E'.
wa_text-text_line = 'Test for text creation'.
APPEND wa_text TO ordertext.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN =
order_header_in = orderheaderin
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT =
TABLES
return = orderret
order_items_in = orderitem
ORDER_ITEMS_INX =
order_partners = orderpart
ORDER_SCHEDULES_IN =
ORDER_SCHEDULES_INX =
ORDER_CONDITIONS_IN =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
ORDER_CCARD =
order_text = ordertext
ORDER_KEYS =
EXTENSIONIN =
PARTNERADDRESSES =
describe table orderret lines lv_lines.
READ TABLE orderret into wa_ret index lv_lines.
IF wa_ret-type = 'S'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / wa_ret-message_v2.
ENDIF.
Hope it helps.
Regards,
Akshay Bhagwat
Note: Pls reward points if this helps you. -
SAP SCRIPT: Header text not printing - Custom Purchase Order.
Hello Experts,
I have used the standard MEDRUCK and copied to ZMEDRUCK. I want the PO header text to print in my form.
I have used subroutine-pool and called it in the form.
Here is my subroutine
FORM fetch_table_data TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
TABLES EKKO.
DATA: BEGIN OF header OCCURS 0,
ld_txt1(163),
ld_txt2(163),
ld_txt3(163),
END OF header.
DATA: li_lines LIKE STANDARD TABLE OF tline WITH HEADER LINE,
ID like THEAD-TDID,
TNAME LIKE THEAD-TDNAME,
TDOBJECT like THEAD-TDOBJECT.
DATA HTEXT LIKE EKKO-EBELN.
* HTEXT = EKKO-EBELN.
READ TABLE in_tab WITH KEY EKKO-EBELN.
if sy-subrc = 0.
TNAME = in_tab-value.
ENDIF.
TNAME = EKKO-EBELN.
*CONCATENATE EKPO-ebeln EKPO-ebelp INTO v_item_text.
*MOVE v_head_text to HNAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = 'F01'
language = 'E'
name = TNAME
object = 'EKKO'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER = TNAME
tables
lines = li_lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
* WRONG_ACCESS_TO_ARCHIVE = 7
* OTHERS = 8
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 out_tab.
out_tab-VALUE = TNAME.
CONDENSE out_tab-VALUE.
MODIFY out_tab TRANSPORTING VALUE WHERE NAME = 'TNAME'.
ENDFORM.
And my script in the form is
PERFORM FETCH_TABLE_DATA IN PROGRAM ZMEDRUCK_SUBP2
USING &EKKO-EBELN&
CHANGING &TNAME&
ENDPERFORMpar RECEIVED FROM M/S &TNAME&
The header text is still not flowing in my form.
What mistake i'm I doing here ?
How can I resolve this ?
Pls help !Hi,
Data is li_lines internal table. 1st you have to read the text form the internal table line by sy-tabix.
At last you have to concatenate these variable into the out tab value.
you can use the following code
ORM fetch_table_data TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
TABLES EKKO.
DATA: BEGIN OF header OCCURS 0,
ld_txt1(163),
ld_txt2(163),
ld_txt3(163),
END OF header.
DATA: li_lines LIKE STANDARD TABLE OF tline WITH HEADER LINE,
ID like THEAD-TDID,
TNAME LIKE THEAD-TDNAME,
TDOBJECT like THEAD-TDOBJECT.
DATA HTEXT LIKE EKKO-EBELN.
READ TABLE in_tab WITH KEY EKKO-EBELN.
if sy-subrc = 0.
TNAME = in_tab-value.
ENDIF.
ALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = 'F01'
language = 'E'
name = TNAME
object = 'EKKO'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = li_lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
data : f_lines TYPE i,
DESCRIBE TABLE li_lines LINES f_lines.
data: lstr type String,
lstr1 type string,
lstr2 type string,
lstr3 type string,
lstr4 type string.
read table li_lines index 1.
lstr = li_lines
condense lstr.
clear li_lines
read table li_lines index 2.
lstr1 = li_lines
condense lstr.
clear li_lines
read table li_lines index 3.
lstr2 = li_lines
condense lstr.
clear li_lines
if f_lines GT 3.
ead table li_lines index 4.
lstr3 = li_lines
condense lstr.
clear li_lines
ead table li_lines index 5.
lstr4 = li_lines
condense lstr.
clear li_lines
endif.
data : v_text type text.
concatenate lstr1 lstr2 lstr3 lstr4 into v_text separate by ' '.
CLEAR out_tab.
READ TABLE out_tab WITH KEY name = 'TNAME'.
out_tab-value = v_text
MODIFY out_tab INDEX sy-tabix.
Regards
Nayan Kumar -
Pulling the Header text for all the purchase orders
Hello,
Please help in resolving the below:
Is there any code in SAp to pull theHeader text for all the purchase orders in the data base,
Any tcode to pull the specific text automatically to pull the text from the requsition ( Plant wise in sourcing).
ThanksSTXH Text header
STXL Text detail
Chk the below message thread
Table to read PO Header text and item text
BR,
Krishna -
Hi Experts,
I have to triger an IDOC to a 3rd party system when a Purchase Requisition is created, with the PR data.
Is there any IDOC to do this?
I Hope help me,
Regards.
MC.HI,
Check these
The message type is PREQCR.
The IDOC types are
PREQCR01 40A
PREQCR02 46C
PREQCR03 620
The function to be used is BAPI_IDOC_INPUT1
Thanks
Mahesh -
Material PO text not copying to Purchase Requisition
Any assistance would be gratly appreciated...
When creating a Purchase Requisition (ME51N) text from the Material Master - Material PO Text automatically copies to the Material PO Text of the Purchase Requisition line item - as expected
However, when a Purchase Requisition is created via MRP, the Material PO Text is not copied from the material master to the PO.
In config, copy rule is set as follows for PRs:
Sequence PR Text Source
01 Material PO Text Material Master Set to always adopt
We have a custom program to print PR data and the material PO text is not showing up when generated by MRP - because the PR itself does not have the text. We could change the custome code to read directly from the material maste, but would prefer a standard solution to get the text onto the PR.
Thanks,this is SAP design, for performance reasons the PO text is not copied to the requisition in MRP run.
SAP issued an OSS note about this . -
How can create IDOC for Purchase Requisition
Hi all,
whenever I change the Purchase requisition(Tcode-ME22N),IDOC has to be generated automatically.Please help me out.Hi ravi,
It seems you are talking about the purchase order change.
because ME22N is a transaction for editing the purchase order.Purchase req. is a internal document which we dont send out to any one.
Anyway what is the output type you are using?.
If you use NEU then no need for any changes.
otherwise use NACE transaction and select your output type then mark the 'multiple issuing ' flag.
So whenever there is a change system senses that and proposes the output.
After that you got to make the settings at the partner profile using WE20 transaction.There at the message control parameters level mention the output type and set the change flag.
Entry could be EF ( App.id) NEU (output type) and X (Change flag).
So system generates the IDOC whenever you do the change using ME22n transaction.
Please let me know if you have any issues.
Thank you.
Regards,
karun.M -
Hello Experts,
There are some operations in my routing where external service , from an outside vendor shall be required.
We are doing this by using a particular control key PP02, for this routing, so that purchase requisition is created automatically, when the production order is created.
Through customization, I have also been able to make the setting so that instead of single, collective requisition gets created for the entire order.The requisition that is getting created is a service requisition and can be later converted to a Purchase order.
Requirement :- I need to enter material information in this requisition automatically. By material, I mean the material no. and preferably qty of the material, which will have to be sent out to the external vendor for his services.
How can I achieve this, in SAP?
Regards
P.RHello Caetano,
Right now we are not considering best practices , so not considering BADI implementation as such.
So far I have done the following:
I created a subcontracting purchasing info record for the material and a vendor.
Then, I have created a routing for the material and the operation which expects to go for external processing, I have used control key YBP2 (tried with PP02) in it.
I have assigned the subcontracting PIR under the external processing section of this operation in the routing.
My Production version combines the BOM and routing in the material master.
Now ,,when I try to create the production order, I get the following errors in succession:
Control key YBP2: Maintain external processing data
Message no. CO558
Diagnosis
The control key specifies that the operation is processed externally. However, not all data relevant to external processing has been maintained.
respond by entering the material group where the cursor is.
Then I get the following error.
Material class differs from material class from info record
Message no. 06354
Diagnosis
The material class or material group of the info record differs from that of the item.
I checked in the material master and the material group there is same as the material group in the info record . Field name is MATKL.
What material class is it talking about?
I cannot get past this error and therefore cannot complete the order creation.
Regards
P.R -
Resend Purchase Requisition created pass 2 week to workflow inbox
Hi,
We are using the PR release workflow WS00000038, no PR is send to Manager workflow inbox due to some setting in RFC config, we have resolved the RFC config. Now we wanted to resend the PR created for the pass 2 weeks to the Manager Workflow Inbox, how to do it?
Best Regards,Are the Workflow in error state. If they are in error state you can restart the Workflow from SWPR Tcode. If the Workflow is in Prcess state and it is stuck in the first step then I am afraid you have to trigger them either Through SWUS or through SWUE. If Wflow in error state you can catch the workitems in error from SWI2_DIAG.
<b>Reward Points if useful and close thread if resolved</b> -
Copy header text from Purchage Requisition to Purchage order
hi,
My scenario is
i was created Purchage Requisition 10000534 and i was maintained Header Text (any thing).
Then i was created Purchase Order with reference to purchase Requisition. But in Purchase Order Header Text not copied. Purchase Requisition.( I want to copy the Header Text From Purchase Requisition to Purchase Order).
I am Using this Badi (ME-REQ-HEADER-TEXT).
Thanks
MunnaHi,
Have you done the required configuration for this issue.
SPRO --> Materials Management --> Purchasing --> Purchase Order --> Texts for Purchase Orders
Define Copying Rules for Header Texts
Define Copying Rules for Item Texts
Regards,
MT -
Header text mandatory in Purchase requisition
Hello,
Ho do i make the header text mandatory in my Purchase Requisition ?
Regards
KasiNot Possible in Standard SAP. You Cannot Set the Header text field Mandatory for PR.
Use Enhancement on Purchase Requisition MEREQ001
You Can check Enhancements in SMOD by Packages -
Hi,
My SAP Script is maintained in English language. In one place, i have to read header text which is in portuguese.
I have used
INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 PARAGRAPH HT
in script.
The text is read correctly which has maintained in English(other document no).
But the problem is with the text in portugese.
I can understand that it is because of Language conflict. But is there any solution to overcome this? My user wants that text should be displayed in Portuguese only and the script should be maintained in English.
Regards,
PriyaThere is only a way to call that PT text on your english layout is to put a condition.. Include command just works like read_text ..
So if you will not pass the langauge in the editor you will always get the ENGLISH text ...
For example ant specific document number u wud like to print the PT text
Even in editor you can write like this.
/: IF &CONDITION 1& = 'TRUE' --> For PT
/: INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 LANGUAGE PT PARAGRAPH HT
/: ENDIF
/: IF &CONDITION 2& = 'TRUE' --> For EN
/: INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 LANGUAGE EN PARAGRAPH HT
/: ENDIF
I think that should the way..
Regards,
Lokesh
Edited by: Lokesh Tarey on May 13, 2010 8:40 AM -
Hi,
I have created a table control in module pool. I have pasted fields from internal table and I have also added text to its header
But when I execute the program text is not shown in the header.It is appearing blankHi Srini ,
IF you are using the BAPI_PO_CREATE , we are not having the parameter to pass Header Text.
If you want to get Header Text directly then Use BAPI_PO_CREATE1 wiht a parameter POTEXTHEADER (I am not sure it is there in 4.7).
If BAPI_PO_CREATE1 does not exist in 4.7 then use create_text function module to update the the Header text
Hope it helps
Rgds
Sree M
Edited by: Sree Merugu on Jun 13, 2008 5:10 PM -
PLEASE HELP!! Need some way to read header text in advanced datagrid using QTP
I am writing a function to read column names in advanced data
grid. There is no operation for that and any of the properties that
I can use to read the column names.
Please suggest any way that I can get the names of columns in
the advanced data grid.
ThanksI hope to hear something from adobe folks...I am providing
more info.....
I am using QTP 9.2 and Flex 3 add-in available from Adobe.
My application has flex Advanced datagrid object and I am
trying to read column names for the datagrid.
I have contacted developers and they told me that column
names for flex advanced datagrid are stored in "Header Text"
I have tried reading "Header Text" using
GetROProperty("HeaderText") but it doesn't return anything.
I have tried the following code:
x =
Browser("app").FlexApplication("flexapp").FlexCanvas("Canvas").FlexAdvancedDatagrid("esti mategridid").GetROProperty("Header
Text")
msgbox x
I have also tried getting value for column names using other
available properties for webtables like outerhtml, outertext, alt
etc. but I don't get any data.
Part of the problem may be because none of the above
mentioned properties are supported by Flex Advanced datagrid.
I have also tried getting child objects but I always get the
data in datagrid as values but not the column names.
My primary reason for getting column names is to write a
function to update cell in datagrid independent of application. So,
I want to pass column name as a parameter to the function and get
the corresponding columnIndex in the function by comparing the
parameter value against column names.
Thanks to all for you help...
Maybe you are looking for
-
In Mail 3.6 remote images in HTML messages display as blue squares with ? even though checked in viewing references.
-
Hi, I am facing some problem in FCC for Receiver adapter. It has to convert from XML to CSV File. <?xml version="1.0" encoding="UTF-8" ?> - <ns0:PaymentFull_Target xmlns:ns0="http://sdn.com/Payment"> - <RECORDSET> - <Header> <LineItem>1</LineItem>
-
Exported QT presentation- flash conversion question
In the exported QT movies, the quality is great and the slides stop at the correct spot. However, I would like to convert this to a swf with the resulting swf file still stopping at the correct spot (rather than just playing through). Please note the
-
Description for Create Item button missing
Hi experts, browsing to the Items tab through portfolio in NWBC does nt show description for create buton instead shows "Application 1 (Description in Language English doesn't Exist)" .all other butttons have proper descriptions - Printversion, Expor
-
Linux - after update to firefox 5 64-bit flash player stopped working
After updating firefox 5 (from stable repo) the flash player stopped working. I have had installed the adobe flash player square (64 bit) - by following http://queleimporta.com/en/finally-adobe-releases-native-64-bit-flash-10-for-linux/ ... The .so l