Required Routine for 0DEB_CRED

HI,
I want to write routine for 0DEB_CRED ,to populate data from 0DOC_CATG.
I am not good at routine.
I have gone through http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80cede83-350f-2d10-9e97-be196122ce29?QuickLink=index&overridelayout=true
this link.
Still need routine to populate data for 0DEB_CRED , from source feild 0DOC_CATG.
Can anyone give routine.
Regards,
rvc

Hi RVC,
0DEB_CRED is get populated based on 0DOC_CATG or VBTYP field of data source .
you can try field routine for this .
1. Map 0DOC_CATG from source to 0DEB_CRED of target .
2.Write this code :
if source_fields-DOC_CATG  CA 'NO6KHT'.
       result = 'C'.
else.
        result = 'D'.
endif.
If  0DOC_CATG  is any of this N/O/K/H/T/6 then its credit ( target postings) else it is debit (actual postings).
Hope this will be helpful .
Regards,
Jaya Tiwari

Similar Messages

  • Routine for 0DEB_CRED in 0SD_C03

    Hello all,
    There is a routine written for the InfoObject 0DEB_CRED in the standard cube 0SD_C03.
    It is as follows :
    IF SOURCE_FIELDS-DOC_CATEG CA DEB_CRED.
        RESULT = 'C'.
      ELSE.
        RESULT = 'D'.
      ENDIF.
    And then in the queries the key figures for no of documents, no of returns, are restricted by using the characteristic 0DEB_CRED.
    Can anyone let me know whats its significance, what does the values C and D signify?
    i have checked in help.sap, but couldnt get much info.
    Regards,
    Mansi

    Hi Mansi,
    The Logic for the above code is
    If any document category Contains Deb_cred,I e here CA (Contains Any)
    For Example:
    If DOC_CATEG contains at least one Character from the DEB_CRED then the Result will be Credit(C) other wise its Debot(D).
    Find the link for the logical comparsion operations.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3516358411d1829f0000e829fbfe/content.htm
    Regards,
    Shiva Kumar G.C

  • Debugging routine for output type in purchase order

    HI all,
       I am unable to get breakpoint to stop at a custom requirement  routine  for a custom output type (ZSND) for purchase order.
    I created routine 901 and explicitly add  'break  userid' .  In ME21N, it stops at the routine.  In ME22N, it did not stop at the routine.
    I like to it stop during ME22N.   I tried adding the custom output in ME22N in Messages details, then save.  It still did not stop at the custom routine.  Can anyone pls shed lights how i can make it stop ?  Or could it be that no output is generated during the ME22N changes, thus it would stop at that routine in ME22N ?
    thanks
    Joyce

    Hello Joyce
    The first output ZSND creates the ORDERS IDoc (ME21N). For this output type you obviously have assigned the VOFM condition (somewhere in the NACE transaction).
    Changing the purchase order (ME22N) should create a different output type (-> ORDCHG IDoc). The first output ZSND must not be repeated (or it is defined to be set automatically only once).
    Thus, there are two explanations for your observation:
    (1) The output ZSND is not created a second time using ME22N
    (2) The new output (-> ORDCHG) has not been assigned to the VOFM condition 901.
    (1) you can test quite easily by adding the ZSND output manually in transaction ME22N.
    (2) you need to check the output customizing.
    Regards
      Uwe

  • Requirement Routines & Mandatory Option for condition type

    Hi All,
    A tax condition type is being setup as mandatory in the pricing proecdure.
    It has a requirement routine associated to it. If the requirement routine is not satisfied, sy-subrc is 4 and hence, no tax is calculated for it but mandaotry setting demnds it to have some value. In such situations, will it over-ride the config. setting of mandatory condition type & if not so, how can I over-ride. It is compulsory to have the mandatory option ticked but its ok to over-ride it for some conditions specifed in the requirement routine.
    Please advice.
    Thank you,
    Shiv

    Hi Shiv,
    Any critial configuration related information is available in internal tables based on which standard SAP does validations. So mandatory property of the condition type as configured in the pricing procedure, would also be available in some internal table of KOMV (KOBLI is the field indicating whether it is mandatory or not)
    So in your requirement routine you can code so as to make KOBLI blank whenever the tax condition type is being deactivated by setting SY-SUBRC to 4.
    Please reward if helpful.
    Regards,
    KC

  • Need clarification to write transformation routine for my requirement

    Hi all,
    I have a requirement as mentioned below...
    I have a keyfigure amount which will hold the amount value..now i have been asked to add amount_2000 key figure...it has been done..
    But the real problem is that
    They will give a filter value in DTP selection for the field "area".
    now if they give area as 1000 then the amount field should populat with the respective amount value
    but whereas amount_2000 should populate with only the amount of the area 2000 irrespective of the filter condition given...
    i need to write the routine in the transformation...But the problem is that when we give the filter value in DTP i coudnt get value for amount_2000 as only it gets the value for 1000.
    I hope the requirement is clear...
    can any one help me in this.
    Thanks & Regards,
    Hari.

    Write a routine for the InfoObject amount_2000.
    Use amount and area as source fields.
    Now the coding should look like:
    IF source_fields-area = '2000'.
      RESULT = source_fields-amount.
    ELSE.
      RESULT = 0.
    ENDIF.
    This is independent of the filter values in the DTP.
    Best regards
    Dirk

  • End routine for Currency conversion

    Hi,
    I have a requirement in which i have to convert sales and cost into three types of currency as GBP, INR and EUR in cube. i made 3 different fields for sales as well as for cost. But i am unable to write end routine for it.
    Can anyone please help me that how can i solve this problem.
    Roma

    Hi,
    In transformation itself you can do your currency conversion.
    http://help.sap.com/saphelp_nw70/helpdata/en/de/6372426f0f9041e10000000a1550b0/content.htm
    If you want to write a routine in to do conversion, you have to go for start routine instead of end routine.
    Thanks
    BVR

  • How to write conversion routine for key figure?

    Our customer has this requirment:
    we need to know the last time of some TV program in BEx report, If a TV program last 500 seconds, we need show the key figure like this:  00:08:20, If a TV program last 100000 seconds, we need show the key figure like 27:46:40 (27 hours and 46 minitues and 27 seconds), If we define a key figure as time,  BW system will report a error that say it is not acceptable time.  If we want to define a integer, but we need display it like hhmmss format.  We know we can write conversion routine for char.  but I don't how to write conversion routine for key figure.   Please give me any hint if any other solutions?
    Edited by: SY DONG on Dec 2, 2010 3:36 AM

    If you want to do in Transformation Layer :
    You can use routine ...break up the seconds into minute hour and seconds
    you will have to handle few cases in this:
    let say your variable lv_seconds holds the number of seconds you want to convert to hour min and seconds
    DATA: lv_seconds type i,
               lv_hrs  type  i,
              lv_sec type i,
              lv_min type i.
    lv_hrs = lv_seconds / 3600
    if lv_hrs >= 1.
    lv_min = (lv_hrs - trunc(lv_hrs))*60
    here again handle seconds if min >60.
    else.
    lv_hrs = '00'.
    lv_min = lv_hrs*60
    It is just hint ..how you can manipulate the seconds to get it...you will have to think about the complete algorithm
    Regards,
    RK

  • Output Control Routine for Order Confirmation

    Hi,
    I have a problem in sending out order confirmation when the customer have a credit block, no order confirmation is being sent.
    Checked on transaction NACE, the routine for Order Confirmation (Routine 2), returns a sy-subrc =4
    when  the credit block is set. What is the best way to correct this?
    Thanks,
    Catherine

    Create the new routine in VOFM->Requirement->Output Control. Make the required changes in routine source text and assign it to output procedure (NACE).
    Thank You,
    Ganesh

  • Recording Routine for Tables

    Hi ,
    Can you please explain me about   Recording Routine for Tables..
    I came to know that we can get do it via SE55 tcode..
    Can you please explain me the process to do this..
    Regards
    Parnith..

    Hi Raj,
    Thanks for your solution..
    Can please suggest how can i solve following requirement..
    I had to update the  Recording Routine for one my custom tables from 'Standard recording routine' to 'No,or user,recording routine'.
    I need to update and transport this..
    When i went via SE55..
    There are four Radio button..
    Can you please let me know the exact steps to solve the above problem..
    Regards,

  • Sample routine for dynamic flatfile selection in infopackage?

    hello guys,
    I tried to find one sample routine for Dynamic Flatfile selection at Infopackage level in forums,internet...but couldnot find it....(something like....we give one flatfile everyday...process chain runs everday...and whenever Infopackage executes...it selects that days flatfile basing on date or something and loads the data)....
    can anyone give that sample routine ?
    Thanks,
    Rgards,
    S

    Hi,
    You can select the dynamic flat file using routine at info package.
    The routine here is to create dynamic file name, click the routine button beside the name of flat file.
    create name and write the related code.
    Eg: concatenate 'D:\BIFLATFILES\PRODUCTDATA_'   SY-DATUM  '.CSV'  INTO P_FILENAME.
    In this path you have to paste your file with name PRODUCTDATA_09.10.2009.CSV.
    So if it is daily load we need change the file name with that date.Infopackage automatically picks up this file and loads the data.
    Based on your requirement you need to change the code to select file with path.
    Thanks,
    Joseph

  • Start routine for insert a record by each day in a range of dates

    Hi all,
    I need create a start routine for insert 1 record by each day in a range of dates:
    example:
    Actual.
    DATE_I             DATE_F          TIME_I       TIME_F      TIME_minutes
    04/04/2008       05/04/2008     13:40:00     23:00:00        2000
    Result:
    DATE_I             DATE_F          TIME_I       TIME_F      TIME_minutes
    04/04/2008       04/04/2008     13:40:00     24:00:00        X
    05/04/2008       05/04/2008     00:00:00     23:00:00        Y
    I thanks any help.
    regards.
    Alberto.

    Hi Alberto,
    What I understood from your requirement is that you want to split the record into 2 since you have 2 dates coming from the source.
    In the transformations you will have to create new rule group one for each of the dates.
    You can create the new rule group by clicking on the 'Rule Group' button and then clicking on the 'New Rule Group'.
    In the newly created rule groups take care to distribute data for each date separately.
    Hope it is clear.
    All the best...
    Regards,
    Krishna

  • Best maintenance routine for OS X ?

    hi,
    what would the “guru’s” on the forum recommend for the best maintenance routine ?
    tia

    Mac Maintenance Quick Assist,
    Mac OS X speed FAQ,
    Speeding up Macs,
    Macintosh OS X Routine Maintenance
    Essential Mac Maintenance: Get set up,
    Essential Mac Maintenance: Rev up your routines,
    Maintaining OS X, and
    Myths of required versus not required maintenance for Mac OS X for information.

  • Value of Function Key in Requirement Routine

    Hi All,
    I have a requirement where in for transaction VF04, whenever the user clicks on the button collective billing document or collective billing doc/online, a certain piece of code needs to be executed in a requirement routine. How can i capture the values of these function keys in the requirement routine.
    Regards,
    Jayant

    I am not sure if this helps you.. but Table RSMPTEXTS will store all the menu path / function codes of a program.

  • Posting Error: Field Pers.No. is a required field for G/L account

    When I am trying to run the simulation posting run (PC00_M99_CIPE) then is getting an error that u201CField Pers.No. is a required field for G/L account 2275 504566872u201D
    Field Pers.No. is a required field for G/L account  2275  504566872
    Message no. F5808
    Diagnosis
    The value for field "Pers.No." in the interface to Financial Accounting is an initial value but you are required to make an entry in the field selection for G/L account "504566872" in company code "2275" linked to the field selection for posting key "50".
    Procedure
    It might be an error in the configuration of the G/L account field selection. The initial application, used to call up the interface must otherwise define a value for field "Pers.No.". If this is the case, contact the consultant responsible for the application used to call up the interface or get in contact with SAP directly.
    Please help.

    First of all did you required to post with personnel number or not....if it is not required then goto FS00 enter your GL account 504566872....find Field Staus Group under tab Create/Bank/Interest........then goto t code OBVV and select your field status group then click on field status and select Additional account assignments and check personnel number status and change as per your requirement optional or required.
    If personnel number required then create symbolic a/c with account type Q and assign gl account to this symbolic a/c.
    Mohan

  • Each time iTunes(v 11.0.2.26) launches, it requires password for my AppleID

    Each time iTunes(v 11.0.2.26) launches, it requires password for my AppleID

    If I were you I would try to troubleshoot your connection with itunes ON the system. But for starters it is very unlikely one program like itunes blocks your connection, so I would try to disable your antivirus/firewall during download and reinstall of itunes. May be your firewalll kicks in some panic mode. Judging by your name you have very strong firewall

Maybe you are looking for

  • Video to USB

    I have a Belkin USB F5U208 USB VideoBus II adapter for my FlexCam but can't find software to drive it for my Intel Power Mac running 10.4.9. Any help? Bill

  • How to remove Pagebreak while printing a Report in Html format

    Hi there, I am printing the Report Output as HTML format and I need to avoid pagebreaks ... Is there any way to avoid. I did tried PAGESTREAM ... but it prints the next page in a separate file ... Can anyone give a solution for this !!! TIA Vaithy. S

  • Trying to get assistance witha reimbursement

    I was charge $95.33 and $21.31 on 8 Sep 14, I called immediately and informed your business that I need a stop and reimburse, you told me no problem, but to this date I still missing a $95.33 payment. I have copy of my bank transaction report were it

  • Werfault.e​xe error

    iam using g560 lap.I upgraded it from windows7 to 8....Now its showing an error that 0xf06c0080 referenced memory at 0xffffffff.the memory canot be read....internet explorer,windows defender and nvidia,others are not working.......wt to do.....

  • Loading of video files takes forever

    Prior to version 7.2, video files you to load immediately in quicktime for mac. Now, I wait for over a minute to load a 700 or so meg file. Does anyone have any idea why and now to improve loading?