Save text in a PO during creation from APO
Hi All,
I need to save SO text in PO during PO creation from APO.
I am using the BADI ME_PROCESS_PO_CUST method:PROCESS_ITEM.
This works perfectly when PO created from ECC - ME21N. However when a PO is created from APO (by converting PR) this BADI did not trigger or works.
Then I have tried using Purchase order CIF user exit CIFPUR02 ->EXIT_SAPLCPUR_001->ZXCIFU06
It didnot brings in the purchase order number to be created. Hence I could not able to copy the sales order text to purchase order.
Kindly let me know the user exit or BADI triggers during PO creation from APO to copy sales order text to purchase order.
Thanks,
Senthil Kumar
Hi,
Use this.
ME_PURCHDOC_POSTED
Regards,
Shamma
Similar Messages
-
Save text in a PO during creation
Hi All,
I need to save text in PO during PO creation. I am using the BADI ME_PROCESS_PO_CUST method:PROCESS_ITEM. My EBELN is blank here. I do have other required fields like text id, text name to use in SAVE_TEXT.
Text needs to be saved before the PO is saved.. User can edit the text. So BADI during PO save is not an option.
How do i save the text in my PO header during creation and during the line item is entered?
Do have any other procedure to add the text in the text editor?
This is my code:
Please suggest, if we have any alternate procedure to show the text in PO.
METHOD if_ex_me_process_po_cust~process_item.
DATA : ls_mepoitem TYPE mepoitem,
ls_mepoaccount TYPE purchase_order_accountings,
ls_mepoacc TYPE purchase_order_accounting,
ls_mepoaccountdata TYPE mepoaccounting,
ls_mepoheader TYPE REF TO if_purchase_order_mm,
ls_mepoheaderdata TYPE mepoheader.
DATA: gt_lines TYPE STANDARD TABLE OF tline,
gwa_line TYPE tline,
g_tdname TYPE thead-tdname,
g_poname TYPE thead-tdname.
DATA: header TYPE STANDARD TABLE OF thead,
wa_header TYPE thead.
DATA: lines TYPE STANDARD TABLE OF tline.
CONSTANTS : gc_z056(4) TYPE c VALUE 'Z056',
gc_f06(4) TYPE c VALUE 'F06',
gc_ekko(4) TYPE c VALUE 'EKKO'.
ls_mepoheader = im_item->get_header( ).
ls_mepoheaderdata = ls_mepoheader->get_data( ).
ls_mepoitem = im_item->get_data( ). "Table
ls_mepoaccount = im_item->get_accountings( ). "Table
LOOP AT ls_mepoaccount INTO ls_mepoacc.
CLEAR ls_mepoaccountdata.
* Get the newly updated PO item data
CALL METHOD ls_mepoacc-accounting->get_data
RECEIVING
re_data = ls_mepoaccountdata.
ENDLOOP.
IF ls_mepoheaderdata-bstyp = 'F' AND ls_mepoitem-knttp = 'M'
AND ls_mepoitem-matnr <> ' ' AND
( ( ls_mepoheaderdata-bsart = 'UB' OR ls_mepoheaderdata-bsart = 'NB' ) AND ls_mepoheaderdata-lifnr <> ' ' ).
REFRESH gt_lines.
g_tdname = ls_mepoaccountdata-vbeln.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = gc_z056
language = sy-langu
name = g_tdname
object = 'VBBK'
TABLES
lines = gt_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 IS INITIAL.
DELETE gt_lines WHERE tdline = space.
ENDIF.
* g_poname = ls_mepoitem-ebeln. *"ls_mepoitem-ebeln is blank here*
wa_header-tdobject = gc_ekko.
wa_header-tdname = g_poname.
wa_header-tdid = gc_f06.
APPEND wa_header TO header.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = header
insert = 'X'
savemode_direct = 'X'
TABLES
lines = gt_lines
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5
IF sy-subrc <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
* ENDIF.
ENDIF.
ENDIF.
Thanks,
Senthil.
Edited by: senthil kumar on Jun 11, 2009 3:02 PMI haven't used this method myself, but when I look at method PROCESS_ITEM, the import parameter IM_ITEM is of type (REF TO) IF_PURCHASE_ORDER_ITEM_MM. This has interface method IF_LONGTEXTS_MM~SET_TEXT (description: set long text per text id). This sounds like a good method to use.
-
Item category determination during Purchase Requisition creation from APO
Im creating a SNP Purchase Requisition in APO and when it is published to R/3, a Purchase Requisition document is created in R/3.
When this PR is created in R/3, I want the Item Category to be determined based on the Material master Special Procurement Type. ( eg: Id like the Item category to be L if the Material master Special Procurement Type = 30 (Subcontracting) ). But by standard, this field is coming as Blank and this field could only be populated during the creation from APO.
I found a user exit ( CIFPUR02 : Enhancement of Purchase Order Interface (Inbound) ) on R/3 where I tried to populate the Item Category, but when I do this, all the purchase order related data is getting deleted and hence no PRs are getting created in R/3.
Could anyone please tell me if this could be resolved using configuration and if not any tips to do this technically would be very helpful.
Thanks,
HarshaHi Karun,
This is the code i'm using...
select single * from marc into lit_marc
where matnr = c_eban-matnr
and werks = c_eban-werks.
append lit_marc.
read table lit_marc with key matnr = c_eban-matnr
werks = c_eban-werks
sobsl = 30.
if sy-subrc = 0.
c_eban-pstyp = '3'.
endif.
Here sobsl = 30 is the Special procurement type
But when i try to populate c_eban-pstyp = '3', during the creation of Purchase Requisitions in R/3, in the program SAPLEMPI -> LMEPIF01
this condition is encountered which deletes all the data in the tables that is used to create Purchase requisitions.
<i>* get rsnum in the case of subcontracting
IF XEBAN-PSTYP EQ PSTYP-LOHN AND "RB240999
EXITFLAG_ORDID IS INITIAL. "RB240999
refresh all component tables
CALL FUNCTION 'ME_COMPONENTS_REFRESH'
EXCEPTIONS
OTHERS = 1.</i>
Could you please suggest me anything to get around this.
Thanks,
Harsha -
Read header text before saving delivery during creation
Dear All,
Could you please suggest, how to read the header text before saving the delivery during creation.
Regards,I dont think you can do it before saving the delivery but you can after saving the delivery.
Check out the program MV50AFZ1 - There are two user exits "userexit_save_document" and "userexit_save_document_prepare" .
To read the text (as far as i know), you will need the document number (user READ_TEXT function module).
Document number is not available in user exit "userexit_save_document_prepare" but it is available in "userexit_save_document" .
I dont know what is your requirement but you can choose from the above options. You can read the text from save_document user exit but the delivery was already saved.
good luck -
Sending BP data during creation from BADI
hi experts,
i want to send a business partner's data during business partner creation in CRM through a BADI. do you know any of the BADI's for this purpose where i can get all the BP data entered by the user and i can send it wherever i want?Hi Sager,
So here we go....
You can change the general flow in this fashion: Create/ Change any BP ,Activate the debugging and save it. Put the breakpoint for Method "__OUTBOUND_HANDLER" for class "CL_SMW_MFLOW". Press F8. You debugger should stop here.
You will see the peace of code mentioned below:-
Determine processing depending on debug processing, update processing
or synchronous processing
IF in_updatetask EQ c_false.
IF NOT ch_header-qname IS INITIAL OR NOT lt_queues IS INITIAL.
Check for debug mode. In debug mode, don't create qRFC entry
Delete the value of fields "in_updatetask" & "ch_header-qname" , and then press F8 now with this it should stop to your BADI givne the condition that you have breakpoint set for the BADI.
Hope this will help.
Best regards,
Vikash -
Urgent text shifting problem with pdf creation from indesign
I have eps files placed in indesign and when some pages of my document are exported as pdf for press, the text moves slightly, like 1/16" or less, but enough to cause problems. I'm using the original Indesign CS and eps files saved out of Illustrator 10. Yup, old.....I know, but it's what I have to work with right now. Some files are working fine but others are don't and they were all created/saved/exported the same, as far as I can tell. Here's a small sample. All the street name text is shifted down and to the left from the actually street. Occurring with text on path as well as straight text. Any ideas greatly appreciated.
You might also try exporting to .idml form CS5 (see Remove minor corruption by exporting). We've had other reports of similar beahvior when working with legacy files, and exporting to .inx from the original version may work even better.
-
Error occured during extraction from APO to BI 7.0
Hi Experts,
I am in the process of extracting data from SCM(APO-Demand Planning) to BI .I have selected the relevant planning area 9ADP01 and given Generate Export DS in APO system and replicated the same in BI.But before scheduling the InfoPackage,when i checked for the DS 9A0APO_DP_ORDERANALYTICS_1,it displays "Error occured during extraction".I do have a doubt whether I should activate the DS in RSA5 before replication (but am not able to find the DS under DP in RSA5)
I have checked the forums but solutions mentioned did not resolve my issue.
Thanks,
MeeraHi,
The issue is resolved...
Regards,
Meera -
Hi
I want to be able to save texts to a file or folder seperate from the rest of my texts. This is so I can foward them onto someone else at a later time.
I have always had this facility on my previous phones e.g. blackberry but can't seem to find a way with my Iphone.No such option is available with the iPhone.
A text can be forwarded, but texts are saved in conversation format by contact/phone number.
Texts are included with your iPhone's backup, which is updated by iTunes as the first step during the iTunes sync process. There are a number of 3rd party utilities that provide for extracting select data from your iPhone's backup for access on your computer - viewing/archiving/printing, etc.
Here is one.
http://www.mobilesyncbrowser.com/ -
MARA-GEWEI is not overtaken during creation of material from cdesk
Hi, we work in ENV SAP R3 4.71 and create material in background out from
cdesk.
Therefore we defined in the customizing of CAD Desktop that in case of
creation of material MARA-GEWEI determination type = constant and
determination parameter is "ST" for "piece"
Every other parameter works fine during creation of material ==> as soon as
we fill a weight into the corresponding fields SAP tells us a message
"ENTER the unit of weight for the net weight" ==> if you press "continue action then" SAP ends creation of material an nothing happens....
ANY ideas?
(will enter this message for sure as well into the oss....)Hi Gerhard,
have u put
EXP_MARA-BRGEW Gross weight
EXP_MARA-NTGEW Net weight
from Inv side in config...
Also check in cdesk_cus under create material
<b>Base Unit of Measure Constant ST
Net Weight File Attribute Physical_Properties_MassValue</b>
hope this helps -
Facing challenges during creation of replica of .IDF file/Pdf output from 4.7 system into of Adobe forms in ECC 6.0 system.
If anybody has easy way to make those forms...
Please suggest...Hi Shabeer,
the first thing is that you are running on a very very low RAM.
For ECC 6.0 with dual stack SAP System to run you should have atleast 4 GB of RAM.
For your Dispatcher issue kindly check the status of your Oracle database and the connection from SAP To Database.
You can check the oracle status using brtools utility.
Regards,
Prem -
User exit in SAPMV50A to READ and SAVE TEXT from PO
Hi Experts,
I have an requirement for "Copying PO Header Text to Delivery Text". I have already created TEXT ID's , Access Sequence and assigment to Delivey type in VOXTN.
Could you please suggest "User exit in the delivery program SAPMV50A, tcode VL01N, to READ and SAVE TEXT from PO.
In the user exit I will user READ_TEXT FM using the custeom id created.
Thanks
Krishanvofm
-
How do I save text messages from LG Accolade to my PC?
I have a small claims court case coming up, and I need to to have hard copies of my text messages as evidence. How can I save texts from my LG Accolae to my pc without forwarding each one to my email (there are a hundred or so)?
Thanks.bitpim or another piece of software may work
-
Error occured during creation of oracle snapshot
Dear All,
I am getting error messange in my SAP Inbox in t.code SBWP.
In SBWP, the nessage text is as follow.
=============================
Error occured during creation of oracle snapshot (Creation aborted)
(Log see also transaction SLG1, Object ORASNAP, Subobject ORASNAPCR)
Oracle snapshot creation program aborted
Error while copying from oracle view to SAP table
Oracle view SAP$KCBFWAIT
SAP table ORA_SAPKCBFWAIT
Return code (ORA-....) 942
You tried to work with the name of a table or view that does not exist in the database
The table does not exist on the database. A table name or view name was used that does not exist on the database.
===============================
I also check in T.Code SLG1, but i am not getting the reason for this error.
Regards,
NisitHi,
Check each of the following :
the spelling of the table or view name.
that a view is not specified where a table is required.
that an existing table or view name exists.
Contact the database administrator if the table needs to be created or if user or application privileges are required to access the table.
Also, if attempting to access a table or view in another schema, make certain the correct schema is referenced and that access to the object is granted.
Regards
Krishna -
Error during creation of application entity for the plug-in.
Hi Experts,
As part of creating Content Database source for SES....
We,
1 Activated the Oracle Internet Directory identity plug-in for the Oracle Content
Database instance.
2) However after activating Identity plug-in for Oracle Internet Directory.... ......... we used the csPlugin.ldif file to create an application entity for the plug-in by running the following command "$ORACLE_HOME/bin/ldapmodify -h oidHost -p OIDPortNumber -D "cn=oracle" -w password -f csPlugin.ldif" ....but in the process executing the above command.... getting the following error(we gave correct login details):
SASL/DIGEST-MD5 authentication started
ldap_sasl_interactive_bind_s: Invalid credentials (49)
How can i resolve this.
I have another query...in the command "$ORACLE_HOME/bin/ldapmodify -h oidHost -p OIDPortNumber -D "cn=oracle" -w password -f csPlugin.ldif" which user name should i specify..... is it "cn=oracle" or "cn=orcladmin"
Thanks
peter.Hi Raford,
Thanks for your reply.
We tried to create Content Database Source with the details we have...
However in this process getting an exception....
11:20:20:778 INFO main
11:20:20:784 INFO main Oracle Secure Enterprise Search, Crawler: Release 10.1.8.2
11:20:20:785 INFO main Copyright © 2006, 2007, Oracle. All rights reserved.
11:20:20:785 INFO main
11:20:20:785 INFO main ================== Crawling settings ==================
11:20:20:785 INFO main Reading configuration file from /mnt/u08/SOADEVIL/seshome/search/data/config/crawler.dat
11:20:20:785 INFO main Agent = Oracle Secure Enterprise Search
11:20:20:807 INFO main User = EQ_TEST
11:20:20:807 INFO main Database connect string = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=devilrays.appsassociates.com)(PORT=1525))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=Devilses.devilrays.appsassociates.com)))
11:20:20:807 INFO main Source type is User-defined
11:20:20:807 INFO main Source is "BJ_Cont"
11:20:20:807 INFO main Document access control policy is user-defined
11:20:20:808 INFO main Number of crawling threads = 5
11:20:20:808 INFO main Queue table = I1S8
11:20:20:808 INFO main URL table = EQ$URL
11:20:20:808 INFO main Maximum documents to crawl = no limit
11:20:20:808 INFO main Maximum depth to crawl = 2
11:20:20:808 INFO main Document size limit = 10M
11:20:20:808 INFO main Locale of the crawler message is "en_US"
11:20:20:808 INFO main URL exclusion rule = (?i:(?:\.gif)|(?:\.jpg)|(?:\.jar)|(?:\.tif)|(?:\.bmp)|(?:\.war)|(?:\.ear)|(?:\.mpg)|(?:\.wmv)|(?:\.mpeg)|(?:\.scm)|(?:\.iso)|(?:\.dmp)|(?:\.dll)|(?:\.cab)|(?:\.so)|(?:\.avi)|(?:\.wav)|(?:\.mp3)|(?:\.wma)|(?:\.bin)|(?:\.exe)|(?:\.iso)|(?:\.tar)|(?:\.png))$
11:20:20:808 INFO main URL exclusion rule = \?.*(.*\+)\1{3}
11:20:20:812 INFO main Document read timeout threshold = 30 second(s)
11:20:20:812 INFO main Crawler default character set is "8859_1"
11:20:20:812 INFO main Crawler default language is "en"
11:20:20:813 INFO main Auto language detection is on
11:20:20:813 INFO main Auto character set detection is off
11:20:20:813 INFO main Document service pipeline is "Default pipeline"
11:20:20:813 INFO main Verbose mode is on
11:20:20:935 INFO main Caching on: directory = /mnt/u08/SOADEVIL/sesdata/Devilses/cache/I1DS8/, max size = 250, action = SES_TASK
11:20:20:935 INFO main Filtering on: filter path = /mnt/u08/SOADEVIL/seshome/ctx/bin/ctxhx, number of filters = 2
11:20:20:935 INFO main MIME inclusions = text/html text/plain application/pdf application/x-msexcel application/vnd.ms-excel application/ms-excel application/x-mspowerpoint application/vnd.ms-powerpoint application/msword
11:20:20:935 INFO main URL table attributes = url, depth, signature, last_modified, status, url_id, access_url, enqueue_status, TITLE, DESCRIPTION, AUTHOR, CRAWLED_DATE, CONTENT_LENGTH, CONTENT_TYPE, LANG, CACHE_FILE_PATH, DS_ID
11:20:20:936 INFO main SQL callback statement is "begin eq_crw.crawler_callback(?,?,?,?); exception when eq_def.search_error then eq_err.raise; when others then eq_err.raise; end;"
11:20:20:936 INFO main Cookie support is enabled
11:20:20:937 INFO main Maximum number of cookies = 300
11:20:20:939 INFO main Maximum number of cookies per host = 20
11:20:20:939 INFO main Maximum size of cookie = 4096 bytes
11:20:20:940 INFO main Cache file deletion is disabled
11:20:20:940 INFO main Crawler plug-in manager class is "oracle.search.plugin.ocs.cservices.OCSCSPluginMgr"
11:20:20:940 INFO main SQL hook ID is "8"
11:20:20:940 INFO main SQL command hook statement is "begin ? := eq_crw.crawler_get_command(?,?,?,?); end;"
11:20:20:940 INFO main SQL response hook statement is "begin ? := eq_crw.crawler_send_response (?,?,?,?,?,?,?,?,?,?,?,?,?); end;"
11:20:20:940 INFO main Crawler launched by schedule "BJ_Cont"
11:20:20:940 INFO main
11:20:20:940 INFO main =================== Crawling status ===================
11:20:20:941 INFO main Crawling started at 9/18/07 11:20 AM
11:20:21:912 INFO main URL manager connecting to Oracle...
11:20:21:974 INFO main connected
11:20:22:586 INFO main Queue manager connecting to Oracle...
11:20:22:631 INFO main connected
11:20:23:497 INFO main Invoking "oracle.search.plugin.ocs.cservices.OCSCSPluginMgr"
11:20:23:501 INFO main URL manager connecting to Oracle...
11:20:23:529 INFO main connected
11:20:23:531 INFO main Initializing crawler plug-in manager "oracle.search.plugin.ocs.cservices.OCSCSPluginMgr"
11:20:23:531 ERROR main SES keystore location: null
11:20:23:532 ERROR main null oracle.search.sdk.crawler.PluginException oracle.search.plugin.ocs.cservices.OCSCSPluginMgr:getParamValue:351 oracle.search.plugin.ocs.cservices.OCSCSPluginMgr:init:479 oracle.search.crawler.WebCrawler:begin:1076 ImtCrawler:run:1831 ImtCrawler:main:480
11:20:23:532 ERROR main null oracle.search.sdk.crawler.PluginException oracle.search.plugin.ocs.cservices.OCSCSPluginMgr:getParamValue:351 oracle.search.plugin.ocs.cservices.OCSCSPluginMgr:init:479 oracle.search.crawler.WebCrawler:begin:1076 ImtCrawler:run:1831 ImtCrawler:main:480
11:20:23:676 INFO Thread-1 Remote command "reportstatistics" received, argument = "quit"
11:20:23:676 INFO Thread-1 Executing remote command "reportstatistics"
11:20:23:697 INFO Thread-1 Send back remote command execution result
11:20:25:944 INFO main Shutting down all crawling threads...
11:20:25:948 INFO main
11:20:25:949 INFO main =================== Crawling results ===================
11:20:25:949 INFO main Crawling started at 9/18/07 11:20 AM
11:20:25:949 INFO main Crawling stopped at 9/18/07 11:20 AM
11:20:25:949 INFO main Total crawling time = 0:0:5
11:20:25:949 INFO main
11:20:25:954 INFO main Total number of documents fetched = 0
11:20:25:954 INFO main Document fetch failures = 0
11:20:25:954 INFO main Document conversion failures = 0
11:20:25:954 INFO main Total number of unique documents indexed = 0
11:20:25:954 INFO main Total data collected = 0 bytes
11:20:25:954 INFO main Total number of non-indexable documents = 0
11:20:25:955 INFO main
11:20:25:955 INFO main Number of times disk cache is full = 0
We have followed the installation details provided in "SESAdmiistratorGuide".
In that guide.... during creation of Content Database source he did not mention any entry for "SES keystore location", and the exception which we are getting is related to "SES keystore location: null" (please look into the exception stack).
could you please guide us.
Thanks
peter. -
Change Production version during creation of Process Order COR1
Hi,
Scenario:
Based on the entered Material, Plant and Order type system need to trigger a popup asking the user to select the Production Version. This should happen before clicking on SAVE button, so that all the values will be populated correctly based on the changed VERID.
I did not find a user exit that enables to change the Production Version (VERID) value. So I thought of displaying the popup in the user exit EXIT_SAPLCOZF_003 which will be triggered before initial screen appears, export the selected value and pass it to a User Exit or BADI where VERID can be changed. But cannot find a user exit to do it.
Please help me find a User Exit or BADI to change the Production Version during creation of Process Order using COR1 transaction before clicking on SAVE button.
Thanks,
Manoj.Hi Manoj,
So - almost four years later - I saw your post and I saw myself in the very same situation as you did...
I found a solution for those who wants to change the production version of the production order from the sales order creation: create an enhancement in the function module 'MD_VERSION_SELECTION' and you are good to go.
Maybe you are looking for
-
PO- Why PO still allow to change after Delivery Completed has ticked.
Dear All, I'm doing functional testing for MM, but i realised that the PO still allow to change after delivery completed has ticked. Can i know if there is a way to restrict any change after any good receiving or delivery completed? Thank you very mu
-
Hi I am planning to take up my certification exams by 22nd Nov 2011. In this regard I will have to book for my examination by next week i.e by 10th Nov 2011.So could you please tell me which Code should I be mentioning in my Application form. Also it
-
Apps services not starting up after Linux OS upgrade to 5.0
Hi guys, I'm actually new to APPS DBA and i'm stuck with this prob for the past few days...I searched a lot but couldn't find a solution to it...could u pls help me out... Actually, the Linux OS was upgraded from 4.0 to 5.0 and the old instance that
-
Move a node and sub-nodes in a hierarchyid
I have a hierarchyid that's roughly like this: /1/... /2/ I want to move /1/... so that it and all its children are below /2, so that the new hierarchy table looks like this /2/1/.... I've followed this example but it only moves the children of /1 an
-
Dock action the way it used to be
Is there a way to set the Dock so that when you click on a folder (without holding the Command key) it just opens the folder in Finder instead of popping up its contents?