Operation text in XSteps
I am attempting to retrieve operation long text from a production order. I'm using this characteristic for the operation: PPPI_OPERATION.
I get this error when simulating the XStep in CO02: No valid Operation found for context 'Order 10010003624'
What am I doing wrong?
Thanks for any help!
Hi Gary,
I don't think that you are doing something wrong. I also experienced that problem. Please create an OSS message for this.
Best regards,
Arne
Similar Messages
-
Problem with OPERATION TEXT(LTXA1) uploading using BDC For C202 Transaction
Hi Experts,
Im presently doing a BDC for the trransaction C202 (Change Master Recipe),my task was to upload the 'OPERATION TEXT' field PLPOD-LTXA1 which is actually Long text to an existing master recipe from a flat file during updation of the 'OPERATION TEXT the number of lines i was able to were 34 which we number lines on the displayed page and while updating the 35th line using the concept of bdc table control it is failing to insert the update text.
I used all the ok codes but failed to update more than 34 lines.So,can someone tell me how to update the longtext beyound it.
This is the Screenshot of my problem:
[BDC_C202_error|http://www.freeimagehosting.net/uploads/79af6bac49.jpg]
Thanx in advance.Hi,
There is a better way of doing the long text upload in SAP. In your BDC, if I change the text editor, the BDC will not work.
Hence ,
Use function module " Save_Text" to update long texts in SAP.
Please check its FM documentation or perform a search for this FM in SDN for more clarity.
Write back in case you face further issues.
Regards,
Rijuraj
Edited by: Rijuraj Raju on Sep 10, 2010 3:05 PM -
PI Sheet : Is it possible to Add Phase or Operation Text?
Hi Experts,
Is it possible to add phase or operation text along with phase number?
We are using browser base PI sheet and in the begining of the frame PI sheet shows phase number automatically like " Phase0101". Is ther any way to add short text of the phase instead of phase number or both?
This will really make my life easy.
Thanks in anticipation.
Kind Regards
RajaRamIn 013c defining process message category for process characteristic include standards characteristics of PP_PI Operation, PP-PI Operation text, PP-PI Phase, PP-PI Phase text also as characteristics,
After this when defing PI category 012c these characteristic appear along with process message charectestic.there define these as output characteristics. This will display phase no, phase text, operation no, operation text each time respective Process characteristic is recorded. -
I am developing a smartform with help of abaper for pm check list.
in the task list operation i can select maximum of 40 characters,but my tasks are more than 40 characters.
what ever is written in the operation should show in my smartform.
but how do i tackle where my operations text is longer than 40 characters.
if i use long text how can i read the long text with the help of function module READ_TXT
Edited by: Mohammed Iqbal on Sep 28, 2011 11:40 AMHi
you can use the function module READ_TEXT and reference tables are STXH,STXL.
input the following
CLIENT- actual
ID - PLPO
LANGUAGE- EN
NAME-- Text name from tables STXH
OBJECT - ROUTING
Regards
Seenu -
Problem using SVG text in FLASH --ViceVersa
hi all,
I had been developing an application to read SVG files in to
flash.....i am successful in reading shapes,,with the path's....but
the biggest problem is with the "SVG text".......the positions of
text with respect to FLASH and SVG differs completely.....
As far as i know the origin differs from flash to
SVG.....Flash has it's left top as origin ....SVG has lower left as
origin....
when i scale or rotate the flash text ....if i need to
convert those in to SVG text..the problem arises....because the
SCALING and ROTATION acts very differently in SVG...when compared
to FLASH
iam struck here....pls anyone help me to find a
solution......
THANKS in ADAVNCE !!!!!!Thanks for answering
So you have IE8 and the hardware acceleration was able to be UNchecked and FP(Flash Player) is working properly with IE.
In IE flash works fine with any settings.
When I unchecked "Hardware acceleration" checbox in IE it also became unchecked in opera, but nothing changed in opera's behavior.
When you don't use the Aero it's displayed correctly but the settings do not work. What settings are you referring to?
It's about flash settings in Opera
With aero: http://img443.imageshack.us/i/settingsh.png/
Without aero: http://img816.imageshack.us/i/settingswoaero.png/
In both cases the settings dialog is displayed like in the screenshots above, but when I click on checkbox/tabs/'close' button in it nothing happens. I can't change any settings or close it (dialog disappers only after reloading page)
Just to sum up everything mentioned above:
- In IE flash works fine regardless of any settings
- In Opera text is displayed wrong when using windows aero, and without aero theme it's displayed correct
- I didn't manage to make settings dialog work in Opera
- When I change some flash settings in IE, they are also changed in Opera
Now Flash Player works thru the browser, do you have perhaps have an addon that is conflicting? What Anti-Virus do you have Installed? Any addons of that?
I have 7 extensions installed in Opera, I've disabled all of them, but nothing changed.
I use Kaspersky Internet Security 2011, disabling it also gives nothing. -
Problem with displaying text in flash player
I have flash player 10.2.152.26 and opera 11.01 installed.
The problem is that text in flash is diplayed in an awful way like this:
http://img651.imageshack.us/img651/6918/alljo.png
And when i choose "settings" the window appears, but it doesn't react when I click on it.
Can anyone help, please?Thanks for answering
So you have IE8 and the hardware acceleration was able to be UNchecked and FP(Flash Player) is working properly with IE.
In IE flash works fine with any settings.
When I unchecked "Hardware acceleration" checbox in IE it also became unchecked in opera, but nothing changed in opera's behavior.
When you don't use the Aero it's displayed correctly but the settings do not work. What settings are you referring to?
It's about flash settings in Opera
With aero: http://img443.imageshack.us/i/settingsh.png/
Without aero: http://img816.imageshack.us/i/settingswoaero.png/
In both cases the settings dialog is displayed like in the screenshots above, but when I click on checkbox/tabs/'close' button in it nothing happens. I can't change any settings or close it (dialog disappers only after reloading page)
Just to sum up everything mentioned above:
- In IE flash works fine regardless of any settings
- In Opera text is displayed wrong when using windows aero, and without aero theme it's displayed correct
- I didn't manage to make settings dialog work in Opera
- When I change some flash settings in IE, they are also changed in Opera
Now Flash Player works thru the browser, do you have perhaps have an addon that is conflicting? What Anti-Virus do you have Installed? Any addons of that?
I have 7 extensions installed in Opera, I've disabled all of them, but nothing changed.
I use Kaspersky Internet Security 2011, disabling it also gives nothing. -
Hi,
Is there any way to retrieve the header text and operation text (if exists) in the user exit 'USER_EXIT_SAVE' before the work order ( in plant maintenance ) gets saved to the database.
i.e. we don't have the actual work order number and SAP represents it at this time as '%00000000001'.
Thanks for any clues
RaviI think you are not getting my point .
This is what is currently in the code :
if l_user_level < approved_level.
message e999 with 'Not authorized to update sales order at this level'.
endif.
I want to be able to use like :
if l_user_level < approved_level.
message e999 with text-054.
endif.
The text-054 is a text element in any z program .
Is this possible ?
Thanks -
Production Order Operation Confirmations & CATS_DA
Hi All,
We are trying to reconcile a discrepancy between CATS_DA data and confirmations entered against production order operations.
I can see the Operation text in the CATS_DA report, and also the WBS element.
I can see the time entries on the confirmations on the production order.
But I can't find any link between the two, and if we sum or aggregate our data, the total hours for Production Order Confirmations are always more than the total hours in CATS.
This is driving us crazy. Can anyone help with some ideas?
Thanks,
TimothyHi Selva,
1. What is the object type for "Planned Orders" to define number range?
The object for planned order is PLAF. You can directly maintain the number range in OMI2 (for planned orders created during MRP) and OMI3 (for manually created planned orders).
2. How to define number range for reservations, operation numbers, order confirmations?
Go to SPRO on the following path: Production Planning for Process Industries - Process Order - Master Data - Order - Number Ranges
Or use the following transactions:
CO83 - reservations
CO81 - operations
CO80 - confirmations
Bonus: to define default values for operation, use transaction OPJG.
Regards,
Julian -
During normal operation text is blurry, but in safe mode text is normal.
Hi,
You can try deselecting '''Use hardware acceleration when available''' in '''Tools''' ('''Alt''' + '''T''') > '''Options''' > '''Advanced''' > '''General''', if it is selected. -
Hi ,
I have a smartform for printing the Production order details.It prints the operation number,text item wise.<b>The first operation text on the second page is being printed wrong</b>.It is printing the previous operation text value i.e the value of last operation on the previous page.I have debugged the smartform and the values are being passed correctly.I am not able to find the problem.please let me know what might be wrong.
Thanks in advance.Hi SaiRam,
I am picking this text from Production order coded in the print program.
The PO Text values are picked properly and sent to the smartform which prints the PO details.the values are being passed exactly.I have checked the values after being passed to smartform by debugging the smartforms FM.Everthing is fine.
But while Printing the first text value on the second page it is printing the previous page last text.The texts on all the other pages are correct.
Please let know if u need further inputs. -
IW32 operation data & component
Hai,
in the transaction iw32,For my order for example 900172,I can see some operations data in AFVC table like LTXA1(operation text),VORNR operation/activity number.But I dont know how to link this table for my order . And How to link this afvc for getting components data (like mateial,description,Required qty issued,Net required,Edit status,reservation & unloading point)
Any tips please?????
with Regards,
Jaheer,Saudi arabia.hi,
check tables AFRU , AFKO.
it has a field AUFNR, through which you can link many other tables.
thanks. -
Report for operation cost wise
Hi All,
We have a report where we need to display the operation text against that cost.Cna you please help in finding out the link where we can display the cost against that particular operations.Hi please see this, regarding the Operation level costing:
Re: Costs by operation in service order
The last reply there may help you avoid using operation level costing, however, I have not been able to find a 100% reliable link between the operations and the costs (meaning DB keys). I have a reliable procedure which won't result in duplicate costs, or otherwise inaccurate cost report, but I have only empirical evidence to prove it - basically I've tested a lot.
In addition, there is a document on SAP tables (I think it's widely spread, I found it googling) which lists some useful PP tables, like PLKO or PLPO, which hold details of operation components. You obtain the necessary keys by looking at BOM for the operation in question. Unfortunately, this didn't work in my case, but it's worth looking into.
I am inclined to believe further link may be achieved using available fields in CO tables, but will need some extra exit development in posting/cost evaluation procedures. I am still looking into this... btw, I'm a tech person, so any functional consultants may feel free to support or reject this theory.
Regards,
SD -
Hi,
Is there nay table to see routing long text field for the multiple materialDear,
Please refer these threads,
Table for routing operation text?
Re: Long text indicator
Regards,
R.Brahmankar -
How to enable the widgets in Indesign CC..?
Hi,
I am working on porting our Indesign CS6 plugin to Indesign CC plugin.I have completed the porting and the plugins has opened in Indesign CC,but i have one problem in design. Three of our Widgets has not opened in Indesign CC.
The code is the following,
.fr file
resource SampleDialogWidget (kSDKDefDialogResourceID + index_enUS)
__FILE__, __LINE__,
kSampleDialogWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Binding
0, 0, 700,400, // Frame (l,t,r,b)
kTrue, kTrue, // Visible, Enabled
kSampleDialogTitleKey, // Dialog name
//<FREDDYWIDGETDEFLISTUS>
SamplePrefListBox
SamplePreflistboxWidgetID,
kSysOwnerDrawListBoxPMRsrcId, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(15,15,170,360) // Frame
kTrue, kTrue, // Visible, Enabled
1,0, // List dimensions
19, // Cell height
1, // Border width
kFalse,kTrue, // Has scroll bar (h,v)
kTrue, // Multiselection
kTrue, // List items can be reordered
kTrue, // Draggable to new/delete buttons
kTrue, // Drag/Dropable to other windows
kTrue, // An item always has to be selected
kFalse, // Don't notify on reselect
kSamplePrefListElementRsrcID // Fill list box with widgets with this ID (default is 0)
CellPanelWidget
kCellPanelWidgetID, kPMRsrcID_None, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(-1,1,154,340) // Frame
kTrue, kTrue // Visible, Enabled
// ----- This is the CPanelControlData that holds the widgets
// that are items in the list box. They are not persistent
GenericPanelWithBorderWidget
SamplePrefGeneralTabWidgetID, kPMRsrcID_None,
kBindBottom |kBindRight,
Frame(175,10,695,360) // Frame
kTrue, kTrue,
StaticTextWidget
kInvalidWidgetID, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
10, 15, 138, 35, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd,kTrue, // Alignment, ellipsize style
kSamplePrefProjectPathStringKey, // Initial text.
kSamplePrefProjectPathTextEditBoxWidgetID // No associated widget
// TextEditBox Widget resource
TextEditBoxWidget
kSamplePrefProjectPathTextEditBoxWidgetID, // WidgetId
kSysEditBoxPMRsrcId, // RsrcId
kBindNone, // Frame binding
Frame(140, 15, 420, 35), // Frame (l,t,r,b)
kTrue, kTrue // Visible, Enabled
0, // Widget id of nudge button (0 so we dont get one)
0, 0,// small,large nudge amount
0, // max num chars(0 = no limit)
kFalse,// is read only
kFalse,// should notify each key stroke
kFalse,// range checking enabled
kFalse,// blank entry allowed
0, // Upper bounds
0, // Lower bounds
"", // Initial text
ButtonWidget
kSampleChooseProjectButtonWidgetID,
kSysButtonPMRsrcId,
kBindNone,
430, 15, 500, 35,
kTrue, kTrue,
kSampleChooseBtnStringKey,
GenericPanelWithBorderWidget
SamplePrefFittingTabWidgetID, kPMRsrcID_None,
kBindBottom |kBindRight,
Frame(175,10,695,360) // Frame
kTrue, kTrue,
StaticTextWidget
kInvalidWidgetID, // WidgetId
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
Frame( 10,15,300,35 ), // Frame (l,t,r,b)
kTrue, kTrue, kAlignLeft, // Visible, Enabled, Alignment
kDontEllipsize,kTrue, //**new element in InDesign 2.0: don't add any ellipses
"Drag/Drop Operation", // Text
0// WidgetId for associated control for shortcut focus
SeparatorWidget
0,
kPMRsrcID_None,
kBindNone,
Frame(10,37,450,38),
kTrue,kTrue,
StaticTextWidget
0, // WidgetId
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
Frame( 10, 40, 250, 60 ), // Frame (l,t,r,b)
kTrue, kTrue, kAlignLeft, // Visible, Enabled, Alignment
kDontEllipsize,kTrue, //**new element in InDesign 2.0: don't add any ellipses
kSampleTextOptionsTextKey, // Text
0 // WidgetId for associated control for shortcut focus
CheckBoxWidget
kSampleTextFitCheckBoxWidgetID, // WidgetId
kSysCheckBoxPMRsrcId, // RsrcId
kBindNone,
Frame(150, 40, 350, 60) // left, top, right, bottom
kTrue, // Visible
kTrue, // Enabled
kAlignLeft, // Alignment
kSampleTextFitChkBoxTextKey // Initial text
GenericPanelWithBorderWidget
SamplePrefScriptEventsTabWidgetID, kPMRsrcID_None,
kBindBottom |kBindRight,
Frame(175,10,695,360) // Frame
kTrue, kTrue,
StaticTextWidget
0, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
10, 10, 200, 30, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd,kTrue, // Alignment, ellipsize style
kSampleDropDownEventsTextKey, // Initial text.
0 // No associated widget
SamplePrefListBox
SamplePrefDragDropScriptlistboxWidgetID, kSysOwnerDrawListBoxPMRsrcId, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(10, 35, 200, 120) // Frame
kTrue, kTrue, // Visible, Enabled
1,0, // List dimensions
19, // Cell height
1, // Border width
kFalse,kTrue, // Has scroll bar (h,v)
kTrue, // Multiselection
kTrue, // List items can be reordered
kTrue, // Draggable to new/delete buttons
kFalse, // Drag/Dropable to other windows
kTrue, // An item always has to be selected
kFalse, // Don't notify on reselect
k SamplePrefListElementRsrcID // Fill list box with widgets with this ID (default is 0)
CellPanelWidget
kCellPanelWidgetID, kPMRsrcID_None, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(-1,1,187,243) // Frame
kTrue, kTrue // Visible, Enabled
// ----- This is the CPanelControlData that holds the widgets
// that are items in the list box. They are not persistent
ButtonWidget
SamplePrefDragDropScriptAddBtnWidgetID,
kSysButtonPMRsrcId,
kBindNone,
20, 125, 90, 145,
kTrue, kTrue,
kSampleAddScriptButtonTextKey,
ButtonWidget
SamplePrefDragDropScriptRemoveBtnWidgetID,
kSysButtonPMRsrcId,
kBindNone,
100, 125, 180, 145,
kTrue, kTrue,
kSampleRemoveScriptButtonTextKey,
Elements added:
void SampleDialogController::PopulatePrefListElement()
do
InterfacePtr<IPanelControlData> iPanelControlData(this, UseDefaultIID());
ASSERT(iPanelControlData);
if(!iPanelControlData) {CAlert::InformationAlert("IPanelControlData err");break;}
SDKListBoxHelper listHelper(iPanelControlData,kSamplePluginID, SamplePreflistboxWidgetID, kSampletDialogWidgetID);
IControlView * listBox = listHelper.FindCurrentListBox();
if(listBox == nil) {
CAlert::InformationAlert("listBox err");
break;
listHelper.EmptyCurrentListBox();
InterfacePtr<IListBoxController> listCntl(listBox,IID_ILISTBOXCONTROLLER); // useDefaultIID() not defined for this interface
ASSERT_MSG(listCntl != nil, "listCntl nil");
if(listCntl == nil) {
CAlert::InformationAlert("IListBoxController err");
break;
//Addin the string to the listbox
const int targetDisplayWidgetId =SamplePrefOptionTextWidgetID;
listHelper.AddElement("General", targetDisplayWidgetId);
listHelper.AddElement("Fitting", targetDisplayWidgetId);
listHelper.AddElement("Events and Scripts", targetDisplayWidgetId);
listCntl->DeselectAll();
}while(0);
I dont know how to enable these three widgets in Indesign CC.please refer this code and help me if anyone has idea regarding this problem.
Thanks in advance,
Vimala LHi,
As per ur suggestion,i have done the below changes
.fr file:
type SamplePrefListBox
(kViewRsrcType) : StdListBoxWidgetN
(ClassID = kStdListBoxWidgetNewBoss)
Class
kSamplePrefListBoxWidgetBoss,
kStdListBoxWidgetNewBoss,
IID_IOBSERVER,kSamplePrefListBoxObserverImpl,
resource SampleDialogWidget (kSDKDefDialogResourceID + index_enUS)
__FILE__, __LINE__,
kSampleDialogWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Binding
0, 0, 700,400, // Frame (l,t,r,b)
kTrue, kTrue, // Visible, Enabled
kSampleDialogTitleKey, // Dialog name
//<FREDDYWIDGETDEFLISTUS>
SamplePrefListBox
SamplePreflistboxWidgetID,
kSysOwnerDrawListBoxPMRsrcId, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(15,15,170,360) // Frame
kTrue, kTrue, // Visible, Enabled
kTrue, //Erase before draw
kInterfacePaletteFill, //Interface color
1,0, // List dimensions
19, // Cell height
1, // Border width
kFalse,kTrue, // Has scroll bar (h,v)
kTrue, // Multiselection
kTrue, // List items can be reordered
kTrue, // Draggable to new/delete buttons
kTrue, // Drag/Dropable to other windows
kTrue, // An item always has to be selected
kFalse, // Don't notify on reselect
0,
0,
kFalse, // Display root node
kFalse, // Use Horizontal scroll bar
kTrue, // Use vertical scroll bar
19, // Vertical scroll button increment
1, // Vertical thumb scroll increment
0, // Horizontal scroll button increment
0, // Horizontal thumb scroll increment
1, // Items selectable 1 = Single selection
kFalse, // Allow children from multibler parents to be selected
kTrue //, // Allow discontiguous selection
I got error...,error R32745: # Error: Expected ')'
SamplePrefListBoxObserver file:
void SamplePrefListBoxObserver::AutoAttach()
InterfacePtr<ISubject> subject(this, UseDefaultIID());
if (subject != nil)
subject->AttachObserver(this, IID_ILISTCONTROLDATA);
void SamplePrefListBoxObserver::AutoDetach()
InterfacePtr<ISubject> subject(this, UseDefaultIID());
if (subject != nil)
subject->DetachObserver(this, IID_ILISTCONTROLDATA);
void SamplePrefListBoxObserver::Update(const ClassID& theChange,ISubject* theSubject,const PMIID &protocol,void* changedBy)
do {
InterfacePtr<IPanelControlData> iPanelControlData(this, UseDefaultIID());
if(!iPanelControlData)
{CAlert::InformationAlert("iPanelControlData err");break;}
InterfacePtr<IWidgetParent> iWidgetParent(this, UseDefaultIID());
ASSERT(iWidgetParent);
if(!iWidgetParent)
{CAlert::InformationAlert("iWidgetParent err");break;}
InterfacePtr<IPanelControlData> iPanelControlDataDialog(
(IPanelControlData*)iWidgetParent->QueryParentFor(IID_IPANELCONTROLDATA) );
if(!iPanelControlDataDialog)
{CAlert::InformationAlert("iPanelControlDataDialog err");break;}
InterfacePtr<IControlView> view(theSubject, UseDefaultIID()) ;
if (view == nil)
{CAlert::InformationAlert("Can't find the panel control view");break;}
if (view->GetWidgetID() != SamplePreflistboxWidgetID)
if(view->GetWidgetID() == SamplePrefDragDropScriptlistboxWidgetID)
this->DeSelectList(iPanelControlDataDialog,SamplePrefUpdateScriptlistboxWidgetID);
this->DeSelectList(iPanelControlDataDialog,SamplePrefImportScriptlistboxWidgetID);
this->DeSelectList(iPanelControlDataDialog,SamplePrefAutoFlowScriptlistboxWidgetID);
else if(view->GetWidgetID() == SamplePrefUpdateScriptlistboxWidgetID)
this->DeSelectList(iPanelControlDataDialog,SamplePrefDragDropScriptlistboxWidgetID);
this->DeSelectList(iPanelControlDataDialog,SamplePrefImportScriptlistboxWidgetID);
this->DeSelectList(iPanelControlDataDialog,SamplePrefAutoFlowScriptlistboxWidgetID);
else if(view->GetWidgetID() == SamplePrefImportScriptlistboxWidgetID)
this->DeSelectList(iPanelControlDataDialog,SamplePrefDragDropScriptlistboxWidgetID);
this->DeSelectList(iPanelControlDataDialog,SamplePrefUpdateScriptlistboxWidgetID);
this->DeSelectList(iPanelControlDataDialog,SamplePrefAutoFlowScriptlistboxWidgetID);
else if(view->GetWidgetID() == SamplePrefAutoFlowScriptlistboxWidgetID)
this->DeSelectList(iPanelControlDataDialog,SamplePrefDragDropScriptlistboxWidgetID);
this->DeSelectList(iPanelControlDataDialog,SamplePrefUpdateScriptlistboxWidgetID);
this->DeSelectList(iPanelControlDataDialog,SamplePrefImportScriptlistboxWidgetID);
if ((protocol == IID_ILISTCONTROLDATA) && (theChange == kListSelectionChangedByUserMessage) )
if (view->GetWidgetID() ==SamplePreflistboxWidgetID)
IControlView* generaltab = iPanelControlDataDialog->FindWidget(SamplePrefGeneralTabWidgetID);
if(!generaltab)
{CAlert::InformationAlert("generaltab err");break;}
IControlView* fittingTab = iPanelControlDataDialog->FindWidget(SamplePrefFittingTabWidgetID);
if(!fittingTab)
{CAlert::InformationAlert("fittingTab err");break;}
IControlView* scriptEventTab = iPanelControlDataDialog->FindWidget(SamplePrefScriptEventsTabWidgetID);
SDKListBoxHelper listHelper(iPanelControlData,kSamplePluginID, SamplePreflistboxWidgetID, kSampleDialogWidgetID);
IControlView * listBox = listHelper.FindCurrentListBox();
if(listBox == nil){CAlert::InformationAlert("listBox err");break;}
InterfacePtr<IListBoxController> listCntl(listBox,IID_ILISTBOXCONTROLLER);
if(listCntl == nil) {break;}
int32 Selindex = listCntl->GetSelected();
if(Selindex!=-1){
InterfacePtr<IPanelControlData> panelControlData1(listBox, UseDefaultIID());
if(!panelControlData1) {break;}
IControlView* cellPanelview = panelControlData1->FindWidget(kCellPanelWidgetID);
InterfacePtr<IPanelControlData> panelControlData2(cellPanelview, UseDefaultIID());
if(!panelControlData2) {break;}
IControlView* cellView = panelControlData2->GetWidget(Selindex);
InterfacePtr<IPanelControlData> panelControlData3(cellView, UseDefaultIID());
if(!panelControlData2) {break;}
IControlView* textView = panelControlData3->FindWidget(SamplePrefOptionTextWidgetID);
InterfacePtr<ITextControlData> cellText (textView, UseDefaultIID());
PMString selectedItem = cellText->GetString();
if(selectedItem=="General")
generaltab->ShowView();
fittingTab->HideView();
scriptEventTab->HideView();
else if(selectedItem=="Fitting Options")
generaltab->HideView();
fittingTab->ShowView();
scriptEventTab->HideView();
else if(selectedItem=="Events and Scripts")
generaltab->HideView();
fittingTab->HideView();
scriptEventTab->ShowView();
} while(0);
void SamplePrefListBoxObserver::DeSelectList(IPanelControlData* iPanelControlData,WidgetID listBoxWidgetID)
do
SDKListBoxHelper listHelper(iPanelControlData,kSamplePluginID, listBoxWidgetID, kSamplePanelWidgetID);
IControlView * listBox = listHelper.FindCurrentListBox();
if(listBox == nil) {
CAlert::InformationAlert("listBox err");
break;
InterfacePtr<IListBoxController> listCntl(listBox,IID_ILISTBOXCONTROLLER); // useDefaultIID() not defined for this interface
ASSERT_MSG(listCntl != nil, "listCntl nil");
if(listCntl == nil) {
CAlert::InformationAlert("IListBoxController err");
break;
listCntl->DeselectAll(kTrue,kFalse);
}while(0);
please refer the above code and help me to develop the plugin.
We have used the SDKListBoxHelper file in our plugin.If it works in Indesign CC?
Thanks,
Vimala L -
Due to MODIF ID, SELECT query in START-OF-SELECTION not getting triggered
Dear SAP Gurus,
I'm stuck with this program, where, my program is not being executed, as in, my SELECT query in my event START-OF-SELECTION is not getting triggered. Since i hav used MODIF ID, for SELECT-OPTIONS, even after putting the entries in select-options...................when i click on the execute button, or press F8, the program still goes into the AT SELECTION-SCREEN OUTPUT event..........but i want it to goto START-OF-SELECTION event where my SELECT query is........what should i do??????????????
Please find the notepad file having the code, n exucse me for any selection-texts absence.
Need help from u in this issue.
Thanks in advance.
REPORT ZPPR_CONVSTAT NO STANDARD PAGE HEADING.
INCLUDE ZPPR_CONVSTAT_TOP. " data declaration
INCLUDE ZPPR_CONVSTAT_SEL_CRITERIA. " selection criteria
INCLUDE ZPPR_CONVSTAT_PBO. " event at selection-screen output
INCLUDE ZPPR_CONVSTAT_START_SELECTION. " event start-of-selection
INCLUDE ZPPR_CONVSTAT_F_START_OF_SEL.
*& Include ZPPR_CONVSTAT_TOP
TABLES : VBUK,
VBUP,
VBAK,
VBAP,
VBEP,
VBPA,
TVAK,
EKUB,
LIKP,
LIPS,
MARA,
MAKT,
MARC,
PLAF,
AUFK,
AFKO,
AFPO,
AFVC,
AFVV,
CRHD,
PBIM,
KNA1,
T134,
IOHEADER,
IOITEM.
TYPE-POOLS : slis.
TYPES : BEGIN OF ty_final,
werks TYPE vbap-werks, "Plant
auart TYPE vbak-auart, "Sales Order Doc. type
erdat TYPE vbak-erdat, "Sales Order Creation date
vbeln TYPE vbak-vbeln, "Sales Order No.
posnr TYPE vbap-posnr, "Sales Order Item No.
aedat TYPE vbak-aedat, "Sales Order Change Date
kwmeng TYPE vbap-kwmeng, "Sales Order qty.
vdatu TYPE vbak-vdatu, "Requested Delivery Date
lfimg TYPE lips-lfimg, "Sales Order Delivered Qty.
matnr TYPE vbap-matnr, "Material ID
arktx TYPE vbap-arktx, "Material Description
strgr TYPE marc-strgr, "Planning Strategy
vrkme TYPE vbap-vrkme, "UOM
plnum TYPE plaf-plnum, "Plan Order No.
gsmng TYPE plaf-gsmng, "Plan Order Qty.
auffx TYPE plaf-auffx, "Plan Order Firming Indicator u2013 Qty.
stlfx TYPE plaf-stlfx, "Plan Order Firming Indicator - Component
erdat2 TYPE aufk-erdat, "Production Order Creation Date
aufnr TYPE aufk-aufnr, "Production Order No.
prdqty TYPE afko-gamng, "Production Order qty.
pckqty TYPE lips-lfimg, "Packed Delivered Qty.
psamg TYPE afpo-psamg, "Allotted scrap
igmng TYPE afko-igmng, "Confirmed Yield Qty.
iasmg TYPE afko-iasmg, "Confirmed Scrap Qty
iamng TYPE afpo-iamng, "Expected Yield
wemng TYPE afpo-wemng, "Delivered Qty.
altscrp TYPE c LENGTH 6, "Allotted Scrap %
actscrp TYPE c LENGTH 6, "Actual Scrap %
umrez TYPE afvv-umrez, "Ups (from Prd. ORD)
ups TYPE clobjdat-ausp1, "Ups (from Material Master)
crtnstl TYPE clobjdat-ausp1, "Carton Style
ppopr TYPE clobjdat-ausp1, "Pre-Printing Operation
brdtyp TYPE clobjdat-ausp1, "Board Type
lsdim1 TYPE clobjdat-ausp1, "Layout Size u2013 Dim 1
lsdim2 TYPE clobjdat-ausp1, "Layout Size u2013 Dim 2
lsgsm TYPE clobjdat-ausp1, "GSM
inktyp TYPE clobjdat-ausp1, "Ink Type
foiltyp TYPE clobjdat-ausp1, "Foiling
wintyp TYPE clobjdat-ausp1, "Window Type
lamin TYPE clobjdat-ausp1, "Lamination
fsvrnsh TYPE clobjdat-ausp1, "Front Side Varnish
bsvrnsh TYPE clobjdat-ausp1, "Back Side Varnish
emboss TYPE clobjdat-ausp1, "Embossing
punch TYPE clobjdat-ausp1, "Punching
paste TYPE clobjdat-ausp1, "Pasting
oprno TYPE afvc-vornr, "Operation No.
wrkcntr TYPE crhd-arbpl, "Work Centre
oprtxt TYPE afvc-ltxa1, "Operation Text
oprqty TYPE afvv-mgvrg, "Operation qty.
yield TYPE afvv-lmnga, "Yield
scrap TYPE afvv-xmnga, "Scrap
jobtyp TYPE vbak-augru, "Job Type
prordst TYPE bsvx-sttxt, "Production Order Status
solinst TYPE vbup-lfsta, "Sales Order Line Item Status
sldprty TYPE kna1-name1, "Sold to Party Name
shpprty TYPE kna1-name1, "Ship to Party Name
shpcity TYPE kna1-ort01, "Ship to party - City
END OF ty_final.
TYPES : BEGIN OF ty_vbak,
auart TYPE vbak-auart,
erdat TYPE vbak-erdat, "Doc creation date
vbeln TYPE vbak-vbeln,
aedat TYPE vbak-aedat, "Doc change date
vdatu TYPE vbak-vdatu, "Requested delivery date
kunnr TYPE vbak-kunnr,
augru TYPE vbak-augru, "Job Type
END OF ty_vbak.
TYPES : BEGIN OF ty_vbap,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
werks TYPE vbap-werks,
matnr TYPE vbap-matnr,
arktx TYPE vbap-arktx,
kwmeng TYPE vbap-kwmeng,
vrkme TYPE vbap-vrkme,
END OF ty_vbap.
TYPES : BEGIN OF ty_pbim,
pbdnr TYPE pbim-pbdnr, "Requirements Plan Number
bdzei TYPE pbim-bdzei, "Independent requirements pointer
matnr TYPE pbim-matnr,
werks TYPE pbim-werks,
END OF ty_pbim.
TYPES : BEGIN OF ty_pbhi,
bdzei TYPE pbhi-bdzei, "Independent requirements pointer
pdatu TYPE pbhi-pdatu, "Requirement date
laeda TYPE pbhi-laeda, "Date of Last Change
END OF ty_pbhi.
TYPES : BEGIN OF ty_ekko,
ebeln TYPE ekko-ebeln, "STO doc no
bsart TYPE ekko-bsart,
reswk TYPE ekko-reswk, "Supplying plant
aedat TYPE ekko-aedat, "Doc creation date
END OF ty_ekko.
TYPES : BEGIN OF ty_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat, "Doc change date
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
matnr TYPE ekpo-matnr,
txz01 TYPE ekpo-txz01,
END OF ty_ekpo.
TYPES : BEGIN OF ty_eket,
ebeln TYPE eket-ebeln,
ebelp TYPE eket-ebelp,
eindt TYPE eket-eindt, "Requested delivery date
END OF ty_eket.
TYPES : BEGIN OF ty_lips,
vbeln TYPE lips-vbeln,
posnr TYPE lips-posnr,
vgbel TYPE lips-vgbel,
vgpos TYPE lips-vgpos,
lfimg TYPE lips-lfimg,
END OF ty_lips.
TYPES : BEGIN OF ty_plaf,
plnum TYPE plaf-plnum,
matnr TYPE plaf-matnr,
gsmng TYPE plaf-gsmng,
auffx TYPE plaf-auffx,
stlfx TYPE plaf-stlfx,
kdauf TYPE plaf-kdauf,
kdpos TYPE plaf-kdpos,
pbdnr TYPE plaf-pbdnr,
END OF ty_plaf.
TYPES : BEGIN OF ty_aufk,
aufnr TYPE aufk-aufnr,
erdat TYPE aufk-erdat,
objnr TYPE aufk-objnr,
END OF ty_aufk.
TYPES : BEGIN OF ty_afko,
aufnr TYPE afko-aufnr,
gamng TYPE afko-gamng, "Total order quantity
gasmg TYPE afko-gasmg, "Total scrap quantity in the order
igmng TYPE afko-igmng, "Confirmed Yield Qty
iasmg TYPE afko-iasmg, "Confirmed Scrap Qty
aufpl TYPE afko-aufpl, "Routing number of operations in the order
END OF ty_afko.
TYPES : BEGIN OF ty_afpo,
aufnr TYPE afpo-aufnr,
plnum TYPE afpo-plnum,
matnr TYPE afpo-matnr,
pgmng TYPE afpo-pgmng, "Plan Order Qty
kdauf TYPE afpo-kdauf,
kdpos TYPE afpo-kdpos,
psamg TYPE afpo-psamg, "Allotted scrap
iamng TYPE afpo-iamng, "Expected Yield Variance
wemng TYPE afpo-wemng, "Delivered Qty
END OF ty_afpo.
TYPES : BEGIN OF ty_afvc,
vornr TYPE afvc-vornr,
aufpl TYPE afvc-aufpl, "Routing number of operations in the order
aplzl TYPE afvc-aplzl, "General counter for order
arbid TYPE afvc-arbid, "Object ID of the resource
ltxa1 TYPE afvc-ltxa1,
END OF ty_afvc.
TYPES : BEGIN OF ty_afvv,
aufpl TYPE afvv-aufpl, "Routing number of operations in the order
aplzl TYPE afvv-aplzl, "General counter for order
umrez TYPE afvv-umrez,
mgvrg TYPE afvv-mgvrg,
lmnga TYPE afvv-lmnga,
xmnga TYPE afvv-xmnga,
END OF ty_afvv.
TYPES : BEGIN OF ty_mdvm,
mdkey TYPE mdvm-mdkey,
disst TYPE mdkp-disst,
matnr TYPE mdkp-matnr,
plwrk TYPE mdkp-plwrk,
END OF ty_mdvm.
DATA : it_final TYPE STANDARD TABLE OF ty_final,
it_vbak TYPE STANDARD TABLE OF ty_vbak,
it_vbap TYPE STANDARD TABLE OF ty_vbap,
it_lips TYPE STANDARD TABLE OF ty_lips,
it_pbim TYPE STANDARD TABLE OF ty_pbim,
it_pbhi TYPE STANDARD TABLE OF ty_pbhi,
it_ekko TYPE STANDARD TABLE OF ty_ekko,
it_ekpo TYPE STANDARD TABLE OF ty_ekpo,
it_eket TYPE STANDARD TABLE OF ty_eket,
it_plaf TYPE STANDARD TABLE OF ty_plaf,
it_aufk TYPE STANDARD TABLE OF ty_aufk,
it_afko TYPE STANDARD TABLE OF ty_afko,
it_afpo TYPE STANDARD TABLE OF ty_afpo,
it_afvc TYPE STANDARD TABLE OF ty_afvc,
it_afvv TYPE STANDARD TABLE OF ty_afvv,
it_mdvm TYPE STANDARD TABLE OF ty_mdvm.
DATA : wa_final TYPE ty_final,
wa_vbak TYPE ty_vbak,
wa_vbap TYPE ty_vbap,
wa_lips TYPE ty_lips,
wa_pbim TYPE ty_pbim,
wa_pbhi TYPE ty_pbhi,
wa_ekko TYPE ty_ekko,
wa_ekpo TYPE ty_ekpo,
wa_eket TYPE ty_eket,
wa_plaf TYPE ty_plaf,
wa_aufk TYPE ty_aufk,
wa_afko TYPE ty_afko,
wa_afpo TYPE ty_afpo,
wa_afvc TYPE ty_afvc,
wa_afvv TYPE ty_afvv,
wa_mdvm TYPE ty_mdvm.
DATA : it_object TYPE hum_object_t,
wa_object TYPE hum_object,
it_item TYPE hum_hu_item_t,
wa_item TYPE vepovb,
count1(6) TYPE n.
DATA : gv_objek TYPE ausp-objek. "Put matnr for use in FM u2018CLAF_CLASSIFICATION_OF_OBJECTSu2019
DATA : BEGIN OF it_sclass OCCURS 0.
INCLUDE STRUCTURE sclass.
DATA : END OF it_sclass.
DATA : BEGIN OF it_clobjdat OCCURS 0.
INCLUDE STRUCTURE clobjdat.
DATA : END OF it_clobjdat.
*& Include ZPPR_CONVSTAT_SEL_CRITERIA
SELECTION-SCREEN FOR 'PLANNING STAGE'
SELECTION-SCREEN BEGIN OF BLOCK main WITH FRAME TITLE text-001.
PARAMETERS: mrpntdn RADIOBUTTON GROUP sel DEFAULT 'X' user-command flag,
pldord RADIOBUTTON GROUP sel,
prdord RADIOBUTTON GROUP sel.
SELECTION-SCREEN END OF BLOCK main.
SELECTION-SCREEN FOR 'SELECTION BY PLANT AND PLANT DATA'
SELECTION-SCREEN BEGIN OF BLOCK plant WITH FRAME TITLE text-002.
PARAMETERS : p_werks LIKE ioheader-werks OBLIGATORY DEFAULT '1100' MATCHCODE OBJECT H_T001W.
SELECT-OPTIONS : so_matnr FOR ioitem-matnr MATCHCODE OBJECT MAT1.
PARAMETERS : so_mtart TYPE t134-mtart OBLIGATORY DEFAULT 'ZFIN' MATCHCODE OBJECT H_T134.
SELECT-OPTIONS : so_plnum FOR ioitem-plnum MATCHCODE OBJECT plnum MODIF ID pld,
so_aufnr FOR ioheader-aufnr MATCHCODE OBJECT orde MODIF ID prd.
PARAMETERS : p_prdsta LIKE tj02t-txt04 MODIF ID prd.
SELECTION-SCREEN END OF BLOCK plant.
SELECTION-SCREEN FOR 'SELECTION BY REQUIREMENT TYPE'
SELECTION-SCREEN BEGIN OF BLOCK reqtyp WITH FRAME TITLE text-003.
PARAMETERS : cb_so TYPE AUSWL_EB AS CHECKBOX USER-COMMAND flag,
cb_sto TYPE AUSWL_EB AS CHECKBOX USER-COMMAND flag,
cb_pir TYPE AUSWL_EB AS CHECKBOX USER-COMMAND flag.
SELECTION-SCREEN END OF BLOCK reqtyp.
SELECTION-SCREEN FOR 'SELECTION BY DATE AND REQUIREMENT TYPE NOS'
SELECTION-SCREEN BEGIN OF BLOCK dtreqtypno WITH FRAME TITLE text-004.
SELECT-OPTIONS : so_crtdt FOR vbak-erdat MODIF ID gen,
so_vbeln FOR vbap-vbeln MATCHCODE OBJECT WTY_F4_VBAP MODIF ID rso,
so_posnr FOR vbap-posnr MODIF ID rso,
so_ebeln FOR ekub-ebeln MATCHCODE OBJECT MEKKM MODIF ID rst,
so_ebelp FOR ekub-ebelp MODIF ID rst,
so_pbdnr FOR pbim-pbdnr MODIF ID rpi,
so_reqdt FOR vbep-edatu MODIF ID gen.
SELECTION-SCREEN END OF BLOCK dtreqtypno.
SELECTION-SCREEN FOR 'SELECTION BY OTHER PARAMETERS'
SELECTION-SCREEN BEGIN OF BLOCK othrparam WITH FRAME TITLE text-005.
SELECT-OPTIONS : so_kunnr FOR kna1-kunnr MATCHCODE OBJECT debi MODIF ID rso,
so_auart FOR tvak-auart MATCHCODE OBJECT H_TVAK MODIF ID rso,
so_lfsta FOR vbup-lfsta MODIF ID rso.
SELECTION-SCREEN END OF BLOCK othrparam.
*& Include ZPPR_CONVSTAT_PBO
*& Event AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
IF mrpntdn = 'X'.
LOOP AT SCREEN.
IF ( screen-group1 = 'PLD' OR screen-group1 = 'PRD' ).
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF pldord = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'PLD'.
screen-intensified = 1.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'PRD'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF prdord = 'X'.
LOOP AT SCREEN.
IF ( screen-group1 = 'PLD' OR screen-group1 = 'PRD' ).
screen-intensified = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF ( cb_so = ' ' AND cb_sto = ' ' AND cb_pir = ' ' ).
LOOP AT SCREEN.
IF ( screen-group1 = 'GEN'
OR screen-group1 = 'RSO'
OR screen-group1 = 'RST'
OR screen-group1 = 'RPI' ).
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_so = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'RSO'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
IF cb_sto = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RST'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_pir = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RPI'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ELSEIF cb_sto = 'X'.
IF cb_so = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RSO'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_pir = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RPI'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ELSEIF cb_pir = 'X'.
IF cb_so = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RSO'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_sto = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RST'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
*& Include ZPPR_CONVSTAT_START_SELECTION
*& Event START-OF-SELECTION
IF mrpntdn = 'X'.
PERFORM start_of_selection_mrpntdn.
ELSEIF pldord = 'X'.
PERFORM start_of_selection_pldord.
ELSEIF prdord = 'X'.
PERFORM start_of_selection_prdord.
ENDIF.
*& Include ZPPR_CONVSTAT_F_START_OF_SEL
*& Form START_OF_SELECTION
Subroutine for MRP NOT DONE
FORM start_of_selection_mrpntdn.
SELECT mdkey INTO TABLE it_mdvm FROM mdvm
WHERE GSAEN = 'X'
AND AKKEN = 'X'.
IF sy-subrc = 0.
LOOP AT it_mdvm INTO wa_mdvm.
wa_mdvm-disst = wa_mdvm-mdkey(3).
wa_mdvm-matnr = wa_mdvm-mdkey+3(18).
wa_mdvm-plwrk = wa_mdvm-mdkey+21(4).
MODIFY it_mdvm FROM wa_mdvm INDEX sy-index TRANSPORTING disst matnr plwrk.
ENDLOOP.
ENDIF.
ENDFORM.
*& Form START_OF_SELECTION
Subroutine for PLAN ORDER CREATED
FORM start_of_selection_pldord.
ENDFORM.
*& Form START_OF_SELECTION for PRODUCTION ORDER CREATED
Subroutine for PRODUCTION ORDER CREATED
FORM start_of_selection_prdord.
ENDFORM.You need to mention START-OF-SELECTION explicitly in your code.
Change your code as below:
*& Event START-OF-SELECTION
START-OF-SELECTION.
IF mrpntdn = 'X'.
Maybe you are looking for
-
Win 8.1 forcing switch to online account
Just installed 8.1. I'm using local accounts. I'm not a fan of my business files being uploaded to some SkyDrive location out of my control. I went to the Windows Store just to look around. I went to install the first app I saw, Movie Moments or
-
for mac
-
is there a way to organise the files in itunes media into playlists? i have a large playlist that i wish to add to a hard drive but i don't want to have to look up each file location separately.
-
External harddrive won't show in windows explorer Windows 7
I have an interesting problem or so I think it's interesting. I have a n HP Pavilion DV6-7001ax, Windows 7 Ultimate 64bit just turned a year old. My problem is I had a 1tb western digital My Book Essential it's alos about a year old. Two days ago
-
$(UI've installed NSM on Netware 6.5 SP7 and NFR on OES2 SP2 64bit in an eDirectory Environment. I've installed the NFR agent on an OES2 SP2 64bit system. The agent is correctly configured with the IP address of the NFR engine server. The Agent shows