How to give 'IF 'condition?
hi experts,
i have transaction data like
ID VEHICLE NO.
101 AP31
102 AP28
103 AP31
104 AP31
105 AP28
here,when i am executing the, i want to give a condition like "if VEHICLE NO.is AP31 it should display the FLAG like 'A', if not FLAG 'B'.
pl give step by step procudure
thanks & regards
vijay
I hope you are writing transfer rules. Assuming your Infoobject name is ZVENDOR_ID.
Then double click on infosource and click on TR mapping --> select Routine and say create. you will reach to ABAP code scree. Following code will work there or slight you need to chnage based on syntax error.
Select from TRANSFER_STRUCTURE-/BIC/<field name>
IF ZVENDOR_ID = 'AP31'
RESULT = 'A'
ELSE
RESULT = 'B'
ENDIF.
ENDSELECT.
hope this helps
Regards
Pankaj
********Assign pts if helpful
Similar Messages
-
How to give filter condition in expdp to filter parent and child records?
Hi,
I have a requirement of export schema. Assume there is a account details table and account transactions table under schema.They have parent child relation exist. if i filter accounts from account details the corresponding transactions in account transactions table should be filterd.How to achieve this?
Regards,
Venkat Vadlamudi
Mobile:9850499800Try with USER_DEPENDIENCIES
select * from user_dependencies -
How to give if condition in XSLT for the below issue
I have a customer order in .Txt which is picked by my FTP process & in mediator mapping will be done. Here i have an issue where the Txt file is in delimiter file it is having Customer Order number(CON) in each line of a single record,now i have to ignore the CON and to pic all the other details of the same Order. Here in the below i'm placing the sample file. where each order no. is repeated along with remaining details of same order. My problem is when i deployed each CON of line is taking as a single order., after reading CON details once it should jump to new CON. In this Stock code & Quantity are changing, so it should pic this excluding CON in each line.
Customer order number;Order Date;Stock code;Quantity;Leverans adress namn;Leverans adress rad 1;Leverans adress rad 2;Leverans adress rad 3;Postnummer;Stad;ButiksID
"61068344";"31-01-11";"02716Z0";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068344";"31-01-11";"99H10048-00";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068344";"31-01-11";"99H10046-00";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068344";"31-01-11";"100-99150000-60";"4";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068344";"31-01-11";"0278812";"2";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068344";"31-01-11";"534970";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068373";"31-01-11";"1234-0433";"1";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"100-92080000-60";"30";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"0138";"40";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"CM011674";"40";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"CM012044";"10";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"IC416";"30";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"1230-1847";"10";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"99H10046-00";"2";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"CPW012602";"30";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"Here i missed one thing to say, After reading all the fields from first record of CON the Stock_Code & Quantity to be picked and added in the same record from next line of CON untill the CON is changed. For this can we do with NXSD file? using which option can we use this? & how can we complete this in XSLT?
-
How to give authorization for create and change particular Condition Type
Hi...
In my requirement is , Only one user can be authorized to create and change a particular condition type 'ZABC' in vk11 and vk12 .
For remaining condition type can be used as in normal .
How to do this ? How to give authorization for a particular user for particular condition type ?
Plz guide me ..
Thanks in advance .
Deepa .Hi Deepa ,
u can check A.Object V_KOND_VEA, in user profile u can assign condition type or tables.
have a word with ur basis guy , so he can help u in better way.
aand also ref FM SD_COND_AUTH_CHECK
Regards
Prabhu -
Can we give where condition while db polling, if yes how to give the value
Hi,
We are polling a db table, can we give where condition in polling query. If we can give this then where to pass the value for the condition.
eg:
select * from xxtable wherexxname=#xxname;
If above is the db polling query then how to pass #xxname value to db adapter.
After polling we are deleting the row in the table.
Thanks,
RaYou can add where condition , but the value should be passed while configuring DB Adapter itself. You can't pass dynamic values to it as it is polling and gets activated once the process is deployed.
Thanks,
Satish
http://soadiscovery.blogspot.com -
How to give read statement checking condition
hi,
i am trying to give like this, but it throws an error can u tell me how to give a read statement checking two conditions.
READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR
AND GJAHR = WA_TAB_RBCO-GJAHR
AND BUZEI = WA_TAB_RBCO-BUZEI.Hi Anitha,
READ statement wont have 'AND's in them. Your statement will work fine without having 'AND's. Lets try by omitting 'AND's in ur statement.
Please change the code as follows.
1)
READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR
GJAHR = WA_TAB_RBCO-GJAHR
BUZEI = WA_TAB_RBCO-BUZEI.
2)sort i_resg by belnr gjahr buzei.
READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR
GJAHR = WA_TAB_RBCO-GJAHR
BUZEI = WA_TAB_RBCO-BUZEI binary search.
The above statement will fetch u particular record faster than the above READ statement.
Thanks,
Vinay
Message was edited by: Vinaykumar Gorrela -
How to insert a condition in the Graphic Window of a SAP Script ?
Hi,
I need to give a condition inside the Graphic Window for printing the Logo in the SAP Script. Now, my problem is that the Graphic window is only opening in Display mode. How to make it editable and insert a condition in it?
OR
Is there any other way to do it?
Please Help.
Thanks in Advance.
-VRUHi
I got your point. I'll provide you solution
In the logo window goto coding part by pressing F9 and give your coding as
IF &BKPF-BUKRS& = 'COM1'
INCLUDE GSPL OBJECT GRAPHICS ID BCOL LANGUAGE DE
BITMAP 'LOGO1' OBJECT GRAPHICS ID BMAP TYPE BCOL
ELSEIF &BKPF-BUKRS& = 'COM2'
BITMAP 'LOGO2' OBJECT GRAPHICS ID BMAP TYPE BCOL
ELSEIF &BKPF-BUKRS& = 'COM3'
BITMAP 'LOGO3' OBJECT GRAPHICS ID BMAP TYPE BCOL
ELSEIF &BKPF-BUKRS& = 'COM3'
BITMAP 'LOGO4' OBJECT GRAPHICS ID BMAP TYPE BCOL
ELSEIF &BKPF-BUKRS& = 'COM4'
BITMAP 'LOGO5' OBJECT GRAPHICS ID BMAP TYPE BCOL
ENDIF
<b>Note:</b>But you have to upload all your logos in se78 then only you can upload and give conditions for this
Regards
Pavan -
How to create a condition in sap
Hi all,
How to create a condition in sap
i want to create a condition in sap quotation. how to solve this issue please give me idea step by step.
[http://www.4shared.com/document/MQiBd3bP/screenshot.html]
Thanks & Regards
Ambrish
Edited by: ambrish dwivedi on Feb 28, 2011 12:29 PM
Moderator message: not related to ABAP development, please do some research before asking.
Edited by: Thomas Zloch on Feb 28, 2011 9:21 AMHello Ambrish,
Which condition are you talking about ?
is it the calculation you want to do in ur driver program or kind of routines which are used in Pricing ? -
In BSP how to give the input field as mandatory?
Hi friends,
In BSP how to give the input field as mandatory?
In BSP i want to validate the input field (example checking the material no is valid or not)
if this material no doesnot exit means i want to pass error message.What is the code for that.
Moosahi
try this
in LAYOUT
<htmlb:inputField id = "vname" disabled = "False" value = "<%= v_visitor %>"/> <font color="red" size="2"><b><%= page->messages->assert_message( 'vname' ) %></b></font></td>
in DO_HANDLE_EVENT
in oninputprocessing
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
DATA: event TYPE REF TO CL_HTMLB_EVENT.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
button_event ?= event.
ENDIF.
case event->id.
when 'select'.
if v_visitor = ''.
page->messages->add_message(
condition = 'vname'
message = 'Visitor Name can not be blank'
severity = page->messages->CO_SEVERITY_ERROR ).
ELSE.
here u can write ur when ur field getting filled
endif.
endcase.
endif.
give marks if it is helpful
thanks -
How to give rebate according to ship to party
how to give rebate according to ship to party.
Prasanta,
Rebates are driven by condition technique. You would be using the Rebate condition types (BO01 - BO06 range). Check the access sequence being used, with V/07. Assume, you are using BO01. Now, in V/07, in the 'Fields' tab, in the 'Doc. Field', the source for getting the customer number is set as Payer (KNRZE).
Change it to Ship-to party ( KUNWE),from the field catalog below.
It is recommended that you create your custom access-sequence, copying with ref to BO01 (or whatever access sequence you want) and make a change as discussed above.
Let me know -
How to view pricing conditions in a scheduling agreement?
Dear Friends
Will you please tell me how to see pricing condition and tax conditions in a scheduling agreement?
Thanks
ChandraHi chandra,
U can select line item & use shift+F6 u wll find conditions.
If u want to see conditions like in PO. Select line item go to header tabs in item select price simulation
Here put the qty u want to have simulation then see the result.
Hope this will solve ur problem.
Pls give ponts if answer is correct.
Regards
Gitesh -
How to give two values of same field in read Statment
Hi,
Please Tell me how to give the two values of same field in read statements Condition.
i.e
Read table it_tab with key matnr = '1' or matnr = '2'.
With Regards
KesavaperumalHi Kesavaperumal,
<li>You can not use OR operator with READ TABLE statement.
<li>You have to use different fields of the internal table in where condition.
<li>If you want to compare with two values, you need to use LOOP statement.
LOOP AT it_mara WHERE matnr = '1' or matnr = '2'.
"Write code
ENDLOOP.
Thanks
Venkat.O -
How to Delete the condition record in CRM
HI,
Can you please help me how to delete the condition record from condition table in CRM.
Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
I have also read the documention of the function module. How to use this FM for custom defined condition table.
(this is the code given in Documentation)
DATA-OBJECT_REPRESENTATION = 'E'
DATA-SEL_OPT-CT_APPLICATION = 'CRM'
DATA-SEL_OPT-OBJECT_TASK = 'D'
DATA-SEL_OPT-RANGE-FIELDNAME = 'PRODUCT_ID'
DATA-SEL_OPT-RANGE-R_SIGN = 'I' (Including)
DATA-SEL_OPT-RANGE-R_OPTION = 'EQ'
DATA-SEL_OPT-RANGE-R_VALUE_LOW = 'PROD_1'
Thanks
ShankarHi Shankar,
I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
Error in lt_return: SMW3 CND_MAST_SEL_DEL_EXT_VALIDATE CND_M_SD
code:
ls_range-fieldname = 'PRODUCT_ID''.
ls_range-R_SIGN = 'I'.
ls_range-R_OPTION = 'EQ'.
ls_range-R_VALUE_LOW = '123456'.
APPEND ls_range TO lt_range.
MOVE lt_range TO ls_entry-SEL_OPT-range.
ls_data-SEL_OPT-object_task = 'D'.
ls_data-SEL_OPT-ct_application = 'CRM'.
ls_data-object_representation = 'E'.
CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
EXPORTING
DATA = ls_date
IMPORTING
RETURN = lt_return
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
return = lt_ret.
Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM -
How to change pricing Conditions in Sales order in change sales order bapi
Hi Experts,
How to change pricing Conditions in Sales order in change sales order bapi.
I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
Thanks in Advance .
NLNHI NLN
I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
<b>Import Paramters:</b>
SALESDOCUMENT - Sales Document Number
ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
<b>Tables:</b>
CONDITIONS_IN - ITM_NUMBER,
COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
COND_TYPE,
COND_VALUE,
CURRENCY.
CONDITIONS_INX - ITM_NUMBER,
COND_COUNT,
COND_TYPE,
UPDATEFLAG as <b>'U'</b>,
CURRENCY.
Hope i have clarified your query.
Kind Regards
Eswar -
How to use if condition in XML Publisher Desk Top
Hi..,
How to use if condition in XML Publisher desk Top.
Please guide me.
Thanks,
Suresh.What kind of condition you want to use?
You can use Condition like this:
<?xdofx:if condition then value1
else if condition then Value2
else Value3
end if?>
Please go thru XML Publisher User Guide.
Thanks
Ravi
[email protected]
Maybe you are looking for
-
Best way to export from FCP X to iDVD?
I believe this question must have been dealt with a number of times already but since I could not find a clear answer with a reasonable amount of searching I post my question here. I have Apple ProRes 422 footage (HD 1920 x 1080) in FCP X out of whic
-
Is there a Motion "How To?"
I'm new to motion, so is there a how to guide/tutorial around that shows kind of how to get started and some cool tricks? (other than the demo)
-
I am not able to format my creative Muvo V100 model mp3 pla
Hi I am not able to format my Creative Muvo V00 model Mp3 player.As i connect it to pc to format it is showing the icon but when i right click on that icon to get the format option it is not responding?me.More i tried in windows explorer also there a
-
When testing my flex application in debug mode, my debug session is closed every time because Firefox thinks the flash plug-in has crashed. == This happened == Every time Firefox opened == Firefox was updated with plugin-crash redundancy
-
Problem opening Illustrator cc
Why do I have to sign in as adminstrator to open Illustrator cc