How to handle "Display/Change" mode in XD0x with CUSTOMER_ADD_DATA_CS
Hi,
I've implemented customer fields to the debitor master data screen with BADI CUSTOMER_ADD_DATA_CS,
using methods SET_DATA and GET_DATA and created a new screen within a Z-function group.
So I have a new tab with the custom fields. If I do nothing further, the fields are input enabeld also within transaction XD03.
At the moment, I'm using the value of sy-tcode to check for display (=XD03) or change/create (XD02/XD01) mode to handle
the enable/disable mode of this fields.
This is my coding in the PBO of my Z-screen.
LOOP AT SCREEN.
IF screen-group1 = 'Z01'.
IF sy-tcode = 'XD03' OR sy-tcode = 'VD03'.
IF sy-ucomm = 'ENTR'.
screen-input = '1'.
ELSE.
*.. display mode
screen-input = '0'.
ENDIF.
ENDIF.
ENDLOOP.
But if the user change form display to change mode wthin(!) the transaction, the sy-tcode is still XD03 and not XD02.
If this is done in the screen with the custom fields, I can check for sy-ucomm (='ENTR'), but if an other screen is opened, I could not check for sy-ucomm.
How can I handle this?
I've found the following enhancement point:
ENHANCEMENT-POINT MF02DFD0_01 SPOTS ES_MF02DFD0 INCLUDE BOUND.
Or can I use the other methods in the BADI like SET_FCODE?
Thanks in advance!
Andreas
Hi Andreas:
I have to do something similar but for t-code FD02/FD03.
I've created a program type M to control my new dynpro, and using a PBO module to change the screen depending on display/modify.
I'm trying to add code to method SET_DATA, but my knowledge on OO programamtion is limited.
Could you please provide the part of your code to implement the solution described in this post?.
Best regards,
Carlos.
Similar Messages
-
How to handle Text change event in text box in SAP B1
Hello Expert...
How to handle Text change event in source.
Please define the Event when i change the text in textbox..
currently i am using the Lost focus event but it is only occur when tab focus lost from that text box.
So please required solution ASAP..
Regards,
Abhinav Lalpurwala
Edited by: Abhinav Lalpurwala on Aug 5, 2011 3:19 PMHi,
Catch the et_VALIDATE event, when InnerEvent = False and ItemChanged = True.
If pVal.EventType = BoEventTypes.et_VALIDATE Then
If pVal.InnerEvent = False And pVal.ItemChanged Then
'TODO Your code here...
End If
End If
Regards,
Vítor Vieira -
Hello All,
I have following question about how to handle fund changes at the installment.
1) At first i created document as follows.
Tuition fee : 100 USD
Fund was 0A00 .
2) I also created installment for qbove document.
Installment 1 : 50 USD
Installment 2 : 50 USD
3) During clearing fund was changed to 0B00 for the installment 2 by the FM team for their own purpose.
When student pay installment 2, i got an error and how can i handle in this case.
your help would be appreciated.
regards,FM errors can be tricky. Changing the original fund is likely the culprit. Do you have more detail about the specific error your are receiving. This is not enough information to resolve an issue in FM.
-
How/where do I change the AppleID associated with my computer?
How/where do I change the AppleID associated with my computer?
What do you mean by "change the Apple ID"? Are you trying to get a new ID from the one you currently have or just add a new ID to the computer?
-
How to handle 2 or more .jar files with an applet
Hey out there
I have created an ftpClient application that uses "jakarta ftpClient". It works fine as an JFrame application � But when I converted the Application into an JApplet I get the following Exception:
java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
I have bundled the main application into a .jar file (Application,jar). But I don't know how to handle the 2 jakarta .jar files with my JApplet??
I Tried to append the 2 jakarta .jar files to the Application,jar with the following code:
jar cvf Application.jar 1.class 2.class�. commons-net-1.4.1.jar jakarta-oro-2.0.8.jar
But with the same result / Exception (I have signed the Jar file!)
Can anyone help meHi i have a question with your application can you down- or upload more files at the same time? Because i'm having problems with my ftp application.
Here is the link with my problem maybe you can help me. I will be very pleased when you can help me.
http://forum.java.sun.com/thread.jspa?threadID=5162042&tstart=0
Thx
Satanduvel -
How to handle the table control While working with LSMW?
How to handle the table control While working with LSMW?
its possible in lsmw,
Hi,
LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.
check that single charecter field, it that is X that means the header record is processed, and do the items.
and, this is another way, try this out also
YOu can do this in "Define Source Structures" step,
the HEADER is defined first,
then the DETAIL below the HEADER.
add the fields to the structures.
Both should have some common key field
Please take care that the name of the common field is the same.
Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would.
Thanks -
How to handle password changes if we implement singlesignon between BO& BI7
Hi,
As we know ,we can implement single signon between BO and SAP BI 7, by importing roles and users through CMC and by selecting the option "Use Single signon during report refresh time".
My doubt here is, When we import roles from SAP and Auto import the users, is it only the SAP usernames that are stored in BO repository or both username and password. If second case holds true then how to handle/manage password change for a user who is already imported in BO sometime back?
Would the password changes be reflected automatically in BO?
Please guide me if you think that I'm thinking in a wrong direction.Hi Naresh,
password changes are reflected automatically in BO. BO just forwards the data to the SAP side and it does the real authentification.
Regards,
Stratos
PS: Keep in mind that you cannot change the SAP password on the BO login screen if your SAP password has expired. You have to do this with the SAP client (SAP GUI) -
How to handle version changes? Strategies?
We're struggling with version change issues. Most recently we tried to move from 8.5 to 8.6 and lost about a week of project time while we tried to make it run well. The problem was that the Development Environment would crash several times a day while doing block diagram edits, losing unsaved changes. We never found any clues as to why. It would be one thing to debug a VI that crashes, but when it is the LV editor itself that is crashing, how do we work on that?
Anyway, we have a policy here of freezing software updates for projects that are close to completion, because buggy updates so often delay project completions, and this triggered a return to 8.5, which is where we remain now on that project.
But now we can't install and use the VI Analyzer we just bought on any of the PCs tied to that project, as it demands 8.6. I do have one PC that is completely disconnected from this project, and it runs 8.6, so running the Analyzer there may be useful, but still messy.
How do you handle version changes? How often do you try to follow the updates? How often do you need to go back a version? Do you maintain different versions? Is it even possible to run multiple versions on an individual Win XP PC?
Thanks!I have installed several versions of LabVIEW on my system.
Most of the toolkits are only installed in the latest versions. There are ways to install toolkits on multiple versions.
And I think that toolkits as of LabVIEW version 8.6 can be installed on several LabVIEW verions.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
How to handle value change events of select list in custom component?
My HelloUIComp code...How to handle events for "Select"...if i choose option1 from select then one text box is to be displayed in custom component and if i choose another option then some other text box is to be displayed in custom components...
public class HelloUIComp extends UIComponentBase {
public static final String account="custom.account";
public static final String RENDERER_TYPE = null;
HtmlCommandButton button = createButton();
//HtmlSelectOneMenu select=createSelect();
public void processDecodes(FacesContext context) {
Calling the lifecycle method "processDecodes" on the
internal button is absolutely critical to create action events
button.processDecodes(context);
super.processDecodes(context);
private HtmlCommandButton createButton() {
FacesContext context = FacesContext.getCurrentInstance();
HtmlCommandButton newButton = new HtmlCommandButton();
newButton.setId("Add");
newButton.setValue("Add");
newButton.setType("submit");
//newButton.setOnclick("return func_1(this,event);");
MethodBinding binding = context.getApplication().createMethodBinding("#{pc_MyProjectView.go}", null);
newButton.setAction(binding);
newButton.setParent(this);
return newButton;
/* private HtmlSelectOneMenu createSelect()
HtmlSelectOneMenu selectCategory=createSelect();
return selectCategory;
public void encodeBegin(FacesContext context) throws IOException {
String style = (String)getAttributes().get("style");
String startdate = (String)getAttributes().get("startdate");
String enddate = (String)getAttributes().get("enddate");
//String add=(String)getAttributes().get("add");
ResponseWriter writer = context.getResponseWriter();
writer.startElement("table", this);
writer.writeAttribute("border","2","2");
writer.startElement("tbody", this);
writer.startElement("tr", this);
writer.startElement("td", this);
writer.writeText("Account Category", null);
writer.endElement("td");
writer.startElement("td", this);
writer.writeText("Reg-No", null);
writer.endElement("td");
writer.startElement("td", this);
writer.writeText("Account-No", null);
writer.endElement("td");
writer.startElement("td", this);
writer.writeText("", null);
writer.endElement("td");
writer.startElement("td", this);
writer.writeText("Start-Date", null);
writer.endElement("td");
writer.startElement("td", this);
writer.writeText("End-Date", null);
writer.endElement("td");
writer.endElement("tr");
writer.startElement("tr",this);
writer.startElement("td", this);
writer.startElement("select", this);
if (style!=null)
writer.writeAttribute("style", style, null);
writer.writeAttribute("name","category","category");
writer.startElement("option", this);
writer.writeText("Select", null);
writer.endElement("option");
//to access data
Account accountObj;
AccountData accountDataobj;
List listOfAccounts;
int noOfAccounts;
accountDataobj=new AccountData();
listOfAccounts=accountDataobj.getAccounts();
noOfAccounts=listOfAccounts.size();
for(int i=0;i<noOfAccounts;i++)
writer.startElement("option", this);
accountObj=(Account) listOfAccounts.get(i);
writer.writeText(accountObj.getCategory(), null);
writer.endElement("option");
//System.out.println(accountObj.getRegNo());
//System.out.println(accountObj.getAccountNo());
writer.endElement("select");
writer.endElement("td");
writer.startElement("td", this);
writer.startElement("select", this);
if (style!=null)
writer.writeAttribute("style", style, null);
writer.writeAttribute("name","regno","regno");
writer.startElement("option", this);
writer.writeText("Select", null);
writer.endElement("option");
for(int i=0;i<noOfAccounts;i++)
accountObj=(Account) listOfAccounts.get(i);
writer.startElement("option", this);
writer.writeText(""+accountObj.getRegNo(), null);
writer.endElement("option");
writer.endElement("select");
writer.endElement("td");
writer.startElement("td", this);
writer.startElement("select", this);
if (style!=null)
writer.writeAttribute("style", style, null);
writer.writeAttribute("name","accno","accno");
writer.startElement("option", this);
writer.writeText("Select", null);
writer.endElement("option");
for(int i=0;i<noOfAccounts;i++)
accountObj=(Account) listOfAccounts.get(i);
writer.startElement("option", this);
writer.writeText(accountObj.getAccountNo(), null);
writer.endElement("option");
//writer.startElement("option", this);
//writer.writeText("00200155", null);
//writer.endElement("option");
writer.endElement("select");
writer.endElement("td");
writer.startElement("td", this);
button.encodeBegin(context);
button.encodeChildren(context);
button.encodeEnd(context);
writer.endElement("td");
writer.startElement("td", this);
writer.startElement("input", this);
if (style!=null)
writer.writeAttribute("style", style, null);
writer.writeAttribute("type","text","text");
writer.writeAttribute("name","startdate","startdate");
writer.writeAttribute("value",startdate,startdate);
writer.writeAttribute("readonly", "","");
//writer.endElement("input");
writer.endElement("td");
writer.startElement("td", this);
writer.startElement("input", this);
if (style!=null)
writer.writeAttribute("style", style, null);
writer.writeAttribute("type","text","text");
writer.writeAttribute("name","enddate","enddate");
writer.writeAttribute("value",enddate,enddate);
writer.writeAttribute("readonly", "","");
writer.endElement("td");
writer.endElement("tr");
writer.endElement("tbody");
writer.endElement("table");
public String getFamily() {
return "HelloFamily";
}NewEclipseCoder wrote:
How to handle events for "Select"...if i choose option1 from select then one text box is to be displayed in custom component and if i choose another option then some other text box is to be displayed in custom components...Two ways:
1) submit the form to the server and render the desired textbox depending on the option.
or
2) render all textboxes and use Javascript/DOM to display/hide them depending on the option. -
Using Change Data Capture in SSIS - how to handle schema changes
I was asked to consider change data capture for a database recently. I can see that from the database perspective, its quite nice. When I considered how I'd do this in SSIS, it seemed pretty obvious that I might have a problem, but I wanted to
confirm here.
The database in question changes the schema about once per month in production. We have a lot of controls in our environment, so everytime a tables schema is changed, I'd have to do a formal change request to deal with a change to my code
base, in this case my SSIS package; it can be a lot of work. If I wanted to track the data changes for inserts, update and deletes using an SSIS package to send the data changes to the destination tables, would I have to change my SSIS package
with every schema change, or is there a way to keep the exact same SSIS package with CDC without having to change it every month?
Thanks,
KeithHi Keith,
What is your exact requirement?
If you want to capture the object_created, object_deleted or object_altered informations, you can try using
Extended events .
As mentioned in your OP:
"If I wanted to track the data changes for inserts, update and deletes using an SSIS package to send the data changes to the destination tables, would I have to change my SSIS package with
every schema change, or is there a way to keep the exact same SSIS package with CDC without having to change it every month?"
If you want the databases in two different environments to be in sync, then take periodic
backup and apply(restore) on the another destination DB.
(or)
you can also try with
SQL Server replication if it is really needed.
As I understand from your description, if you want the table data & schema to be in sync in two different database:
then create job [script that will drop the destination DB table & create the copy of source DB table ] as per your requirement:
--CREATE DATABASE db1
--CREATE DATABASE db2
USE db1
GO
CREATE TABLE tbl(Id INT)
USE db2
GO
IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE name = 'tb1' and TYPE = 'u')
DROP TABLE dbo.tb1
SELECT * INTO db2.dbo.tb1 FROM db1.dbo.tbl
SELECT * FROM dbo.tb1
--DROP DATABASE db1,db2
sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **. -
How to handle tab change event in UI shell main area
Hi,
I have two tabs(two taskflows) in UI shell main area. one is department tab and another is employee tab. My department tab shows employees department wise. On employee tab I have emplyee table which shows employees jobwise. This employee table has the functionality of adding new record to employee vo as well.
Now i follow these steps.
1. by defualt department tab is open.
2. by clickinng on Tasks menu link i open Employee tab in to main area. Now i have both tabs in main area.
3. at Employee tab I search all employees job = accountant. It shows the search result well.
4. Now i add a new record to it and without saving/deleting this record i move to department tab.
5. at Department tab i search employees where department =20, here no relation b/w job and department.
6. Now i return to employee tab. my newly added record got disappeared. It is there but does not show in table.
How to resolve it??
I have one solution in my mind while changing the tab i can prompt to user "you can not leave the newly added record..either save it or delete it". But how to catch tab change event here? where i can write code to prompt msg to user?
Pls help.
Edited by: 900997 on May 6, 2012 4:10 AMWith apologies for the slow reply, I'm currently travelling.
Two things to note:
1) The af:document uncommittedDataWarning flag was designed to stop users navigating away from half entered records. More about this flag can be found here:
http://docs.oracle.com/cd/E23943_01/web.1111/b31973/af_orgpage.htm#CACDDDFH (see point 4)
http://www.oracle.com/technetwork/developer-tools/adf/unsaveddatawarning-096556.html
....please note our documentation from time to time spells this flag wrong with only one "t" in the word committed, so if you're attempting a bulk search check for this (and I'll raise document bugs to get this fixed in the future).
2) On addressing the ADF UI Shell, if you're switching between "pages" in the UI Shell, as separate to switching between dynamic tabs within a single page using the UI Shell, the UI Shell will actually restart the currently running task flow in the page you're returning too. You can verify this by implementing an initializer on your task flow with a log message, and watching when the initializer is called.
In addressing your last question, at this stage I think you need to assess my first answer then come back if you think you sill need to execute the code on the tab click. I also need to know are you talking about the primary level of tabs that represent each page in the UI Shell, or are you referring to the dynamic tabs within a single UI Shell page that hold your task flows?
CM. -
How do I save changes to a PDF with AxAcroPDFLib.AxAcroPDF?
I am using C# and have created a regular Windows form. I have used COM and registered AxAcroPDFLib.AxAcroPDF. Here is my code;
axAcroPDF1.LoadFile("myfile.pdf")
axAcroPDF1.Show();
MessageBox.Show("Showing...");
This works fine. But, just like the browser, I cannot save changes to the PDF. I have the full version of Adobe Acrobat installed, Standard 8.0. I also have the Pro. version 7.1.0 on another PC. When I click save I just get prompted to save it locally, just like I was in the browser.
If I edit these normally, just via Adobe Acrobat Standard, I can save my changes. I cannot do it via the AxAcroPDFLib library.
How do I save changes to my adobe acrobat pdf file in my program? Thank you for any help. please.I did this after I wrote this. I have looked at the documentation but I can't find what I am looking for. Is there another way to open a file for viewing that has the full capabilities or using the normal program...one that uses something besides AxAcroPDFLib.AxAcroPDF. The sample that did have a view used AxAcroPDFLib.AxAcroPDF so it wasn't helpful. All I need is normal program functionality of adobe standard or profession within the application. The users have a full version installed on their PC.
Thanks again. -
How to display particular ROW of a table control in display/change mode
Hi,
Can we make particular ROW in a table control display mode or editable mode depending upon the conditions?.
Any inputs..
Rgds,
LakshmirajHi,
Yes it is possible. check the follwoing code for help.
*& Include Z101954_ASSIGNMENT1I01
*& Module VALIDATE_SALES_ORG INPUT
text
MODULE validate_sales_org INPUT.
SELECT SINGLE zvkorg FROM vbak INTO zvbak-zvkorg
*WHERE zvbeln = zbookhdr-zvbeln.
IF sy-subrc <> 0.
MESSAGE 'INVALID AIRLINE ID INPUT' TYPE 'I'.
CALL SCREEN 1000.
ENDIF.
ENDMODULE. " VALIDATE_SALES_ORG INPUT
*& Module USER_COMMAND_1001 INPUT
text
MODULE user_command_1001 INPUT.
var3 = 1.
IF sy-ucomm <> 'SAVE'.
PERFORM material_check.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT MATERIAL NUMBER' TYPE 'I'.
ELSE.
SELECT SINGLE zmaktx zmeins zwaerk zstprs FROM zmara
INTO CORRESPONDING FIELDS OF it_salesitems
WHERE zmatnr = it_salesitems-zmatnr.
SELECT SINGLE zwerks zlgort FROM zorg
INTO CORRESPONDING FIELDS OF it_salesitems
WHERE zvkorg = wa_salesorder-zvkorg
AND zvtweg = wa_salesorder-zvtweg
AND zspart = wa_salesorder-zspart.
it_salesitems-znetwr = it_salesitems-zstprs * it_salesitems-zbrgew.
MODIFY it_salesitems FROM it_salesitems INDEX sy-tabix.
MOVE-CORRESPONDING it_salesitems TO temp_salesitems.
APPEND temp_salesitems.
REFRESH it_salesitems.
ENDIF.
ENDIF.
LOOP AT temp_salesitems.
if it_salesitems-pick = 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'DETAIL'.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif.
endloop.
CASE sy-ucomm.
WHEN 'SAVE'.
PERFORM check_ship_to_party.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT SHIP TO PARTY ' TYPE 'I'.
ELSE.
PERFORM check_payer.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT PAYER' TYPE 'I'.
ELSE.
PERFORM check_bill_to_party.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT BILL TO PARTY' TYPE 'I'.
ELSE.
wa_salesorder-zernam = sy-uname.
MOVE-CORRESPONDING wa_salesorder TO zvbak.
MODIFY zvbak.
LOOP AT it_salesitems.
it_salesitems-zvbeln = wa_salesorder-zvbeln.
MOVE-CORRESPONDING it_salesitems TO zvbap.
MODIFY zvbap.
ENDLOOP.
IF sy-subrc = 0.
MESSAGE 'THE DATA IS SAVED SUCCESSFULLY' TYPE 'I'.
CLEAR wa_salesorder.
REFRESH it_salesitems.
REFRESH temp_salesitems.
IF sy-tcode = 'ZVA01'.
CALL SCREEN '1000'.
ELSE.
CALL SCREEN '1003'.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
WHEN 'DETAIL'.
CALL SCREEN '1002'.
WHEN 'BACK'.
IF sy-tcode = 'ZVA03'.
CLEAR wa_salesorder.
CALL SCREEN '1003'.
ELSE.
PERFORM pop_up.
ENDIF.
WHEN 'EXIT'.
IF sy-tcode = 'ZVA03'.
LEAVE PROGRAM.
ELSE.
PERFORM pop_up.
ENDIF.
WHEN 'CANCEL'.
IF sy-tcode = 'ZVA03'.
CLEAR wa_salesorder.
CALL SCREEN '1003'.
ELSE.
PERFORM pop_up.
ENDIF.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
*& Module input_help_sold_to_party INPUT
text
MODULE input_help_sold_to_party INPUT.
SELECT zkunag FROM zvbak INTO CORRESPONDING FIELDS OF TABLE
itab.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'ZKUNAG'
PVALKEY = ' '
dynpprog = sy-cprog
dynpnr = '1000'
dynprofield = 'ZKUNAG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = itab
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " input_help_sold_to_party INPUT
*& Form pop_up
text
--> p1 text
<-- p2 text
FORM pop_up .
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = ' '
DIAGNOSE_OBJECT = ' '
text_question = 'DO YOU WANT TO SAVE THE ORDER?'
text_button_1 = 'YES'(001)
icon_button_1 = ' '
text_button_2 = 'No'(002)
icon_button_2 = ' '
default_button = '1'
display_cancel_button = 'X'
userdefined_f1_help = ' '
START_COLUMN = 25
START_ROW = 6
POPUP_TYPE =
IV_QUICKINFO_BUTTON_1 = ' '
IV_QUICKINFO_BUTTON_2 = ' '
IMPORTING
answer = ans
TABLES
PARAMETER =
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CASE ans.
WHEN '001'.
PERFORM check_ship_to_party.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT SHIP TO PARTY ' TYPE 'I'.
ELSE.
PERFORM check_payer.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT PAYER' TYPE 'I'.
ELSE.
PERFORM check_bill_to_party.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT BILL TO PARTY' TYPE 'I'.
ELSE.
wa_salesorder-zernam = sy-uname.
MOVE-CORRESPONDING wa_salesorder TO zvbak.
MODIFY zvbak_101954.
temp_salesitems-zvbeln = wa_salesorder-zvbeln.
MOVE-CORRESPONDING temp_salesitems TO zvbap.
MODIFY zvbap.
IF sy-subrc = 0.
MESSAGE 'THE DATA IS SAVED SUCCESSFULLY' TYPE 'I'.
CLEAR wa_salesorder.
REFRESH it_salesitems.
REFRESH temp_salesitems.
IF sy-ucomm = 'EXIT'.
LEAVE PROGRAM.
ENDIF.
IF sy-tcode = 'ZVA01'.
CALL SCREEN '1000'.
ELSE.
CALL SCREEN '1003'.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
WHEN '002'.
IF sy-tcode = 'ZVA01'.
CLEAR wa_salesorder.
REFRESH it_salesitems.
REFRESH temp_salesitems.
CALL SCREEN '1000'.
ELSE.
CLEAR wa_salesorder.
REFRESH it_salesitems.
REFRESH temp_salesitems.
CALL SCREEN '1003'.
CLEAR ans.
ENDIF.
ENDCASE.
ENDFORM. " pop_up
*& Module USER_COMMAND_1002 INPUT
text
MODULE user_command_1002 INPUT.
IF sy-datar = 'X'.
PERFORM material_check.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT MATERIAL' TYPE 'I'.
ELSE.
SELECT SINGLE zmaktx zmeins zwaerk zstprs FROM zmara_101954
INTO CORRESPONDING FIELDS OF wa_salesitems
WHERE zmatnr = wa_salesitems-zmatnr.
wa_salesitems-znetwr = wa_salesitems-zstprs * wa_salesitems-zbrgew.
ENDIF.
var = 1.
ENDIF.
IF sy-ucomm = 'BACK'.
LOOP AT temp_salesitems.
MODIFY temp_salesitems FROM wa_salesitems .
ENDLOOP.
it_salesitems-pick = ' '.
CALL SCREEN '1001'.
ENDIF.
ENDMODULE. " USER_COMMAND_1002 INPUT
*& Module USER_COMMAND_1000 INPUT
text
MODULE user_command_1000 INPUT.
CASE sy-ucomm.
WHEN 'NEXT'.
SELECT * FROM zt001k_101954 INTO CORRESPONDING FIELDS OF
temp_salesorder WHERE
zvkorg = wa_salesorder-zvkorg AND
zvtweg = wa_salesorder-zvtweg AND
zspart = wa_salesorder-zspart.
ENDSELECT.
IF sy-subrc = 0.
CALL SCREEN '1001'.
ELSE.
MESSAGE 'Invalid Data Entered' TYPE 'I'.
CALL SCREEN '1000'.
ENDIF.
ENDCASE.
ENDMODULE. " USER_COMMAND_1000 INPUT
*& Module USER_COMMAND_1003 INPUT
text
MODULE user_command_1003 INPUT.
IF sy-ucomm = 'NEXT'.
IF sy-datar = ' '.
MESSAGE 'ENTER PURCHASE ORDER NUMBER' TYPE 'I'.
CALL SCREEN 1000.
IF NOT wa_salesorder-zvbeln CO '0123456789'.
MESSAGE 'PURCHASE ORDER NUMBER IS NOT IN THE EXPECTED FORMAT' TYPE 'I'.
CALL SCREEN '1003'.
ENDIF.
var3 = 0.
CALL SCREEN '1001'.
ENDIF.
ENDMODULE. " USER_COMMAND_1003 INPUT
*& Module input_help_sales_order INPUT
text
MODULE input_help_sales_order INPUT.
SELECT zvbeln FROM zvbak_101954 INTO CORRESPONDING FIELDS OF TABLE
itab1.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'ZVBELN'
PVALKEY = ' '
dynpprog = sy-cprog
dynpnr = '1003'
dynprofield = 'ZVBELN'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = itab1
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " input_help_sales_order INPUT
*& Module back_command INPUT
text
module back_command input.
*if sy-ucomm = 'SAVE' OR 'BACK' OR 'DETAIL' OR 'EXIT' OR 'CANCEL'.
*endif.
endmodule. " back_command INPUT
Regards
Rajesh Kumar -
How to get the change mode option for the line items in SC
Hi Everybody,
1. when the SC has 2 line items and in that if both the line item are rejected by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line items of both the rejected one, the change is enable and the requester can do the changes in the line items of the shopping cart which is working fine. but in the other case
2. when the SC has 2 line items and in that if any one of the line item is rejected and other one is approved by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line item of the rejected one, the change is getting disabled but for the approved line item the requester can able to do the changes.
so can anyone help me out how to solve this issue that if any one line item is rejected in the shopping cart also it should get the editable mode when the requester wants to do any changes.
thanks in advance.Hi Everybody,
1. when the SC has 2 line items and in that if both the line item are rejected by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line items of both the rejected one, the change is enable and the requester can do the changes in the line items of the shopping cart which is working fine. but in the other case
2. when the SC has 2 line items and in that if any one of the line item is rejected and other one is approved by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line item of the rejected one, the change is getting disabled but for the approved line item the requester can able to do the changes.
so can anyone help me out how to solve this issue that if any one line item is rejected in the shopping cart also it should get the editable mode when the requester wants to do any changes.
thanks in advance. -
Change Display / change mode
Dear Friends,
Can anyone tell me once the document is saved and after that i need to change certian filed for all vendors,customers ang GL account line items,how can i do that.
At present,i can change only assignment and text field.
How can i active other filed?
Regards,
GreeshmaHi,
Please go to Following Path
IMG > Financial Accounting (New) > Financial Accounting Global Settings (New) > Document > Rules for Changing Documents > Document Change Rules, Line Item
Here you can change the fields for line items for all Account types per company code.
I hope this will help you.
Regards,
Jigar
Maybe you are looking for
-
Hi Group: In trying to set up an ext Drive for different purpose, I cloned my Macintosh H.D. drive and saved on another drive. Then I cloned the data on the Ext, used my orig. DVD to install sy on it, 4 attempts before it would accept the install. Di
-
Problem while dowloading the file from Application Server
Dear Experts, I am facing the Problem while downloading the file from Application server. We done the automatic function while saving the invoice, this will create an idoc, and this idoc is written in the Application Server. I am running
-
Application server to application server
Hello All, I have a senario to pick the file from ECC 6.0 and send to ECC 5.0. There is no share folder between XI and ECC 6.0/ECC 5.0. Sender File: 1,fileheader 2,recordheader 3,detailrecord,.... 3,detailrecord,... 2,rcordheader 3,detail
-
Slow Motion while holding K won't work.
I've been having this problem for a couple weeks now and it's driving me nuts. When I boot up, I can go through footage and while holding K, I can tap L or J to go forward and back one frame. After an hour or two suddenly it stops working so whenever
-
How can I easily highlight, test, and delete sections of my timeline?
I am new to both Logic Pro and to Mac having been editing audio and video on a PC using Sony Sound Forge and Vegas Pro. Every Sunday I record the message at my church, burn a CD and bring it home to edit it before creating CDs and then putting the me