In Eo70 & Eo71 Table You can Check the Deleted User .
Re: Retrieving deleted records from a custom transparent table
requirement
Hi experts,
i have the following data in one table,
CID DATE REVENUE
================================
C100 20120101 100
C200 20120101 200
C300 20120101 300
C400 20120102 250
C500 20120102 300
C600 20120102 500
Now my requirement is that , i have to add 2 columns min_rev and max_rev and the output condition should be as shown below:
In the same date , we have to get the maximam revenue and minimum revenue and it has to be placed in the max_rev and min_rev columns as shown below :
CID DATE REVENUE MAX_REV MIN_REV
======================================================
C100 20120101 100 300 100
C200 20120101 200 300 100
C300 20120101 300 300 100
C400 20120102 250 500 250
C500 20120102 300 500 250
C600 20120102 500 500 250
I HOPE U GOT MY QUESTION:
PLS REPLY ASAP.
Re: Inwhich table both fields KNUMH and KNUMV are available ?
Hi Asirvatham ,
You can get both(KNUMH and KNUMV) fields common in KONV(Conditions) table .
Thanks
Mallikarjun
Re: Inwhich table both fields KNUMH and KNUMV are available ?
Hi
KONV table have both fields right:)
I think its a basic question moderator will lock this discussion i hope
.
Regards
Mahesh ![]()
Retreiving the file names from directory inside another directory from application server
Hi,
I had a problem in retreiving the file names from a directory inside another directory.
I tried using the FM's SUBST_GET_FILE_LIST, RZL_READ_DIR_LOCAL and EPS_GET_DIRECTORY_LISTING
But here I am getting only one directory details.
Actually my file is located a directory inside one more directory and one more directory and inside the files are located.
i.e total 3 directories inside the 3rd one my files are there.
I need to read the latest file name in the directory.
So that i can do some manipulation after getting the file name.
Is there option like OPEN DATASET , READ DATASET and CLOSE DATASET?
Can anyone please let me know How can i acheive this one.
Regards
Ram
Re: Navigate from GUI to WebDynpro
The fact that the browser is launched disconnected from the GUI makes things even more complicated. You will only know if the launching of the browser was successful or not. You will not know in GUI when the user has made the required changes nor when the browser is closed. I think you need to go back to the drawing board.
BOM Update with required change numbers
Hello,
Let me explain the background of my problem and then put my question.
We use CU51 tcode to update order BOM with changes. When we see the list of items in the result list, we can also look at the change number against which the change will be implemented. So I want to have a approval workflow before this happens to decide which change number is to be implemented on the Order BOM. Once having the approved change number, I would like to implement only the approved change number.
Scenarios:
If CH1 and CH2 are used to do the changes, and during workflow, If CH1 gets approved before CH2, then I planned to use the APIs used in CAVC_TEST tcode to INITIALISE AND SAVE the BOM with only the approved CH1, which confirms and saves the change on Order BOM.
Can any one suggest the best way to do this scenario. I have tried these APIs but i can find ISTPOM[] having the item entries in debugging mode, from which i can select and delete the records with unapproved change numbers. But I need to perform the same action using some User Exits or BADI. But I referred few, which had only importing parameters and not changing parameters to pass back. Any suggestion or advice on this will help me a lot.
I tried the few of the below options:
Badi
BOM_UPDATE
-change at save
-change before update
UserExit
CCUXSETM Saving of Manual Changes for SET Processing
CCUX0004 Post-Processing of Configuration with Dependencies
CCUX0005 Transfer of Item Category by Type Matching
CCUX0006 Fixing of an Order BOM
Please suggest how can we edit the item details pulled from STPO table before updating the Order BOM.
Anand
Re: FM RV_INVOICE_CREATE is not creating invoice
Hi Geeta,
I tried that option as I mentioned in my original post and its not working.
Thanks,
VV
Re: Navigate from GUI to WebDynpro
hi kishore,
you take one dummy variable and keep that date in dummy variable.
So, use that variable where ever u want.
thanks,
nike
BAPI_SALESORDER_SIMULATE not working on similar lines as VA01
Hi All,
Thanks for reading the post.
We have configured pricing condition for volume discount i.e. if the amount of SO is greater than X; customer is given discount of y% on sales value.
When we create sales order using VA01; pricing conditions are applied which includes volume discount say value P( p = y% of X).
When we trigger BAPI_SALESORDER_SIMULATE with the same data; pricing conditions are applied but the pricing condition of volume discount is showing as zero instead of P.
Regards,
Ganga
Re: free memory id 'SAPLSTXD'
Export catalog back to memory BEFORE calling READ_TEXT.
Regards,
Raymond
Re: requirement
Hi!
Instead of,
"READ TABLE ITAB_2 WITH KEY DATE = WA_1-DATE INTO WA_2. " you can also write:
LOOP AT ITAB_1 INTO WA_1.
AT NEW DATE.
WA_2-DATE = WA_1-DATE.
WA_2-CID = WA_1-CID.
WA_2-MAX_REV = WA1_REV.
WA_2-MIN_REV = WA1_REV.
APPEND WA_2 TO ITAB_2.
CLEAR WA_2.
END AT.
LOOP AT ITAB_2 INTO WA_2.
IF WA_2-DATE = WA_1_DATE AND WA_2-CID <> WA_1-CID.
IF WA_2-MAX_REV <= WA_1-REV.
WA_2-MAX_REV = WA_1-REV.
ELSE
IF WA_2-MIN_REV >= WA_1-REV.
WA_2-MIN_REV = WA_1-REV.
ENDIF.
MODIFY ITAB_2 FROM WA_2 WHERE DATE = WA_2-DATE TRANSPORTING MIN_REV MAX_REV.
ENDIF.
ENDLOOP.
=> But if you see, we are having to perform the same logic using a loop within a loop, which is not efficient. Rather than looping, we are first sorting ITAB_2 with date, and then with date as index we are directly searching for the record - binary search - which is faster than loop within loop.
Hope it helps. And let me know if you are getting the desired output.
If not i will check in the system and get back to you.
Regards,
Khushboo
Re: Export and Import option inside BADI
hi surender,
As u have take cuser1 type xubname.
cuser1 is a field that u have taken in your zprogram screen or what...?
As i have also declare two fields in migo in tab name as " other tab" that is created by me and i want line item value like item and quantity in my fields.
What i do for that..
Thanks
Re: Navigate from GUI to WebDynpro
Thank you Srikanth for your advice.
It will be our last option to create a DB table.
LSMW for Z fields not available on screen
Hello Friends ,
I am not very sure if this is correct place to ask this question . But I am in serious trouble and was looking for solution and hope for HELP.
We have developed a Z transaction which has few fields in it. This fields are actually dynamically shown (thru a check on cross reference variable ) on the screen and not available in the instance we copy the text feeded in this field to updated the Z fields in EINE table .
We have need to mass update this fields , as this field are Z fields I am not sure if a Purchase info record mass tcode MEMASSIN will help as I cannot see the Z field in the tcode when selected MEMASSIN.
So I was looking for a option of writing a LSMW to help update that field . As the field is not actually present the recording of LSMW is not able to capture the field . (Not sure if there is any other option or way to do it)
Can you please help if there is option to add this kind field scenario in LSMW , this will be one time activity by business so I am looking for other kind of solution to develop and complete new functionality with mass update program to help update this fields.
But for now to have business function and interim operation to update the data I guess LSMW is only option left and that not sure if it can work ..
Looking forward for help ....thanks.
Sub: BADI for VD01 at Sales Order
Dear All,
We need to do an enhancement on the above cited subject. I need to find out a BADI which is present afterwards the current Badi namely “CUSTOMER_ADD_DATA” gets executed.
Functional Requirement: User would create the Customer Master through VA01 screen ( Provision is already present in Sales Order Screen to create a new customer.) which is triggering VD01. User would enter the details of a customer with only one sales division eg. 10. I need to extend the customer master to other divisions through BADI or enhancement, so that system will not stop the user while using the other division materials for the sales order. (Please note that this is for retail sales.) I have already tried incorporating the necessary code in the BADI namely “CUSTOMER_ADD_DATA”, but by the time the BADI is getting triggered, the KUNNR is generated, but the Customer Master details are not yet stored in the Standard transparent table namely KNA1 & KNVV, on the other hand these tables are also not passed as parameters to the BADI. Only I_KUNNR is passed.
Please help me out with the BADI which will occur later to “CUSTOMER_ADD_DATA” or else guide me how to pass the table details as parameter to the above mentioned BADI itself.
Thanks & Regards
Harish Kumar MK
Travel Request Status in ZTRIP
Dear Expert,
I need to know the table which is having the travel request status , in Table PTRV_PERIO , the field ANTRG is having only the current status, i wanted to know the previous status also.
The scenario is , when user create the travel request in ZTRIP, the status will be 1 in field ANTRG and when it gets approved the status became 2, so when somebody is doing some changes on the travel request in ztrip and saving the status again became 1 in the field ANTRG.
So i want to know all the status against trip number , from which table i can find this ?
Please help me on this.
Regards,
Sankar
Re: How to upload the data from SAP system to a normal PC system
Hello Pavan,
What is the format of the data that you want to send to the PC? And will that PC be used by the client actively? Or is it just going to stay between the SAP system and the non-SAP system just to act as a bridge between two?
If it is going to be that way (just to connect the 2 systems) and if you are going to send some text holding the data to that PC i would recommend setting up an FTP server to that PC. There are lotsa free FTP server programs that you can easily set up. That way you will be able to open up that computer of yours as a place that will be able to hold/send data. When you are done with setting up the FTP you can easily start working on the ABAP side. There are a few FM's that will enable you to send/receive data to/from FTP server.
-FTP_CONNECT : To connect to the FTP server
-FTP_R3_TO_SERVER : To send text data to FTP server
-FTP_DISCONNECT : To end the connection between SAP and FTP server (which is the PC that you ll use)
--FTP_SERVER_TO_R3: To receive text data from FTP server
This method is used by most of the integration projects between company SAP systems and the customer's bank systems. And it works pretty well like that. Of course there could be other options. I just told you the first idea I got.
Regards,
Arman
Re: Error in Exporting to Excel 2003 office format in ALV
Hello satya,
Thankyou for information..... but this also not resolved our issue.....
Thanks
Sumit
Re: LSMW for Z fields not available on screen
MASS processing does not really support Z-fields. I am not saying it is impossible, but you usually have to do so much that it is not more beneficial for a one-time scenario.
A LSMW recording will turn out in a batch input. you can only process fields and enter data into fields that are visible on the screen.
I think a small ABAP with direct table update will be the most effective way.